Item System Reference - dredmor-com/dungeons-of-dredmor GitHub Wiki

This reference is a guideline to how the system developed around items works like. It will help you understand how tags and items interact like.

  1. Legend
  2. Item Tag
  3. Power Tag
  4. See Also

Legend

food = Food or Booze

weapons = Weapons

armor = Armour

ranged = Bolts or Thrown Weapons

potions = Potions

traps = Traps

reagent = Craft Materials

Item Tag

<item>
Used With Name Input Description Example
food
weapons
armor
ranged
potions
traps
reagent
name string Shows up in-game as the item's name. name="Cheese Round"
food
weapons
armor
ranged
potions
traps
reagent
iconFile path Path the the item's image, what it appears as in-game. iconFile="items/food_cheese_round.png"
food
weapons
armor
ranged
potions
traps
reagent
special boolean Indicates if the item can be found on the floor or not. special="1"
food
weapons
armor
ranged
potions
traps
reagent
level ROTDG enabled: 0 - 15
No ROTDG: 0 - 10
Level it appears most often in. level="4"
food
weapons
armor
ranged
potions
traps
reagent
type 0 - 8 Weapon Type. type="0"
food
weapons
armor
ranged
potions
traps
reagent
artifact boolean Indicates if this item is an artifact, this can not be renamed (Archaeology, Krong). artifact="1"
food
weapons
armor
ranged
potions
traps
reagent
maxstack value Amount of these approximately found on one stack. maxstack="6"
food
weapons
armor
ranged
potions
traps
reagent
alchemical boolean Indicates if it shows up in craft dispensers. alchemical="1"
food
weapons
armor
ranged
potions
traps
reagent
carftoutput boolean Indicates that this should show up nowhere. craftoutput="1"
food
weapons
armor
ranged
potions
traps
reagent
overrideClassName string Changes classname corresponding to the item type to a custom one. overrideClassName="Attachment"
<price>
food
weapons
armor
ranged
potions
traps
reagent
amount value Price cost approx. in stores (actual prices will be higher!). amount="500"
<food>
food
weapons
armor
ranged
potions
traps
reagent
hp value Amount of HP healed with the food (makes item a food item!). hp="5"
food
weapons
armor
ranged
potions
traps
reagent
mp value Amount of Mana healed with alcohol (makes item an alcoholic item!). mp="12"
food
weapons
armor
ranged
potions
traps
reagent
meat boolean Indicates if this item can be used by vegans (1 = CANNOT be used by vegans). meat="1"
food
weapons
armor
ranged
potions
traps
reagent
effect string What spell to cast on the player when he eats this item. effect="Lingering Weakness"
<description>
food
weapons
armor
ranged
potions
traps
reagent
text string The funny but needed description when hovering over an item. text="This is what happens when someone leaves the milk out.
<weapon>
food
weapons
armor
ranged
potions
traps
reagent
*damagetype* string Insert a *damagetype* for the weapon to deal. Multiple damagetypes can be used. voltaic="5" blasting="3"
food
weapons
armor
ranged
potions
traps
reagent
hit string Spell casted upon hit with a bolt or thrown weapon. hit="Clockwork Drill Hit
food
weapons
armor
ranged
potions
traps
reagent
thrown string Graphic to show up following the thrown weapon when it's airborne. thrown="items/thrown_grenade.png"
food
weapons
armor
ranged
potions
traps
reagent
canTargetFloor boolean Whether the thrown weapon or bolt can target the floor. canTargetFloor="1"
<artifact>
food
weapons
armor
ranged
potions
traps
reagent
quality value How many random bonuses generate on a weapon. quality="2"
<armour>
food
weapons
armor
ranged
potions
traps
reagent
level ROTDG enabled: 0 - 15
No ROTDG: 0 - 10
What floor the armour appears on. level="4"
food
weapons
armor
ranged
potions
traps
reagent
type string What bodypart the armour fits on. type="neck"
food
weapons
armor
ranged
potions
traps
reagent
randoms boolean Function unclear... randoms="1"
<primarybuff>
food
weapons
armor
ranged
potions
traps
reagent
id 0 - 5 Specific primary buff change on the item id="0"
food
weapons
armor
ranged
potions
traps
reagent
amount value Amount of that buff to add or remove. amount="-3"
<secondarybuff>
food
weapons
armor
ranged
potions
traps
reagent
id 0 - 23 Specific secondary buff change on the item. id="12"
food
weapons
armor
ranged
potions
traps
reagent
amount -inf - inf Amount of that buff to add or remove amount="4"
<resistbuff>
food
weapons
armor
ranged
potions
traps
reagent
*damagetype* value What damagetype the armour or weapon does or doesn't resist. Can have multiple in one tag. blasting="-4"
<damagebuff>
food
weapons
armor
ranged
potions
traps
reagent
*damagetype* value What damagetype the armour does or doesn't boost. Can have multiple in one tag. conflagratory="7"
<targetHitEffectBuff>
food
weapons
armor
ranged
potions
traps
reagent
percentage 0 - 100 Percentage the item will actually cast a spell percentage="50"
food
weapons
armor
ranged
potions
traps
reagent
name string The spell cast upon hitting an enemy. name="Rockburst"
<playerHitEffectBuff>
food
weapons
armor
ranged
potions
traps
reagent
percentage 0 - 100 Percentage the item will actually cast a spell. percentage="35"
food
weapons
armor
ranged
potions
traps
reagent
name string The spell to cast upon getting hit. name="Defend"
<potion>
food
weapons
armor
ranged
potions
traps
reagent
spell string What spell to cast upon drinking the potion. spell="Medium Regen"
<wand>
food
weapons
armor
ranged
potions
traps
reagent
spell string What spell to cast upon using the wand. spell="Voltaic Empowerment"
food
weapons
armor
ranged
potions
traps
reagent
mincharge value The smallest charge a wand can have. mincharge="5"
food
weapons
armor
ranged
potions
traps
reagent
maxcharge value The biggest charge a wand can have. maxcharge="6"
<trap>
food
weapons
armor
ranged
potions
traps
reagent
trigger "once"/"always" How many times the trap can trigger trigger="Once"
food
weapons
armor
ranged
potions
traps
reagent
casts string What spell to cast upon walking over the trap. casts="Makeshift Bomb Center"
food
weapons
armor
ranged
potions
traps
reagent
level ROTDG enabled: 0 - 15
No ROTDG: 0 - 10
What level it appears on mainly, and how hard it is to disarm. level="7"
food
weapons
armor
ranged
potions
traps
reagent
origin path Path to the trap image (for gargoyles etc.) origin="dungeon/trap_wall_gargoyle0.png"
food
weapons
armor
ranged
potions
traps
reagent
originFacing "South"
"East"
"West"
Must be South if originMount is Wall and East/West when Floor. originFacing="South"
food
weapons
armor
ranged
potions
traps
reagent
originMount "Wall"
"Floor"
Must be Wall if originFacing is South or Floor if East or West. originMount="Wall"
food
weapons
armor
ranged
potions
traps
reagent
targetIsCaster boolean Function unclear... targetIsCaster="1"
<gem>
This tag is needed to indicate gems for the core "Transmute Gem" spell.
food
weapons
armor
ranged
potions
traps
reagent
value value Function unclear... value="1000"
food
weapons
armor
ranged
potions
traps
reagent
worthless string Function unclear... worthless="worthless plastic triangle"
<mushroom>
This tag is needed to indicate mushrooms, so it can grow when planted on a "Patch of Dirt"
food
weapons
armor
ranged
potions
traps
reagent
value value Function unclear... value="1000"
food
weapons
armor
ranged
potions
traps
reagent
worthless string Function unclear... worhthless="an intriguing and potentially dangerous mushroom"
<casts>
food
weapons
armor
ranged
potions
traps
reagent
spell string What spell to cast upon eating this mushroom. casts="Regal Vim"

Power Tag

<power>
Name Input Description Example
name string The power name (encrustDB-xml => <power name='name'>) of this power name="Rockburst"
description string What description will be ADDED to your item, when it has this power. description="pounds your enemies with rocks."
spell string What spell will be cast upon attacking or getting attacked while this weapon or armour is equipped. spell="Rockburst"

See Also:

Item Tutorial

Item Types

Damage

⚠️ **GitHub.com Fallback** ⚠️