"AutomatonItem"
  {
    viewId = { "trap_item" }
    name = "automaton"
    applyMsgFirstPerson = "assemble the automaton"
    applyMsgThirdPerson = "assembles an automaton"
    applySound = TRAP_ARMING
    weight = 30
    itemClass = TOOL
    applyTime = 3
    uses = 1
    price = 60
    effect = SummonEnemy "AUTOMATON" {1} 100
  }
"HumanoidHeadWood"
  {
    viewId = { "automaton_head" Rgb 180 140 55 255 }
    name = "wooden humanoid head"
    shortName = "humanoid head"
    weight = 4
    itemClass = TOOL
    automatonPart = {
      "automatons_upper"
      2
      { "installed_head" Rgb 180 140 55 255 }
      Description "Allows using equipment."
      {
        MakeHumanoid
        AddBodyPart HEAD 1 none
      }
      "humanoid"
      ARMOR
    }
  }
"ArcherHeadWood" inherit "HumanoidHeadWood"
  {
    viewId = { "automaton_arrow" Rgb 180 140 55 255 }
    name = "wooden arrow shooting head"
    shortName = "arrow shooting"
    automatonPart = {
      "automatons_upper"
      2
      { "installed_arrow" Rgb 180 140 55 255 }
      Description "Allows shooting arrows. Second head adds additional +10 ranged damage."
      {
        IncreaseAttr RANGED_DAMAGE 25
        AddBodyPart HEAD 1 none
        FirstSuccessful {
          GrantAbility "shoot arrow"
          IncreaseAttr RANGED_DAMAGE -15
        }
      }
      "archer"
      ARMOR
    }
  }
"AutomatonLegsWood"
  {
    viewId = { "automaton_legs" Rgb 180 140 55 255 }
    name = "pair of wooden legs"
    shortName = "wooden legs"
    weight = 8
    itemClass = TOOL
    automatonPart = {
      "automatons_lower"
      0
      { "installed_legs" Rgb 180 140 55 255 }
      Description "Adds mobility. Second pair grants the \"jump\" ability."
      {
        AddBodyPart LEG 2 none
        FirstSuccessful {
          RemovePermanent IMMOBILE
          GrantAbility "jump"
        }
      }
      ""
      ARMOR
    }
  }
"AutomatonArmsWood"
  {
    viewId = { "automaton_arms" Rgb 180 140 55 255 }
    name = "pair of wooden arms"
    shortName = "wooden arms"
    weight = 6
    itemClass = TOOL
    automatonPart = {
      "automatons_upper"
      1
      { "installed_arms" Rgb 180 140 55 255 }
      Description "Grants a melee attack and +8 damage bonus."
      {
        IncreaseAttr DAMAGE 8
        AddBodyPart ARM 2 { Intrinsic { "fist_attack" } "fists" 4 { attackMsg = SWING } }
      }
      "melee"
      WEAPON
    }
  }
"AutomatonDrillWood"
  {
    viewId = { "automaton_drill" Rgb 180 140 55 255 }
    name = "wooden drill"
    weight = 6
    itemClass = TOOL
    automatonPart = {
      "automatons_upper"
      1
      { "installed_drill" Rgb 180 140 55 255 }
      Description "Increases the digging skill by 20."
      {
        IncreaseSkill DIGGING 0.2
        AddMinionTrait WORKER
        AddBodyPart ARM 2 none
      }
      "drill"
    }
  }
"AutomatonCraftingWood"
  {
    viewId = { "automaton_crafting" Rgb 180 140 55 255 }
    name = "wooden crafting arms"
    weight = 6
    itemClass = TOOL
    automatonPart = {
      "automatons_upper"
      1
      { "installed_crafting" Rgb 180 140 55 255 }
      Description "Increases all crafting skills by 20."
      {
        IncreaseWorkshopSkill "WORKSHOP" 0.2
        IncreaseWorkshopSkill "FORGE" 0.2
        IncreaseWorkshopSkill "LABORATORY" 0.2
        IncreaseWorkshopSkill "JEWELER" 0.2
      }
      "crafting"
    }
  }
"HumanoidHeadIron"
  {
    viewId = { "automaton_head" Rgb 140 148 148 255 }
    name = "iron humanoid head"
    shortName = "humanoid head"
    weight = 4
    itemClass = TOOL
    automatonPart = {
      "automatons_upper"
      2
      { "installed_head" Rgb 140 148 148 255 }
      Description "Allows using equipment. Adds +2 defense bonus."
      {
        IncreaseAttr DEFENSE 2
        MakeHumanoid
        AddBodyPart HEAD 1 none
      }
      "humanoid"
      ARMOR
    }
  }
"ArcherHeadIron" inherit "HumanoidHeadIron"
  {
    viewId = { "automaton_arrow" Rgb 140 148 148 255 }
    name = "iron arrow shooting head"
    shortName = "arrow shooting"
    automatonPart = {
      "automatons_upper"
      2
      { "installed_arrow" Rgb 140 148 148 255 }
      Description "Allows shooting arrows. Adds +2 defense. Second head adds additional +15 ranged damage."
      {
        IncreaseAttr RANGED_DAMAGE 30
        IncreaseAttr DEFENSE 2
        AddBodyPart HEAD 1 none
        FirstSuccessful {
          GrantAbility "shoot arrow"
          IncreaseAttr RANGED_DAMAGE -15
        }
      }
      "archer"
      ARMOR
    }
  }
