ASharpPen-Drop_That icon

Drop That

Tool for configuring mob loot tables.

Last updated 2 months ago
Total downloads 13603
Total rating 6 
Categories Mods Utility
Dependency string ASharpPen-Drop_That-2.1.0
Dependants 27 other mods depend on this mod

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.1100 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured and includes unstripped Unity DLLs.

Preferred version: 5.4.1100

README

Drop That!

Drop That! is a mod that enables changing existing loot tables through configuration files. It can either add or replace existing drops.

The goal is a reasonably simple tool for either players or modders to set up the loot they want, when they want it.

See the Valheim wiki to get a list of item names which can be used.

A pretty comprehensive guide for prefabs can be found here

Features

  • Override any existing potential drop of a mob, by specifying the index of the item you want changed.
  • Add as many additional drops with their own drop chance or drop range as you want
  • Discard all existing drop tables
  • Discard all existing drop tables for entities modified.
  • Configuration templates, for easy extension.
  • Add a variety of conditions for when an item should be dropped
  • Server-side configs
  • Adds mod specific options for:
  • Performance improvements
    • Drop stacks instead of individual items. Want to have a stack of coins, that isn't a massive lag tower of individual coins?
    • Limit max amount to avoid those pesky world-crashing level 10 trolls.

Documentation

Documentation can be found on the Drop That! wiki.

v2.0.0 Details

New loot tables supported:

Valheim uses multiple types of loot tables, which each works very differently. Until now, Drop That has only supported the most used type for creatures, CharacterDrop. With v2.0.0, there will now be support for the much more complicated and generally used loot system DropTable.

This table is used for a variety of scenarios. Amongst them are:

  • Seagals
  • Treasure chest loot
  • Drops on destroyed objects
  • Tree logs
  • Rocks
  • Beehives

All default loot tables supported can be printed as usual, so that all the defaults can be explored, copy-pasted and modified.

So whats not supported yet?

  • A lot of objects and creatures are customly configured to drop items on death/destruction, these are not covered by any of the loot table systems.
  • Pickable objects, like mushrooms

Drop Lists:

A feature that has been requested often, is the ability to make a list of drops and then re-use that list multiple times, without having to copy-paste everything.

With v2.0.0, a new format and setting have been added for making named lists, that can be referenced by each entity (both mobs and objects) to work as a default.

Breaking changes:

The new support for additional drop tables resulted in some issues with regards to naming. The newly supported tables have a completely different structure and way of behaving. Due to this, Drop That need to use different config formats for each type of drop table. Therefore, while it may be somewhat confusing to the user, configs will now be named according to the internal type they provide configuration options for.

File name and pattern changes:

  • drop_that.tables.cfg => drop_that.character_drop.cfg
  • drop_that.supplemental.* => drop_that.character_drop.*.cfg

From the beginning, Drop That had a bit of a confusing naming schemes for its settings. Some of the names were simply the original setting names, while in other cases a more clear or standardized name was assigned.

This will be the first time existing settings changes name, and hopefully it can be avoided again in the future. In general, Drop That will (or at least, should) continue only changing existing setting names for major patches like this.

Setting changes in drop_that.character_drop.cfg:

  • ItemName => PrefabName
  • Enabled => EnableConfig
  • AmountMin => SetAmountMin
  • AmountMax => SetAmountMax
  • Chance => SetChanceToDrop
  • OnePerPlayer => SetDropOnePerPlayer
  • LevelMultiplier => SetScaleByLevel
  • Rescaled Chance / SetChanceToDrop to be in range 0 to 100 instead of 0 to 1. 1 is now 1% chance.

Setting changes in drop_that.cg:

  • Moved old settings from [DropTables] To [CharacterDrop]. [DropTables] will now contain the settings for, well... DropTable configurations.
  • [General] EnableDebug moved to [Debug] EnableDebugLogging
  • WriteDefaultDropTableToFile => WriteCharacterDropsToFile
  • Removed ApplyConditionsOnDeath. Conditions are being applied when it makes the most sense, instead of arbitrarily picking which one behaves according to this setting and which doesn't.

