-
Notifications
You must be signed in to change notification settings - Fork 4
DropTable Tutorial Modify
This tutorial will describe how to modify the feathers drop from felling fir trees to instead be coins.
First of all, to modify a DropTable drop entry we need to either find the DropTable config file of what we are modifying, or extract a list of what is being loaded.
- Go to your
BepInEx/Configfolder. - Open the
drop_that.cfg.
If it doesn't exist yet, run the game to have it generate.
- Find the
WriteDropTablesToFilessetting under the[Debug]section, and enable it. This will tell Drop That to create a bunch of files showing the DropTable loot tables that is available on world start.
WriteDropTablesToFiles = true- Run the game and enter a world.
- Check the
Bepin/Debugfolder, for a file calleddrop_that.drop_table.prefabs.txt. If you can't find it, check your logs. There should be a line describing what files are being created and where. - Open it up, and find the drop entry that you want to change.
- Search for FirTree, which should lead us to a part of the file that shows us all the drops a fir tree will have, looking something like this:
## DropTable Source: TreeBase;
[FirTree]
DropChance=50
DropOnlyOnce=False
DropMin=1
DropMax=2
[FirTree.0]
PrefabName=FirCone
Weight=1
AmountMin=1
AmountMax=1
DisableResourceModifierScaling=False
[FirTree.1]
PrefabName=Feathers
Weight=0.25
AmountMin=1
AmountMax=1
DisableResourceModifierScaling=False
[FirTree.2]
PrefabName=Resin
Weight=0.25
AmountMin=1
AmountMax=1
DisableResourceModifierScaling=FalseWhat we are searching for is the Prefab name and the ID of the drop we want to modify.
We see that feathers are under [FirTree.1], so that is the one we will be changing.
To make our changes, we must go back to the configs.
- Go to your
BepInEx/Configfolder. - Open the
drop_that.drop_table.cfg. - Add the following to the end of it.
[FirTree.1]
PrefabName = Coins
AmountMin = 10
AmountMax = 30- Save the file.
Done!
We have now told Drop That that it should modify the drop with ID 2 from the FirTree DropTable loot table.
Instead of a chance to drop a feather, it can now drop 10-30 coins
Note that all the settings we didn't change stays as they were. The drop entry at 1 still only has Weight = 0.25, so the probability of the drop is unchanged.
- CharacterDrop - Adding drops
- CharacterDrop - Modifying drops
- CharacterDrop - Disabling drops
- DropTable - Adding drops
- DropTable - Modifying drops
- DropTable - Disabling drops
- CharacterDrop - Named Lists
- DropTable - Named Lists