"FireHeadIron" inherit "HumanoidHeadIron"
  {
    viewId = { "automaton_fire" Rgb 140 148 148 255 }
    name = "iron fire breathing head"
    shortName = "fire breathing"
    automatonPart = {
      "automatons_upper"
      2
      { "installed_fire" Rgb 140 148 148 255 }
      Description "Grants the \"fire breath\" ability. Adds +2 defense."
      {
        GrantAbility "fire breath"
        IncreaseAttr DEFENSE 2
        AddBodyPart HEAD 1 none
      }
      "fire"
      ARMOR
    }
  }
"AcidHeadIron" inherit "HumanoidHeadIron"
  {
    viewId = { "automaton_acid" Rgb 140 148 148 255 }
    name = "iron acid spitting head"
    shortName = "acid spitting"
    automatonPart = {
      "automatons_upper"
      2
      { "installed_acid" Rgb 140 148 148 255 }
      Description "Grants the \"acid stream\" ability. Adds +2 defense."
      {
        GrantAbility "acid stream"
        IncreaseAttr DEFENSE 2
        AddBodyPart HEAD 1 none
      }
      "acid"
      ARMOR
    }
  }
"AutomatonLegsIron"
  {
    viewId = { "automaton_legs" Rgb 140 148 148 255 }
    name = "pair of iron legs"
    shortName = "iron legs"
    weight = 8
    itemClass = TOOL
    automatonPart = {
      "automatons_lower"
      0
      { "installed_legs" Rgb 140 148 148 255 }
      Description "Adds mobility. Second pair grants the \"jump\" ability."
      {
        AddBodyPart LEG 2 none
        FirstSuccessful {
            RemovePermanent IMMOBILE
            GrantAbility "jump"
        }
      }
      ""
      ARMOR
    }
  }
"AutomatonArmsIron"
  {
    viewId = { "automaton_arms" Rgb 140 148 148 255 }
    name = "pair of iron arms"
    shortName = "iron arms"
    weight = 6
    itemClass = TOOL
    automatonPart = {
      "automatons_upper"
      1
      { "installed_arms" Rgb 140 148 148 255 }
      Description "Grants a melee attack and +12 damage bonus."
      {
        IncreaseAttr DAMAGE 12
        AddBodyPart ARM 2 { Intrinsic { "fist_attack" } "fists" 4 { attackMsg = SWING } }
      }
      "melee"
      WEAPON
    }
  }
"AutomatonDrillIron"
  {
    viewId = { "automaton_drill" Rgb 140 148 148 255 }
    name = "iron drill"
    shortName = "iron drill"
    weight = 6
    itemClass = TOOL
    automatonPart = {
      "automatons_upper"
      1
      { "installed_drill" Rgb 140 148 148 255 }
      Description "Increases the digging skill by 30."
      {
        IncreaseSkill DIGGING 0.3
        AddMinionTrait WORKER
        AddBodyPart ARM 2 none
      }
      "drill"
    }
  }
"AutomatonCraftingIron"
  {
    viewId = { "automaton_crafting" Rgb 140 148 148 255 }
    name = "iron crafting arms"
    weight = 6
    itemClass = TOOL
    automatonPart = {
      "automatons_upper"
      1
      { "installed_crafting" Rgb 140 148 148 255 }
      Description "Increases all crafting skills by 30."
      {
        IncreaseWorkshopSkill "WORKSHOP" 0.3
        IncreaseWorkshopSkill "FORGE" 0.3
        IncreaseWorkshopSkill "LABORATORY" 0.3
        IncreaseWorkshopSkill "JEWELER" 0.3
      }
      "crafting"
    }
  }
"SharpAutomatonArmsIron" inherit "AutomatonArmsIron"
  {
    name = "pair of sharp arms"
    shortName = "sharp arms"
    automatonPart = {
      "automatons_upper"
      1
      { "installed_arms" Rgb 140 148 148 255 }
      Description "Grants a melee attack with a chance to cause bleeding. Adds +10 damage and +2 defense bonus."
      {
        IncreaseAttr DAMAGE 10
        IncreaseAttr DEFENSE 2
        AddBodyPart ARM 2
        { Intrinsic { "fist_attack" } "fists" 8 { attackMsg = SWING victimEffect = { 0.5 Lasting BLEEDING } } }
      }
      "melee"
    }
  }
"RepairAutomatonArmsIron" inherit "AutomatonArmsIron"
  {
    viewId = { "automaton_repair" Rgb 140 148 148 255 }
    name = "pair of iron repair arms"
    shortName = "repair arms"
    automatonPart = {
      "automatons_upper"
      1
      { "installed_repair" Rgb 140 148 148 255 }
      Description "Grants the ability to repair other automatons. Adds +2 defense."
      {
        GrantAbility "repair automaton"
        IncreaseAttr DEFENSE 2
        AddBodyPart ARM 2 none
      }
      "repair"
    }
  }
"HumanoidHeadAda"
  {
    viewId = { "automaton_head" Rgb 148 189 189 255 }
    name = "adamantine humanoid head"
    shortName = "humanoid head"
    weight = 4
    itemClass = TOOL
    automatonPart = {
      "automatons_upper"
      2
      { "installed_head" Rgb 140 148 148 255 }
      Description "Allows using equipment. Adds +2 defense bonus."
      {
        IncreaseAttr DEFENSE 4
        MakeHumanoid
        AddBodyPart HEAD 1 none
      }
      "humanoid"
      ARMOR
    }
  }