Changelog

  • v2.1.0:
    • Added cllc conditions ConditionWorldLevelMin/Max.
    • Fixed DropTable SetAmountMin/Max not being used for some entities.
    • Added fallback for DropTable when other mods take control of the item instantiation. This should reduce compatibility issues, although full functionality is not always possible.
    • Fixed unmodified DropTable's being affected by Drop That.
    • Added internal buffer and dispatcher for packages. Should hopefully reduce server lag and disconnects when joining.
    • Splitting config packages based on type, to reduce risk of them growing too big.
  • v2.0.1:
    • Fixed potential issue when drop tables woke up before configs were loaded / synced. Default drops will be used for that table until object is reloaded (eg. moving far away and coming back).
  • v2.0.0:
    • Massive increase in supported loot tables. Finally you can access those seagals!
    • Breaking change: Configuration renaming and changes
    • Named lists. Custom lists of drops can now be created and referred to by name when setting up entities.
    • Added condition ConditionKilledByEntityType, for identifying if killer was a player, creature or something else.
    • Added conditions for distance to center of map.
    • Optimized location data sync.
    • Documentation moved to wiki
  • v1.10.1:
    • Fixed issue with modifiers (eg. SetQualityLevel) not being applied in certain scenarios.
    • Fixed issue with Oozer not spawning more blobs when modified with Drop That. Turns out, not all drops are items. I encourage creative use of this knowledge, but wash my hands of the consequences.
    • Fixed unintended references to Spawn That, causing errors when not installed.
  • v1.10.0:
    • Optimized config sync.
    • Added settings for dropping items in stacks. Both global and/or per item.
    • Added settings for limiting max amount of a drop. Both global and/or per item.
    • Added conditions for killed while having specified statuses (eg. burning, smoked).
    • Added condition for killed by skill type (eg. swords, unarmed).
    • Added condition for killed by damage type (eg. blunt, fire).
    • Added condition for spawn location, and general setting for outputting all location names in a file.
    • Added setting "SetQualityLevel".
    • Added additional options for Epic Loot to roll specific unique legendaries.
  • v1.9.0:
    • Added conditions for creature faction.
    • Added support for Spawn That condition "ConditionTemplateId", allowing for drops only for a specific template.
    • Added sub-folder search for supplemental configs. It should now be possible to place Drop That supplemental files in any folder in the bepinex config folder.
  • v1.8.2:
    • Updated support for Epic Loot to v0.7.10. Added world luck factor to loot drops. Magic Items should no longer cause endless drops and error spam.
  • v1.8.1:
    • Fixed endless drop and error spam when Epic Loot was NOT installed.
  • v1.8.0:
    • Added support for Epic Loot.
  • v1.7.0:
    • Added conditions for mod Creature Level and Loot Control.
    • Improved config merging. Supplemental files interacting with same creature will now merge in item configs from each.
    • Rewrote internal configuration management to support soft-dependant, mod-specific configurations.
  • v1.6.2:
    • Fixed option AlwaysAppend being ignored.
    • Fixed drops with no configuration being discarded
  • v1.6.1:
    • Fixed empty ConditionHasItem not being considered "all allowed".
  • v1.6.0:
    • Added output file for creature items.
    • Added conditions for creature items (eg. skeleton_bow)
    • Added conditions for creature states (eg. tamed, event)
  • v1.5.0:
    • Adding option in drop_that.cfg to generate a file containing all default drop table items. Long missing feature, I know.
  • v1.4.0:
    • Server-to-client config synchronization added.
    • Removed option "LoadDropTableConfigsOnWorldStart". This will be done by default now (including the general config).
  • v1.3.3:
    • Fixed quality being set to 3 by mistake. Leftover from discarded feature, ups!
    • Fixed readme example.
  • v1.3.0:
    • Fixed lie about drop table configurations reloading on world start. It should work properly now!
    • Added support for setting drop conditions on each item
    • Added support for selecting whether to apply conditions at time of spawn or death.
  • v1.2.0:
    • Port and rewrite of configuration system from Custom Raids
    • Now supports loading of templates
    • Additional general configuration options
    • Now supports reloading of drop table configurations when reloading world. This means you can avoid having to completely restart the game if you only change the loot configs.

Available versions

Please note that the install buttons only work if you have compatible client software installed, such as the Thunderstore Mod Manager. Otherwise use the zip download links instead.

Upload date Version number Downloads Download link  
2021-7-29 2.1.0 4821 Version 2.1.0 Install
2021-7-24 2.0.1 464 Version 2.0.1 Install
2021-7-23 2.0.0 222 Version 2.0.0 Install
2021-6-7 1.10.1 2264 Version 1.10.1 Install
2021-6-6 1.10.0 100 Version 1.10.0 Install
2021-5-22 1.9.0 457 Version 1.9.0 Install
2021-5-14 1.8.2 394 Version 1.8.2 Install
2021-5-6 1.8.1 386 Version 1.8.1 Install
2021-4-20 1.8.0 475 Version 1.8.0 Install
2021-4-11 1.7.0 503 Version 1.7.0 Install
2021-4-5 1.6.2 388 Version 1.6.2 Install
2021-4-4 1.6.1 118 Version 1.6.1 Install
2021-4-4 1.6.0 56 Version 1.6.0 Install
2021-3-18 1.5.0 927 Version 1.5.0 Install
2021-3-13 1.4.0 485 Version 1.4.0 Install
2021-3-10 1.3.3 370 Version 1.3.3 Install
2021-3-3 1.3.2 483 Version 1.3.2 Install
2021-3-3 1.3.1 57 Version 1.3.1 Install
2021-3-3 1.3.0 57 Version 1.3.0 Install
2021-2-28 1.2.0 296 Version 1.2.0 Install
2021-2-25 1.1.0 167 Version 1.1.0 Install
2021-2-24 1.0.0 113 Version 1.0.0 Install