TweakDB - dredmor-com/dungeons-of-dredmor GitHub Wiki

The TweakDB is where tweak information is stored. Tweak information is used for various balance-related features, notably including the different difficult levels.

There do not appear to be any tweaks in the TweakDB which directly affect spells, skills, or other features commonly used in modding, outside of controlling the spawning of monsters and items (so, nothing that affects those things after they spawn).

There are four places where tweaks can go in the TweakDB:

  • Inside the main tweakDB tag
  • Inside the easy tag, which is inside the main tweakDB tag
  • Inside the medium tag, located similarly
  • Inside the hard tag, again located likewise

In the main game's tweakDB.xml lists all the non-difficulty tags, then the easy tag and its contents, then the medium tag and its contents, then the hard tag and its contents. This is likely arbitrary, but other configurations are not documented.

The tweakDB, easy, medium, and hard tags have no additional known attributes, and do not appear to ever contain tags other than tweak tags (and, of course, the difficulty tags, in the case of tweakDB).

Every tweak tag contains two attributes:

  • A name attribute: used to identify the tweak and determine what effect it applies
  • Either an ival or fval attribute, representing either an integer or floating-point decimal value

The following are the tweak types which exist in the tweakDB. As stated in the comments for the XML file, some of these may be vestigial and not actually do anything.

Name Description Value Type Used in Difficulty Tags Used in Base Tag
additional horde size ??? ival
additional monster grace period ??? ival
additional named monster damage per level ??? ival
additional named monster primary point budget ??? ival
additional named monster secondary point budget ??? ival
additional number of monsters per room per level ??? ival
ammo roll max ??? ival
ammo roll min ??? ival
anvil chance ??? ival
armour roll max ??? ival
armour roll min ??? ival
artifact quality museum multiplier ??? ival
bad dual wield penalty ??? fval
bad weapon penalty ??? fval
bbq chance ??? ival
blocker number a ??? ival
blocker number b ??? ival
blood magic inc level 0 ??? ival
blood magic inc level 1 ??? ival
blood magic inc level 2 ??? ival
blood magic inc level 3 ??? ival
blood magic inc level 4 ??? ival
boss mob XP scaler ??? fval
box muller std dev ??? fval
burn max ??? ival
burn min ??? ival
burn scale ??? ival
corpse time ??? ival
dispenser chance ??? ival
dredmor statue break exp ??? ival
dredmor statues per level ??? ival
entropy max ??? ival
entropy min ??? ival
entropy scale ??? ival
evilchest chance ??? ival
experience n ??? ival
food roll max ??? ival
food roll min ??? ival
fountain chance ??? ival
freezer chance ??? ival
gold amount per level ??? ival
gold drop per level ??? ival
hit ammo drop percent ??? ival
hit thrown drop percent ??? ival
horde chance ??? ival
horde is overpowered chance ??? ival
horde room grace period ??? ival
hpregenturns ??? ival
instability proc rate ??? ival
item power granting chance ??? ival
lockpick exp ??? ival
lockpick roll max ??? ival
lockpick roll min ??? ival
lutefisk divider ??? ival
maximum additional treasures ??? ival
maximum number of additional monsters ??? ival
max shops ??? ival
max wizard graffitis ??? ival
midas scaler ??? ival
minimum blockers ??? ival
minimum food per level ??? ival
minimum horde size ??? ival
minimum number of monsters in room ??? ival
minimum number of treasures ??? ival
miss ammo drop percent ??? ival
monster additional HP percent per level ??? fval
monster additional HP per level ??? fval
monster boost chance ??? ival
monster HP global scale ??? fval
monster hurt anim time ??? ival
monster level adder ??? ival
monster level sneaking penalty ??? ival
monster loot drop chance ??? ival
monsterspawnturns ??? ival
mushroom roll max ??? ival
mushroom roll min ??? ival
named monster box muller ??? fval
named monster chance ??? ival
number of reagents per level ??? ival
number of teleporters ??? ival
num lutefisk statues ??? ival
num quest statues ??? ival
num shelves per level ??? ival
numstairs ??? ival
num traps per level ??? ival
percent chance a found recipe is encrusting ??? ival
potion roll max ??? ival
potion roll min ??? ival
ring roll max ??? ival
ring roll min ??? ival
small random food buff ??? ival
small random food buff variation ??? ival
spregenturns ??? ival
store buy price scaler ??? fval
store sell price scaler ??? fval
tooltip border size ??? ival
trap XP scale ??? ival
treasure roll size ??? ival
uberchest chance ??? ival
vending machine scale ??? fval
wand roll max ??? ival
wand roll min ??? ival
weapon roll max ??? ival
weapon roll min ??? ival
zorkmids per level ??? ival