"ArcherHeadAda" inherit "HumanoidHeadAda"
  {
    viewId = { "automaton_arrow" Rgb 148 189 189 255 }
    name = "adamantine arrow shooting head"
    shortName = "arrow shooting"
    automatonPart = {
      "automatons_upper"
      2
      { "installed_arrow" Rgb 148 189 189 255 }
      Description "Allows shooting arrows. Adds +4 defense. Second head adds additional +20 ranged damage."
      {
        IncreaseAttr RANGED_DAMAGE 40
        IncreaseAttr DEFENSE 4
        AddBodyPart HEAD 1 none
        FirstSuccessful {
          GrantAbility "shoot arrow"
          IncreaseAttr RANGED_DAMAGE -20
        }
      }
      "archer"
      ARMOR
    }
  }
"FireHeadAda" inherit "HumanoidHeadAda"
  {
    viewId = { "automaton_fire" Rgb 148 189 189 255 }
    name = "adamantine fire breathing head"
    shortName = "fire breathing"
    automatonPart = {
      "automatons_upper"
      2
      { "installed_fire" Rgb 148 189 189 255 }
      Description "Grants the \"fire breath\" ability. Adds +4 defense."
      {
        GrantAbility "fire breath"
        IncreaseAttr DEFENSE 4
        AddBodyPart HEAD 1 none
      }
      "fire"
      ARMOR
    }
  }
"AcidHeadAda" inherit "HumanoidHeadAda"
  {
    viewId = { "automaton_acid" Rgb 148 189 189 255 }
    name = "adamantine acid spitting head"
    shortName = "acid spitting"
    automatonPart = {
      "automatons_upper"
      2
      { "installed_acid" Rgb 148 189 189 255 }
      Description "Grants the \"acid stream\" ability. Adds +4 defense."
      {
        GrantAbility "acid stream"
        IncreaseAttr DEFENSE 4
        AddBodyPart HEAD 1 none
      }
      "acid"
      ARMOR
    }
  }
"AutomatonLegsAda"
  {
    viewId = { "automaton_legs" Rgb 148 189 189 255 }
    name = "pair of adamantine legs"
    shortName = "adamantine legs"
    weight = 8
    itemClass = TOOL
    automatonPart = {
      "automatons_lower"
      0
      { "installed_legs" Rgb 148 189 189 255 }
      Description "Adds mobility. Second pair grants the \"jump\" ability."
      {
        AddBodyPart LEG 2 none
        FirstSuccessful {
            RemovePermanent IMMOBILE
            GrantAbility "jump"
        }
      }
      ""
      ARMOR
    }
  }
"AutomatonArmsAda"
  {
    viewId = { "automaton_arms" Rgb 148 189 189 255 }
    name = "pair of adamantine arms"
    shortName = "adamantine arms"
    weight = 6
    itemClass = TOOL
    automatonPart = {
      "automatons_upper"
      1
      { "installed_arms" Rgb 148 189 189 255 }
      Description "Grants a melee attack and +18 damage bonus."
      {
        IncreaseAttr DAMAGE 18
        AddBodyPart ARM 2 { Intrinsic { "fist_attack" } "fists" 4 { attackMsg = SWING } }
      }
      "melee"
      WEAPON
    }
  }
"AutomatonDrillAda"
  {
    viewId = { "automaton_drill" Rgb 148 189 189 255 }
    name = "adamantine drill"
    shortName = "adamantine drill"
    weight = 6
    itemClass = TOOL
    automatonPart = {
      "automatons_upper"
      1
      { "installed_drill" Rgb 148 189 189 255 }
      Description "Increases the digging skill by 50."
      {
        IncreaseSkill DIGGING 0.5
        AddMinionTrait WORKER
        AddBodyPart ARM 2 none
      }
      "drill"
    }
  }
"AutomatonCraftingAda"
  {
    viewId = { "automaton_crafting" Rgb 148 189 189 255 }
    name = "adamantine crafting arms"
    weight = 6
    itemClass = TOOL
    automatonPart = {
      "automatons_upper"
      1
      { "installed_crafting" Rgb 148 189 189 255 }
      Description "Increases all crafting skills by 50."
      {
        IncreaseWorkshopSkill "WORKSHOP" 0.5
        IncreaseWorkshopSkill "FORGE" 0.5
        IncreaseWorkshopSkill "LABORATORY" 0.5
        IncreaseWorkshopSkill "JEWELER" 0.5
      }
      "crafting"
    }
  }
"RepairAutomatonArmsAda" inherit "AutomatonArmsAda"
  {
    viewId = { "automaton_repair" Rgb 148 189 189 255 }
    name = "pair of adamantine repair arms"
    shortName = "repair arms"
    automatonPart = {
      "automatons_upper"
      1
      { "installed_repair" Rgb 148 189 189 255 }
      Description "Grants the ability to repair other automatons. Adds +4 defense."
      {
        GrantAbility "repair automaton"
        IncreaseAttr DEFENSE 4
        AddBodyPart ARM 2 none
      }
      "repair"
    }
  }
"Knife"
  {
    viewId = { "knife" }
    name = "knife"
    plural = "knives"
    itemClass = WEAPON
    equipmentSlot = WEAPON
    weight = 0.3
    modifiers = {
      DAMAGE 5
    }
    price = 1
    weaponInfo = {
      attackType = STAB
      attackMsg = THRUST
    }
    genPrefixes = {
      1 VictimEffect 0.1 Lasting POISON
    }
  }
"AssassinsKnife" inherit "Knife"
  {
    name = "assassin's knife"
    plural = "assassin's knives"
    price = 500
    equipedEffect = {AMBUSH_SKILL}
    specialAttr = {
      DAMAGE 30 Name "against tribe leaders when hidden" And { CreatureStatus LEADER Attacker Hidden }
    }
  }
"UnicornHorn"
  {
    viewId = { "knife" }
    name = "horn"
    plural = "horn"
    itemClass = WEAPON
    equipmentSlot = WEAPON
    weight = 0.3
    modifiers = {
      DAMAGE 5
    }
    price = 1
    weaponInfo = {
      attackType = STAB
      attackMsg = THRUST
      victimEffect = { 0.5 Lasting POISON }
    }
  }
"Spear"
  {
    viewId = { "spear" }
    name = "spear"
    itemClass = WEAPON
    equipmentSlot = WEAPON
    weight = 1.5
    modifiers = {
      DAMAGE 6
    }
    price = 4
    weaponInfo = {
      attackType = STAB
      attackMsg = THRUST
    }
  }
"Sword"
  {
    viewId = { "sword" }
    name = "sword"
    itemClass = WEAPON
    equipmentSlot = WEAPON
    weight = 1.5
    modifiers = {
      DAMAGE 8
    }
    price = 4
    weaponInfo = {
      attackType = CUT
    }
    genPrefixes = {
      1 VictimEffect 0.3 Fire
      1 VictimEffect 0.1 Lasting POISON
      1 LastingEffect RAGE
      1 JoinPrefixes {
        ItemAttrBonus DAMAGE 3
        LastingEffect HALLU
      }
    }
    maxUpgrades = 1
  }
"AdaSword" inherit "Sword"
  {
    viewId = { "ada_sword" }
    name = "adamantine sword"
    modifiers = {
      DAMAGE 11
    }
    price = 20
    genPrefixes = {
      1 VictimEffect 0.2 Acid
      1 VictimEffect 0.3 Fire
      1 VictimEffect 0.2 Lasting POISON
      1 LastingEffect RAGE
    }
  }
"ElvenSword"
  {
    viewId = { "elven_sword" }
    name = "elven sword"
    itemClass = WEAPON
    equipmentSlot = WEAPON
    weight = 1
    modifiers = {
      DAMAGE 9
    }
    price = 8
    weaponInfo = {
      attackType = CUT
    }
    genPrefixes = {
      1 SpecialAttr DAMAGE 10 HatedBy HATE_UNDEAD
    }
  }
"BattleAxe"
  {
    viewId = { "battle_axe" }
    name = "battle axe"
    itemClass = WEAPON
    equipmentSlot = WEAPON
    weight = 8
    modifiers = {
      DAMAGE 14
    }
    price = 30
    weaponInfo = {
      attackType = CUT
      twoHanded = true
    }
    genPrefixes = {
      1 VictimEffect 0.2 Lasting BLEEDING
      1 LastingEffect RAGE
    }
    maxUpgrades = 1
  }
"AdaBattleAxe" inherit "BattleAxe"
  {
    viewId = { "ada_battle_axe" }
    shortName = "adamantine"
    name = "adamantine battle axe"
    modifiers = {
      DAMAGE 18
    }
    price = 150
    genPrefixes = {
      1 VictimEffect 0.5 Lasting BLEEDING
    }
    maxUpgrades = 2
  }
"WarHammer"
  {
    viewId = { "war_hammer" }
    name = "war hammer"
    itemClass = WEAPON
    equipmentSlot = WEAPON
    weight = 8
    modifiers = {
      DAMAGE 12
    }
    price = 20
    weaponInfo = {
      attackType = CRUSH
      twoHanded = true
    }
    genPrefixes = {
      1 VictimEffect 0.3 Lasting COLLAPSED
    }
    maxUpgrades = 1
  }
"AdaWarHammer" inherit "WarHammer"
  {
    viewId = { "ada_war_hammer" }
    name = "adamantine war hammer"
    modifiers = {
      DAMAGE 15
    }
    price = 100
    genPrefixes = {
      1 VictimEffect 0.5 Lasting COLLAPSED
    }
    maxUpgrades = 2
  }
"Club"
  {
    viewId = { "club" }
    name = "club"
    itemClass = WEAPON
    equipmentSlot = WEAPON
    weight = 2
    modifiers = {
      DAMAGE 4
    }
    price = 2
    weaponInfo = {
      attackType = CRUSH
    }
    maxUpgrades = 0
  }
"HeavyClub"
  {
    viewId = { "heavy_club" }
    name = "heavy club"
    itemClass = WEAPON
    equipmentSlot = WEAPON
    weight = 8
    modifiers = {
      DAMAGE 10
    }
    price = 4
    weaponInfo = {
      attackType = CRUSH
      twoHanded = true
    }
    maxUpgrades = 0
  }
"WoodenStaff"
  {
    viewId = { "wooden_staff" }
    name = "wooden staff"
    itemClass = WEAPON
    equipmentSlot = WEAPON
    weight = 1.5
    modifiers = {
      SPELL_DAMAGE 4
    }
    price = 30
    weaponInfo = {
      attackType = SPELL
      attackMsg = WAVE
      meleeAttackAttr = SPELL_DAMAGE
    }
    genPrefixes = {
      1 VictimEffect 1.0 Escape
    }
    maxUpgrades = 1
  }
"IronStaff" inherit "WoodenStaff"
  {
    viewId = { "iron_staff" }
    name = "iron staff"
    modifiers = {
      SPELL_DAMAGE 8
    }
    price = 60
    genPrefixes = {
      1 VictimEffect 1.0 Escape
      1 VictimEffect 0.4 DestroyEquipment
      1 JoinPrefixes {
        ItemAttrBonus SPELL_DAMAGE 20
        AttackerEffect Suicide DIE
      }
    }
    maxUpgrades = 2
  }
"GoldenStaff" inherit "IronStaff"
  {
    viewId = { "golden_staff" }
    name = "golden staff"
    modifiers = {
      SPELL_DAMAGE 11
    }
    price = 180
    genPrefixes = {
      1 VictimEffect 0.2 Lasting INSANITY
      1 VictimEffect 0.2 DestroyEquipment
      1 VictimEffect 0.5 Fire
    }
    maxUpgrades = 4
  }
"Scythe"
  {
    viewId = { "sword" }
    name = "scythe"
    itemClass = WEAPON
    equipmentSlot = WEAPON
    weight = 5
    modifiers = {
      DAMAGE 12
    }
    price = 20
    weaponInfo = {
      attackType = CUT
      twoHanded = true
      meleeAttackAttr = SPELL_DAMAGE
    }
  }
"ElvenBow"
  {
    viewId = { "elven_bow" }
    itemClass = RANGED_WEAPON
    equipmentSlot = RANGED_WEAPON
    rangedWeapon = RANGED_DAMAGE "arrow" {"arrow"} 12
    weaponInfo = {
      twoHanded = true
    }
    weight = 1
    modifiers = {
      RANGED_DAMAGE 16
    }
    name = "silver elven bow"
    price = 100
  }
"Bow"
  {
    viewId = { "bow" }
    name = "short bow"
    itemClass = RANGED_WEAPON
    equipmentSlot = RANGED_WEAPON
    rangedWeapon = RANGED_DAMAGE "arrow" {"arrow"} 10
    weaponInfo = {
      twoHanded = true
    }
    weight = 1
    modifiers = {
      RANGED_DAMAGE 10
    }
    price = 12
  }
"Torch"
  {
    viewId = { "hand_torch" }
    itemClass = TOOL
    weight = 1
    ownedEffect = LIGHT_SOURCE
    name = "hand torch"
    plural = "hand torches"
    price = 2
  }
"Robe"
  {
    viewId = { "robe" }
    name = "robe"
    itemClass = ARMOR
    equipmentSlot = BODY_ARMOR
    weight = 2
    price = 10
    modifiers = {
      DEFENSE 1
    }
    genPrefixes = {
      1 LastingEffect MAGIC_RESISTANCE
    }
  }
"HalloweenCostume"
  {
    viewId = { "halloween_costume" }
    name = "halloween costume"
    shortName = "halloween costume"
    itemClass = ARMOR
    equipmentSlot = BODY_ARMOR
    weight = 1
    price = 10
    modifiers = {
      DEFENSE 1
    }
  }
"BagOfCandies"
  {
    viewId = { "bag_of_candy" }
    shortName = "candies"
    name = "bag of candies"
    blindName = "bag"
    description = "Really, just a bag of candies."
    itemClass = FOOD
    weight = 0.1
    modifiers = {
      DAMAGE -15
    }
    price = 1
    uses = 1
  }
"LeatherGloves"
  {
    viewId = { "leather_gloves" }
    shortName = "gloves"
    name = "pair of leather gloves"
    plural = "pairs of leather gloves"
    itemClass = ARMOR
    equipmentSlot = GLOVES
    weight = 0.3
    price = 2
    modifiers = {
      DEFENSE 1
    }
    maxUpgrades = 0
  }
"IronGloves"
  {
    viewId = { "iron_gloves" }
    shortName = "gloves"
    name = "pair of iron gloves"
    plural = "pairs of iron gloves"
    itemClass = ARMOR
    equipmentSlot = GLOVES
    weight = 1
    price = 10
    modifiers = {
      DEFENSE 2
    }
    genPrefixes = {
      1 ItemAttrBonus DAMAGE 3
      1 ItemAttrBonus SPELL_DAMAGE 3
    }
    maxUpgrades = 1
  }
"AdaGloves"
  {
    viewId = { "ada_gloves" }
    shortName = "gloves"
    name = "pair of adamantine gloves"
    plural = "pairs of adamantine gloves"
    itemClass = ARMOR
    equipmentSlot = GLOVES
    weight = 0.7
    price = 25
    modifiers = {
      DEFENSE 3
    }
    genPrefixes = {
      1 ItemAttrBonus DAMAGE 3
      1 ItemAttrBonus SPELL_DAMAGE 3
    }
    maxUpgrades = 2
  }
"LeatherArmor"
  {
    viewId = { "leather_armor" }
    shortName = "armor"
    name = "leather armor"
    itemClass = ARMOR
    equipmentSlot = BODY_ARMOR
    weight = 7
    price = 4
    modifiers = {
      DEFENSE 3
    }
    genPrefixes = {
      1 ItemAttrBonus DEFENSE 3
    }
    maxUpgrades = 0
  }
"LeatherHelm"
  {
    viewId = { "leather_helm" }
    shortName = "helm"
    name = "leather helm"
    itemClass = ARMOR
    equipmentSlot = HELMET
    weight = 1.5
    price = 1
    modifiers = {
      DEFENSE 1
    }
    genPrefixes = {
      1 LastingEffect TELEPATHY
      1 LastingEffect SLEEP_RESISTANT
      2 ItemAttrBonus DEFENSE 3
    }
    maxUpgrades = 0
  }
"WoodenShield"
  {
    viewId = { "wooden_shield" }
    shortName = "wooden"
    name = "wooden shield"
    itemClass = ARMOR
    equipmentSlot = SHIELD
    weight = 2
    price = 1
    modifiers = {
      PARRY 1
    }
    maxUpgrades = 0
  }
"IronShield"
  {
    viewId = { "wooden_shield" Rgb 189 189 189 255 }
    shortName = "iron"
    name = "iron shield"
    itemClass = ARMOR
    equipmentSlot = SHIELD
    weight = 2
    price = 10
    modifiers = {
      PARRY 2
      DEFENSE 2
    }
    maxUpgrades = 1
  }
"AdaShield"
  {
    viewId = { "wooden_shield" Rgb 148 189 189 255 }
    shortName = "adamantine"
    name = "adamantine shield"
    itemClass = ARMOR
    equipmentSlot = SHIELD
    weight = 1.5
    price = 50
    modifiers = {
      PARRY 3
      DEFENSE 4
    }
    maxUpgrades = 2
  }
"ChainArmor"
  {
    viewId = { "chain_armor" }
    shortName = "armor"
    name = "chain armor"
    itemClass = ARMOR
    equipmentSlot = BODY_ARMOR
    weight = 15
    price = 25
    modifiers = {
      DEFENSE 5
    }
    genPrefixes = {
      1 ItemAttrBonus DEFENSE 3
    }
    maxUpgrades = 2
  }
"RedDragonScales"
  {
    viewId = { "dragon_scales" ColorId RED }
    name = "red dragon scales"
    itemClass = OTHER
    weight = 5
    price = 100
    ingredientType = "red_scales"
  }
"RedDragonArmor" inherit "ChainArmor"
  {
    viewId = { "chain_armor" Rgb 156 58 68 255 }
    shortName = "red dragon"
    name = "red dragon scale armor"
    weight = 10
    price = 250
    modifiers = {
      DEFENSE 10
      SPELL_DAMAGE 2
    }
    equipedEffect = {FIRE_RESISTANT}
    maxUpgrades = 2
  }
"BlackDragonScales"
  {
    viewId = { "dragon_scales" Rgb 80 80 80 255 }
    name = "black dragon scales"
    itemClass = OTHER
    weight = 5
    price = 100
    ingredientType = "black_scales"
  }
"BlackDragonArmor" inherit "ChainArmor"
  {
    viewId = { "chain_armor" Rgb 80 80 80 255 }
    shortName = "black dragon"
    name = "black dragon scale armor"
    weight = 10
    price = 250
    modifiers = {
      DEFENSE 15
      SPELL_DAMAGE 2
    }
    equipedEffect = {DARKNESS_SOURCE TELEPATHY}
    maxUpgrades = 2
  }
"WhiteDragonScales"
  {
    viewId = { "dragon_scales" Rgb 254 254 254 255 }
    name = "white dragon scales"
    itemClass = OTHER
    weight = 5
    price = 100
    ingredientType = "white_scales"
  }
"WhiteDragonArmor" inherit "ChainArmor"
  {
    viewId = { "chain_armor" Rgb 254 254 254 255 }
    shortName = "white dragon"
    name = "white dragon scale armor"
    weight = 10
    price = 250
    modifiers = {
      DEFENSE 7
      SPELL_DAMAGE 4
    }
    equipedEffect = {COLD_RESISTANT}
    maxUpgrades = 2
  }
"YellowDragonScales"
  {
    viewId = { "dragon_scales" Rgb 254 254 10 255 }
    name = "yellow dragon scales"
    itemClass = OTHER
    weight = 5
    price = 100
    ingredientType = "yellow_scales"
  }
"YellowDragonArmor" inherit "ChainArmor"
  {
    viewId = { "chain_armor" Rgb 254 254 10 255 }
    shortName = "yellow dragon"
    name = "yellow dragon scale armor"
    weight = 10
    price = 250
    modifiers = {
      DEFENSE 7
      SPELL_DAMAGE 4
    }
    equipedAbility = {"acid stream"}
    maxUpgrades = 2
  }
"GreenDragonScales"
  {
    viewId = { "dragon_scales" }
    name = "green dragon scales"
    itemClass = OTHER
    weight = 5
    price = 100
    ingredientType = "green_scales"
  }
"GreenDragonArmor" inherit "ChainArmor"
  {
    viewId = { "chain_armor" Rgb 151 162 81 255 }
    shortName = "green dragon"
    name = "green dragon scale armor"
    weight = 10
    price = 250
    modifiers = {
      DEFENSE 10
      SPELL_DAMAGE 2
    }
    equipedEffect = {POISON_RESISTANT}
    maxUpgrades = 2
  }
"AdaArmor"
  {
    viewId = { "ada_armor" }
    shortName = "armor"
    name = "adamantine armor"
    itemClass = ARMOR
    equipmentSlot = BODY_ARMOR
    weight = 13
    price = 160
    modifiers = {
      DEFENSE 8
    }
    genPrefixes = {
      1 ItemAttrBonus DEFENSE 3
    }
    maxUpgrades = 4
  }
"IronHelm"
  {
    viewId = { "iron_helm" }
    shortName = "helm"
    name = "iron helm"
    itemClass = ARMOR
    equipmentSlot = HELMET
    weight = 4
    price = 8
    modifiers = {
      DEFENSE 2
    }
    genPrefixes = {
      1 LastingEffect WARNING
      1 LastingEffect SLEEP_RESISTANT
      3 ItemAttrBonus DEFENSE 3
    }
    maxUpgrades = 1
  }
"HydraTongue"
  {
    viewId = { "tongue" }
    name = "hydra tongue"
    itemClass = OTHER
    weight = 15
    price = 100
    ingredientType = "hydra_tongue"
  }
"ZombieBrain"
  {
    viewId = { "brain" }
    name = "zombie brain"
    itemClass = OTHER
    weight = 2
    price = 20
    ingredientType = "zombie_brain"
  }
"CyclopsBrain"
  {
    viewId = { "brain" }
    name = "cyclops brain"
    itemClass = OTHER
    weight = 5
    price = 50
    ingredientType = "cyclops_brain"
  }
"CyclopsTesticles"
  {
    viewId = { "nuts" }
    shortName = "cyclops"
    name = "cyclops testicles"
    itemClass = OTHER
    weight = 5
    price = 50
    ingredientType = "cyclops_testes"
  }
"CyclopsHelm" inherit "IronHelm"
  {
    viewId = { "cyclops_helm" }
    shortName = "cyclops"
    name = "cyclops testicles helmet"
    plural = "cyclops testicles helmet"
    modifiers = {
      DEFENSE 5
    }
    equipedEffect = {ENTERTAINER}
    maxUpgrades = 3
  }
"AdoxieEye"
  {
    name = "Adoxie's eye"
    viewId = { "adoxie_eye" }
    upgradeInfo = ARMOR SpellId "double trouble"
    itemClass = SCROLL
    weight = 2
    price = 500
  }
"AdoxieScroll"
  {
    name = "religious pamphlet"
    viewId = { "scroll" }
    itemClass = SCROLL
    weight = 1
    price = 1
    effect = Description "Just a cheap pamphlet" Message "It predicts the coming of the Evil God Adoxie"
  }
"AdoxieScrollVault" inherit "AdoxieScroll"
  {
    effect = Description "Just a cheap pamphlet" Name "message" {
      Message "It predicts the coming of the Evil God Adoxie. You feel like this time it is real."
      Unlock "adoxie"
      Analytics "milestone" "adoxieUnlocked"
    }
  }
"AdaHelm"
  {
    viewId = { "ada_helm" }
    shortName = "helm"
    name = "adamantine helm"
    itemClass = ARMOR
    equipmentSlot = HELMET
    weight = 3
    price = 40
    modifiers = {
      DEFENSE 4 
    }
    genPrefixes = {
      1 LastingEffect TELEPATHY
      1 LastingEffect REGENERATION
    }
    maxUpgrades = 2
  }
"Cornuthaum1"
  {
    viewId = { "cornuthaum1" }
    name = "cornuthaum"
    itemClass = ARMOR
    equipmentSlot = HELMET
    weight = 1
    price = 30
    modifiers = {
      SPELL_DAMAGE 2
      DAMAGE -2
    }
    maxUpgrades = 1
  }
"Cornuthaum2"
  {
    viewId = { "cornuthaum2" }
    name = "ornate cornuthaum"
    itemClass = ARMOR
    equipmentSlot = HELMET
    weight = 1
    price = 50
    modifiers = {
      SPELL_DAMAGE 4
      DAMAGE -4
    }
    maxUpgrades = 2
  }
"Cornuthaum3"
  {
    viewId = { "cornuthaum3" }
    name = "sumptuous cornuthaum"
    itemClass = ARMOR
    equipmentSlot = HELMET
    weight = 1
    price = 70
    modifiers = {
      SPELL_DAMAGE 6
      DAMAGE -6
    }
    maxUpgrades = 4
  }
"LeatherBoots"
  {
    viewId = { "leather_boots" }
    shortName = "boots"
    name = "pair of leather boots"
    plural = "pairs of leather boots"
    itemClass = ARMOR
    equipmentSlot = BOOTS
    weight = 2
    price = 2
    modifiers = {
      DEFENSE 1
    }
    genPrefixes = {
      1 LastingEffect FLYING
      1 LastingEffect SPEED
      2 ItemAttrBonus DEFENSE 3
    }
    maxUpgrades = 0
  }
"IronBoots"
  {
    viewId = { "iron_boots" }
    shortName = "boots"
    name = "pair of iron boots"
    plural = "pairs of iron boots"
    itemClass = ARMOR
    equipmentSlot = BOOTS
    weight = 4
    price = 8
    modifiers = {
      DEFENSE 2
    }
    genPrefixes = {
      1 LastingEffect FLYING
      1 LastingEffect FIRE_RESISTANT
      3 ItemAttrBonus DEFENSE 3
    }
    maxUpgrades = 1
  }
"AdaBoots"
  {
    viewId = { "ada_boots" }
    shortName = "boots"
    name = "pair of adamantine boots"
    plural = "pairs of admantine boots"
    itemClass = ARMOR
    equipmentSlot = BOOTS
    weight = 3
    price = 50
    modifiers = {
      DEFENSE 4
    }
    genPrefixes = {
      1 LastingEffect SPEED
    }
    maxUpgrades = 2
  }
"DevilHooves"
  {
    viewId = { "devil_hooves" }
    name = "devil's hooves"
    itemClass = OTHER
    weight = 5
    price = 100
    ingredientType = "devil_hooves"
  }
"DevilBoots"
  {
    viewId = { "iron_boots" Rgb 206 58 68 255 }
    shortName = "devil"
    name = "pair of devil boots"
    plural = "pairs of devil boots"
    itemClass = ARMOR
    equipmentSlot = BOOTS
    weight = 4
    price = 800
    modifiers = {
      DEFENSE 5
    }
    equipedEffect = {FLYING SPELL_DAMAGE}
    maxUpgrades = 1
  }
"DevilHorns"
  {
    viewId = { "devil_horns" }
    name = "devil's horns"
    itemClass = OTHER
    weight = 5
    price = 100
    ingredientType = "devil_horns"
  }
"DefenseAmulet"
  {
    viewId = { "amulet3" }
    shortName = "defense"
    name = "amulet of defense"
    plural = "amulets of defense"
    description = "Increases the toughness of your skin and flesh, making you harder to wound."
    itemClass = AMULET
    equipmentSlot = AMULET
    price = 60
    modifiers = {
      DEFENSE 3
    }
    weight = 0.3
  }
"FirstAidKit"
  {
    viewId = { "first_aid" }
    name = "first aid kit"
    weight = 0.5
    itemClass = TOOL
    description = "Heals your wounds, but requires a few turns to apply."
    applyTime = 3
    uses = 3
    usedUpMsg = true
    displayUses = true
    price = 2
    effect = Heal FLESH
  }
"MagicLamp"
  {
    viewId = { "lamp" }
    name = "oil lamp"
    applyMsgFirstPerson = "rub the lamp"
    applyMsgThirdPerson = "rubs the lamp"
    weight = 1
    itemClass = TOOL
    description = "Just an oil lamp"
    uses = 1
    price = 1000
    effect = SummonEnemy "DJINN" {1} none
    effectDescription = false
    ownedEffect = LIGHT_SOURCE
  }
"Rock"
  {
    viewId = { "rock" }
    name = "rock"
    itemClass = OTHER
    price = 0
    resourceId = "STONE"
    weight = 0.3
    wishedCount = { 5 10 }
  }
"BlackMarketKey"
  {
    name = "key"
    viewId = { "black_market_key" }
    itemClass = TOOL
    applyMsgFirstPerson = "try to use the key"
    applyMsgThirdPerson = "tries to use the key"
    weight = 0.1
    description = "A key with a strange crystal."
    effect = Name "Unknown" Description "" FirstSuccessful { 
      Area 2 ChainUntilFail {
        RemoveFurniture "INACTIVE_PORTAL"
        {
          Fx { TELEPORT_OUT }
          Message "The portal is activated!"
          PlaceFurniture "PORTAL_STAIRS"
          Analytics "milestone" "blackMarketPortal"
        }
      }
      Area 2 Filter Or { FurnitureType "ADOXIE_STATUE_VAULT" FurnitureType "ADOXIE_STATUE_TEMPLE" } {
        Message "The statue blinks!"
        Analytics "milestone" "adoxieStatueBlink"
      }
      Message "Nothing happens."
    }
  }
"IronOre"
  {
    viewId = { "iron_rock" }
    name = "iron ore"
    itemClass = OTHER
    price = 0
    resourceId = "IRON"
    weight = 0.5
  }
"AdaOre"
  {
    viewId = { "ada_ore" }
    name = "adamantine ore"
    itemClass = OTHER
    price = 0
    resourceId = "ADA"
    weight = 0.5
  }
"WoodPlank"
  {
    viewId = { "wood_plank" }
    name = "wood plank"
    itemClass = OTHER
    price = 0
    resourceId = "WOOD"
    weight = 5
  }
"Bone"
  {
    viewId = { "bone" }
    name = "bone"
    itemClass = CORPSE
    price = 0
    weight = 5
  }
"Skeleton"
  {
    viewId = { "bone" }
    name = "skeleton"
    itemClass = CORPSE
    price = 0
    weight = 50
  }
"FrozenRemains" inherit "Skeleton"
  {
    viewId = { "frozen_remains" }
    name = "frozen remains"
  }
"GoldPiece"
  {
    viewId = { "gold" }
    name = "gold piece"
    itemClass = GOLD
    price = 1
    resourceId = "GOLD"
    weight = 0.01
    wishedCount = { 500 1000 }
  }

