/*
 *
 *  Iter Vehemens ad Necem (IVAN)
 *  Copyright (C) Timo Kiviluoto
 *  Released under the GNU General
 *  Public License
 *
 *  See LICENSING which should be included
 *  along with this file for more details
 *
 */

/*
 * NOTICE!!!
 *
 * This file contains SPOILERS, which might ruin your IVAN experience
 * totally. Also, editing anything can DESTROY GAME BALANCE or CAUSE
 * OBSCURE BUGS if you don't know what you're doing. So from here on,
 * proceed at your own risk!
 */

/* Numerical item data loaded during game startup */

/* Default values: */

item
{
  Possibility = 0;
  IsDestroyable = true;
  CanBeWished = true;
  IsMaterialChangeable = true;
  WeaponCategory = UNCATEGORIZED;
  IsPolymorphSpawnable = true;
  IsAutoInitializable = true;
  Category = MISC;
  FireResistance = 0;
  PoisonResistance = 0;
  ElectricityResistance = 0;
  AcidResistance = 0;
  StrengthModifier = 0;
  /* Obligatory: FormModifier */
  /* Obligatory: DefaultSize */
  DefaultMainVolume = 0;
  DefaultSecondaryVolume = 0;
  /* Obligatory: BitmapPos */
  Price = 0;
  BaseEmitation = 0;
  UsesLongArticle = false;
  Adjective = "";
  UsesLongAdjectiveArticle = false;
  /* Obligatory: NameSingular */
  /* NameSingular + "s" by default: NamePlural */
  PostFix = "";
  ArticleMode = 0;
  /* Obligatory: MainMaterialConfig */
  /* Obligatory: SecondaryMaterialConfig */
  /* Obligatory if multiple material configurations defined: MaterialConfigChances */
  IsAbstract = true; /* This is false by default and does not inherit! */
  IsPolymorphable = true;
  OKVisualEffects = NONE;
  CanBeGeneratedInContainer = true;
  /* Obligatory: Roundness */
  GearStates = 0;
  IsTwoHanded = false;
  CreateDivineConfigurations = false;
  ForcedVisualEffects = 0;
  CanBeCloned = true;
  CanBeBroken = false;
  MinCharges = 0;
  MaxCharges = 0;
  CanBePiled = true;
  StorageVolume = 0;
  MaxGeneratedContainedItems = 0;
  AffectsArmStrength = false;
  AffectsLegStrength = false;
  AffectsDexterity = false;
  AffectsAgility = false;
  AffectsEndurance = false;
  AffectsPerception = false;
  AffectsIntelligence = false;
  AffectsWisdom = false;
  AffectsCharisma = false;
  AffectsMana = false;
  BaseEnchantment = 0;
  PriceIsProportionalToEnchantment = false;
  CanBeUsedBySmith = false;
  AffectsCarryingCapacity = false;
  HandleInPairs = false;
  CanBeEnchanted = false;
  /* Obligatory if wand: BeamColor */
  /* Obligatory if wand: BeamEffect */
  BeamStyle = PARTICLE_BEAM;
  WearWisdomLimit = NO_LIMIT;
  AttachedGod = NONE;
  /* Obligatory: AttachedGod */
  WieldedBitmapPos = 176, 0;
  IsQuestItem = false;
  IsGoodWithPlants = true;
  CreateLockConfigurations = false; /* Can't be overridden by Configs */
  CanBePickedUp = true;
  /* Obligatory if helmet: CoverPercentile */
  /* Obligatory for respective armor:
  TorsoArmorBitmapPos
  ArmArmorBitmapPos
  LegArmorBitmapPos
  HelmetBitmapPos
  CloakBitmapPos
  BeltBitmapPos
  GauntletBitmapPos
  BootBitmapPos */
  HasSecondaryMaterial = false;
  AllowEquip = true;
  /* Obligatory if scroll: ReadDifficulty */
  IsValuable = true;
  EnchantmentMinusChance = 0;
  EnchantmentPlusChance = 0;
  TeleportPriority = 100;
  HasNormalPictureDirection = true;
  DamageFlags = BLUNT;
  IsKamikazeWeapon = false;
  FlexibilityIsEssential = false;
}

materialcontainer
{
  IsAbstract = true;
  HasSecondaryMaterial = true;
}

lantern
{
  DefaultSize = 30;
  Possibility = 100;
  Category = TOOL;
  DefaultMainVolume = 400;
  StrengthModifier = 50;
  FormModifier = 20;
  Price = 10;
  BaseEmitation = rgb24(125, 125, 105);
  NameSingular = "lantern";
  MainMaterialConfig == GLASS;
  Alias == "light";
  Roundness = 75;
  CanBeBroken = true;
  BitmapPos = 0, 256;
  WallBitmapPos = 0, 192;
  AttachedGod = LEGIFER;
  WieldedBitmapPos = 160, 160;

  Config BROKEN;
  {
    DefaultSize = 15;
    Possibility = 10;
    FormModifier = 25;
    Price = 0;
    BaseEmitation = 0;
    BitmapPos = 0, 304;
    WallBitmapPos = 0, 208;
    WieldedBitmapPos = 176, 160;
  }
}

can /* materialcontainer-> */
{
  DefaultSize = 10;
  Possibility = 450;
  Category = FOOD;
  DefaultMainVolume = 50;
  DefaultSecondaryVolume = 500;
  StrengthModifier = 50;
  /* BitmapPos depends on being full or not */
  FormModifier = 15;
  NameSingular = "can";
  /* Adjective and PostFix overridden */
  MainMaterialConfig == IRON;
  SecondaryMaterialConfig = { 6, BANANA_FLESH, SCHOOL_FOOD, MUSHROOM_FLESH, PEA_SOUP, OMMEL_CERUMEN, OMMEL_SNOT; }
  MaterialConfigChances = { 6, 750, 5, 25, 5, 10, 10; }
  Roundness = 60;
  AttachedGod = NONE;
  WieldedBitmapPos = 176, 144;
  IsValuable = false;
}

lump
{
  DefaultSize = 10;
  Possibility = 400;
  Category = FOOD;
  DefaultMainVolume = 500;
  StrengthModifier = 75;
  BitmapPos = 16, 48;
  FormModifier = 10;
  NameSingular = "lump";
  MainMaterialConfig = { 2, BANANA_FLESH, SCHOOL_FOOD; }
  MaterialConfigChances = { 2, 75, 5; }
  OKVisualEffects = MIRROR|FLIP;
  Roundness = 75;
  AttachedGod = NONE;
  WieldedBitmapPos = 160, 112;
  IsValuable = false;
}

meleeweapon
{
  Category = WEAPON;
  IsAbstract = true;
  CanBeBroken = true;
  CanBePiled = false;
  CanBeEnchanted = true;
  HasSecondaryMaterial = true;
  TeleportPriority = 500;

  Config LONG_SWORD;
  {
    DefaultSize = 120;
    Possibility = 100;
    WeaponCategory = LARGE_SWORDS;
    DefaultMainVolume = 130;
    DefaultSecondaryVolume = 45;
    BitmapPos = 16, 336;
    FormModifier = 90;
    StrengthModifier = 100;
    NameSingular = "long sword";
    MainMaterialConfig = { 10, BIRCH_WOOD, OAK_WOOD, TEAK_WOOD, EBONY_WOOD, BRONZE, IRON, STEEL, METEORIC_STEEL, MITHRIL, OMMEL_TOOTH; }
    SecondaryMaterialConfig = { 10, BIRCH_WOOD, OAK_WOOD, TEAK_WOOD, EBONY_WOOD, BRONZE, IRON, STEEL, METEORIC_STEEL, MITHRIL, OMMEL_TOOTH; }
    MaterialConfigChances = { 10, 200, 150, 100, 50, 1000, 750, 100, 25, 25, 5; }
    Roundness = 10;
    AttachedGod = CRUENTUS;
    WieldedBitmapPos = 160, 16;
    EnchantmentPlusChance = 5;
    DamageFlags = SLASH|PIERCE;
  }

  Config BROKEN|LONG_SWORD;
  {
    Possibility = 10;
    BitmapPos = 32, 208;
    WieldedBitmapPos = 176, 80;
    MainMaterialConfig = { 5, EBONY_WOOD, STEEL, METEORIC_STEEL, MITHRIL, ADAMANT; }
    SecondaryMaterialConfig = { 5, EBONY_WOOD, STEEL, METEORIC_STEEL, MITHRIL, ADAMANT; }
    MaterialConfigChances = { 5, 25, 100, 25, 25, 10; }
    EnchantmentPlusChance = 10;
  }

  Config TWO_HANDED_SWORD;
  {
    DefaultSize = 150;
    Possibility = 75;
    WeaponCategory = LARGE_SWORDS;
    DefaultMainVolume = 350;
    DefaultSecondaryVolume = 150;
    StrengthModifier = 200;
    BitmapPos = 0, 0;
    FormModifier = 135;
    NameSingular = "two-handed sword";
    MainMaterialConfig = { 5, IRON, STEEL, METEORIC_STEEL, MITHRIL, OMMEL_TOOTH; }
    SecondaryMaterialConfig = { 5, IRON, STEEL, METEORIC_STEEL, MITHRIL, OMMEL_TOOTH; }
    MaterialConfigChances = { 5, 2000, 100, 25, 25, 5; }
    Roundness = 15;
    IsTwoHanded = true;
    AttachedGod = CRUENTUS;
    WieldedBitmapPos = 160, 16;
    EnchantmentMinusChance = 5;
    EnchantmentPlusChance = 5;
    DamageFlags = SLASH;
  }

  Config BROKEN|TWO_HANDED_SWORD;
  {
    Possibility = 8;
    BitmapPos = 32, 80;
    WieldedBitmapPos = 176, 80;
    MaterialConfigChances = { 4, 0, 250, 25, 25; }
    EnchantmentMinusChance = 10;
    EnchantmentPlusChance = 10;
  }

  Config TWO_HANDED_SCIMITAR;
  {
    DefaultSize = 140;
    Possibility = 25;
    WeaponCategory = LARGE_SWORDS;
    DefaultMainVolume = 400;
    DefaultSecondaryVolume = 150;
    StrengthModifier = 175;
    BitmapPos = 0, 16;
    FormModifier = 160;
    NameSingular = "two-handed scimitar";
    MainMaterialConfig = { 5, IRON, STEEL, METEORIC_STEEL, MITHRIL, OMMEL_TOOTH; }
    SecondaryMaterialConfig = { 5, IRON, STEEL, METEORIC_STEEL, MITHRIL, OMMEL_TOOTH; }
    MaterialConfigChances = { 5, 2000, 100, 25, 25, 5; }
    Roundness = 15;
    IsTwoHanded = true;
    AttachedGod = CRUENTUS;
    WieldedBitmapPos = 176, 112;
    EnchantmentMinusChance = 5;
    EnchantmentPlusChance = 5;
    DamageFlags = SLASH;
  }

  Config BROKEN|TWO_HANDED_SCIMITAR;
  {
    Possibility = 3;
    BitmapPos = 32, 96;
    WieldedBitmapPos = 176, 80;
    MaterialConfigChances = { 4, 0, 250, 25, 25; }
    EnchantmentMinusChance = 10;
    EnchantmentPlusChance = 10;
  }

  Config SPEAR;
  {
    DefaultSize = 190;
    Possibility = 600;
    WeaponCategory = POLE_ARMS;
    StrengthModifier = 70;
    BitmapPos = 16, 144;
    FormModifier = 85;
    DefaultMainVolume = 100;
    DefaultSecondaryVolume = 2500;
    NameSingular = "spear";
    MainMaterialConfig = { 13, BIRCH_WOOD, OAK_WOOD, TEAK_WOOD, EBONY_WOOD, BONE, COPPER, BRONZE, IRON, STEEL, METEORIC_STEEL, MITHRIL, OMMEL_BONE, OMMEL_TOOTH; }
    SecondaryMaterialConfig == PINE_WOOD;
    MaterialConfigChances = { 13, 250, 200, 150, 100, 250, 650, 500, 350, 200, 50, 50, 25, 10; }
    Roundness = 10;
    IsTwoHanded = true;
    AttachedGod = CRUENTUS;
    WieldedBitmapPos = 160, 96;
    EnchantmentPlusChance = 15;
    DamageFlags = PIERCE;
  }

  Config BROKEN|SPEAR;
  {
    Possibility = 60;
    BitmapPos = 32, 224;
    WieldedBitmapPos = 176, 96;
    MainMaterialConfig = { 7, STEEL, METEORIC_STEEL, MITHRIL, SAPPHIRE, RUBY, DIAMOND, ADAMANT; }
    MaterialConfigChances = { 7, 150, 25, 25, 5, 5, 5, 5; }
    EnchantmentPlusChance = 30;
  }

  Config AXE;
  {
    DefaultSize = 60;
    Possibility = 400;
    WeaponCategory = AXES;
    DefaultMainVolume = 200;
    DefaultSecondaryVolume = 500;
    StrengthModifier = 80;
    BitmapPos = 16, 256;
    FormModifier = 60;
    NameSingular = "axe";
    UsesLongArticle = true;
    MainMaterialConfig = { 7, COPPER, BRONZE, IRON, STEEL, METEORIC_STEEL, MITHRIL, OMMEL_TOOTH; }
    SecondaryMaterialConfig == PINE_WOOD;
    MaterialConfigChances = { 7, 1250, 1000, 500, 100, 25, 25, 5; }
    Roundness = 20;
    IsTwoHanded = true;
    AttachedGod = LORICATUS;
    WieldedBitmapPos = 160, 176;
    EnchantmentPlusChance = 15;
    DamageFlags = SLASH;
  }

  Config BROKEN|AXE;
  {
    Possibility = 40;
    BitmapPos = 32, 176;
    WieldedBitmapPos = 176, 176;
    MainMaterialConfig = { 4, STEEL, METEORIC_STEEL, MITHRIL, ADAMANT; }
    MaterialConfigChances = { 4, 250, 25, 25, 5; }
    EnchantmentPlusChance = 30;
  }

  Config HALBERD;
  {
    DefaultSize = 170;
    Possibility = 100;
    WeaponCategory = POLE_ARMS;
    DefaultMainVolume = 375;
    DefaultSecondaryVolume = 1500;
    StrengthModifier = 150;
    BitmapPos = 0, 80;
    FormModifier = 115;
    NameSingular = "halberd";
    MainMaterialConfig = { 5, IRON, STEEL, METEORIC_STEEL, MITHRIL, OMMEL_TOOTH; }
    SecondaryMaterialConfig == BIRCH_WOOD;
    MaterialConfigChances = { 5, 2000, 100, 25, 25, 5; }
    Roundness = 20;
    IsTwoHanded = true;
    AttachedGod = CRUENTUS;
    WieldedBitmapPos = 160, 256;
    EnchantmentMinusChance = 5;
    EnchantmentPlusChance = 5;
    DamageFlags = SLASH|PIERCE;
  }

  Config BROKEN|HALBERD;
  {
    Possibility = 10;
    BitmapPos = 32, 144;
    WieldedBitmapPos = 176, 256;
    MainMaterialConfig = { 3, STEEL, METEORIC_STEEL, MITHRIL; }
    MaterialConfigChances = { 3, 250, 25, 25; }
    EnchantmentMinusChance = 10;
    EnchantmentPlusChance = 10;
  }

  Config MACE;
  {
    StrengthModifier = 125;
    FormModifier = 75;
    DefaultSize = 70;
    DefaultMainVolume = 300;
    DefaultSecondaryVolume = 500;
    BitmapPos = 0, 32;
    Possibility = 300;
    WeaponCategory = BLUNT_WEAPONS;
    NameSingular = "mace";
    MainMaterialConfig = { 5, IRON, STEEL, METEORIC_STEEL, MITHRIL, OMMEL_TOOTH; }
    SecondaryMaterialConfig == FIR_WOOD;
    MaterialConfigChances = { 5, 2000, 100, 25, 25, 5; }
    Roundness = 30; /* we count the handle, too */
    IsTwoHanded = true;
    AttachedGod = CRUENTUS;
    WieldedBitmapPos = 160, 192;
    EnchantmentPlusChance = 10;
  }

  Config BROKEN|MACE;
  {
    Possibility = 30;
    BitmapPos = 32, 112;
    WieldedBitmapPos = 176, 192;
    MainMaterialConfig = { 4, STEEL, METEORIC_STEEL, MITHRIL, ADAMANT; }
    MaterialConfigChances = { 4, 250, 25, 25, 5; }
    EnchantmentPlusChance = 20;
  }

  Config WAR_HAMMER;
  {
    DefaultSize = 60;
    Possibility = 200;
    WeaponCategory = BLUNT_WEAPONS;
    DefaultMainVolume = 250;
    DefaultSecondaryVolume = 500;
    StrengthModifier = 110;
    BitmapPos = 80, 16;
    FormModifier = 55;
    NameSingular = "war hammer";
    MainMaterialConfig = { 8, COPPER, BRONZE, IRON, STEEL, METEORIC_STEEL, MITHRIL, OCTIRON, OMMEL_TOOTH; }
    SecondaryMaterialConfig == FIR_WOOD;
    MaterialConfigChances = { 8, 1000, 750, 500, 100, 25, 25, 25, 5; }
    Roundness = 20;
    IsTwoHanded = true;
    CanBeUsedBySmith = true;
    AttachedGod = LORICATUS;
    WieldedBitmapPos = 176, 320;
    EnchantmentPlusChance = 15;
  }

  Config BROKEN|WAR_HAMMER;
  {
    Possibility = 20;
    BitmapPos = 80, 32;
    WieldedBitmapPos = 176, 336;
    MainMaterialConfig = { 4, STEEL, METEORIC_STEEL, MITHRIL, ADAMANT; }
    MaterialConfigChances = { 4, 250, 25, 25, 5; }
    EnchantmentPlusChance = 30;
  }

  Config SICKLE;
  {
    DefaultSize = 40;
    Possibility = 50;
    WeaponCategory = SMALL_SWORDS;
    DefaultMainVolume = 100;
    DefaultSecondaryVolume = 50;
    BitmapPos = 48, 144;
    FormModifier = 60;
    StrengthModifier = 40;
    NameSingular = "sickle";
    MainMaterialConfig = { 5, IRON, STEEL, METEORIC_STEEL, MITHRIL, OMMEL_TOOTH; }
    SecondaryMaterialConfig == FIR_WOOD;
    MaterialConfigChances = { 5, 500, 100, 25, 25, 5; }
    Roundness = 20;
    AttachedGod = SEGES;
    WieldedBitmapPos = 176, 32;
    IsGoodWithPlants = true;
    EnchantmentPlusChance = 20;
    DamageFlags = SLASH;
  }

  Config BROKEN|SICKLE;
  {
    Possibility = 5;
    BitmapPos = 48, 176;
    WieldedBitmapPos = 176, 240;
    MainMaterialConfig = { 6, METEORIC_STEEL, MITHRIL, SAPPHIRE, RUBY, DIAMOND, ADAMANT; }
    MaterialConfigChances = { 6, 25, 25, 5, 5, 5, 5; }
    EnchantmentPlusChance = 40;
  }

  Config DAGGER;
  {
    DefaultSize = 40;
    Possibility = 300;
    WeaponCategory = SMALL_SWORDS;
    DefaultMainVolume = 25;
    DefaultSecondaryVolume = 25;
    BitmapPos = 48, 256;
    FormModifier = 75;
    StrengthModifier = 60;
    NameSingular = "dagger";
    MainMaterialConfig = { 5, IRON, STEEL, METEORIC_STEEL, MITHRIL, OMMEL_TOOTH; }
    SecondaryMaterialConfig = { 5, IRON, STEEL, METEORIC_STEEL, MITHRIL, OMMEL_TOOTH; }
    MaterialConfigChances = { 5, 1000, 100, 25, 25, 5; }
    Roundness = 20;
    AttachedGod = CLEPTIA;
    WieldedBitmapPos = 160, 288;
    EnchantmentPlusChance = 25;
    DamageFlags = SLASH|PIERCE;
  }

  Config BROKEN|DAGGER;
  {
    Possibility = 30;
    BitmapPos = 48, 288;
    WieldedBitmapPos = 176, 288;
    MainMaterialConfig = { 7, STEEL, METEORIC_STEEL, MITHRIL, SAPPHIRE, RUBY, DIAMOND, ADAMANT; }
    SecondaryMaterialConfig = { 7, STEEL, METEORIC_STEEL, MITHRIL, SAPPHIRE, RUBY, DIAMOND, ADAMANT; }
    MaterialConfigChances = { 7, 100, 25, 25, 5, 5, 5, 5; }
    EnchantmentPlusChance = 50;
  }

  Config SHORT_SWORD;
  {
    DefaultSize = 70;
    Possibility = 200;
    WeaponCategory = SMALL_SWORDS;
    DefaultMainVolume = 70;
    DefaultSecondaryVolume = 30;
    BitmapPos = 48, 240;
    FormModifier = 80;
    StrengthModifier = 90;
    NameSingular = "short sword";
    MainMaterialConfig = { 7, COPPER, BRONZE, IRON, STEEL, METEORIC_STEEL, MITHRIL, OMMEL_TOOTH; }
    SecondaryMaterialConfig = { 7, COPPER, BRONZE, IRON, STEEL, METEORIC_STEEL, MITHRIL, OMMEL_TOOTH; }
    MaterialConfigChances = { 7, 1250, 1000, 750, 100, 25, 25, 5; }
    Roundness = 15;
    AttachedGod = CLEPTIA;
    WieldedBitmapPos = 160, 32;
    EnchantmentPlusChance = 15;
    DamageFlags = SLASH|PIERCE;
  }

  Config BROKEN|SHORT_SWORD;
  {
    Possibility = 20;
    BitmapPos = 48, 272;
    WieldedBitmapPos = 176, 208;
    MainMaterialConfig = { 4, STEEL, METEORIC_STEEL, MITHRIL, ADAMANT; }
    SecondaryMaterialConfig = { 4, STEEL, METEORIC_STEEL, MITHRIL, ADAMANT; }
    MaterialConfigChances = { 4, 250, 25, 25, 5; }
    EnchantmentPlusChance = 30;
  }

  Config BASTARD_SWORD;
  {
    DefaultSize = 130;
    Possibility = 75;
    WeaponCategory = LARGE_SWORDS;
    DefaultMainVolume = 225;
    DefaultSecondaryVolume = 100;
    StrengthModifier = 150;
    BitmapPos = 64, 160;
    FormModifier = 115;
    NameSingular = "bastard sword";
    MainMaterialConfig = { 5, IRON, STEEL, METEORIC_STEEL, MITHRIL, OMMEL_TOOTH; }
    SecondaryMaterialConfig = { 5, IRON, STEEL, METEORIC_STEEL, MITHRIL, OMMEL_TOOTH; }
    MaterialConfigChances = { 5, 2000, 100, 25, 25, 5; }
    Roundness = 15;
    IsTwoHanded = true;
    AttachedGod = CRUENTUS;
    WieldedBitmapPos = 160, 16;
    EnchantmentPlusChance = 5;
    DamageFlags = SLASH;
  }

  Config BROKEN|BASTARD_SWORD;
  {
    Possibility = 8;
    BitmapPos = 64, 192;
    WieldedBitmapPos = 176, 80;
    MaterialConfigChances = { 4, 0, 250, 25, 25; }
    EnchantmentPlusChance = 10;
  }

  Config BATTLE_AXE;
  {
    DefaultSize = 110;
    Possibility = 200;
    WeaponCategory = AXES;
    DefaultMainVolume = 250;
    DefaultSecondaryVolume = 500;
    StrengthModifier = 100;
    BitmapPos = 64, 80;
    FormModifier = 85;
    NameSingular = "battle-axe";
    MainMaterialConfig = { 7, COPPER, BRONZE, IRON, STEEL, METEORIC_STEEL, MITHRIL, OMMEL_TOOTH; }
    SecondaryMaterialConfig == OAK_WOOD;
    MaterialConfigChances = { 7, 1500, 1000, 750, 100, 25, 25, 5; }
    Roundness = 30;
    IsTwoHanded = true;
    AttachedGod = LORICATUS;
    WieldedBitmapPos = 160, 272;
    EnchantmentPlusChance = 10;
    DamageFlags = SLASH;
  }

  Config BROKEN|BATTLE_AXE;
  {
    Possibility = 20;
    BitmapPos = 64, 96;
    WieldedBitmapPos = 176, 272;
    MainMaterialConfig = { 4, STEEL, METEORIC_STEEL, MITHRIL, ADAMANT; }
    MaterialConfigChances = { 4, 250, 25, 25, 5; }
    EnchantmentPlusChance = 20;
  }

  Config SCYTHE;
  {
    DefaultSize = 200;
    Possibility = 50;
    WeaponCategory = POLE_ARMS;
    DefaultMainVolume = 150;
    DefaultSecondaryVolume = 1800;
    BitmapPos = 64, 112;
    FormModifier = 80;
    StrengthModifier = 40;
    NameSingular = "scythe";
    MainMaterialConfig = { 5, IRON, STEEL, METEORIC_STEEL, MITHRIL, OMMEL_TOOTH; }
    SecondaryMaterialConfig == FIR_WOOD;
    MaterialConfigChances = { 5, 500, 100, 25, 25, 5; }
    Roundness = 10;
    IsTwoHanded = true;
    AttachedGod = MORTIFER;
    WieldedBitmapPos = 176, 48;
    IsGoodWithPlants = true;
    EnchantmentPlusChance = 20;
    DamageFlags = SLASH;
  }

  Config BROKEN|SCYTHE;
  {
    Possibility = 5;
    BitmapPos = 64, 128;
    WieldedBitmapPos = 160, 48;
    MainMaterialConfig = { 4, STEEL, METEORIC_STEEL, MITHRIL, ADAMANT; }
    MaterialConfigChances = { 4, 50, 25, 25, 5; }
    EnchantmentPlusChance = 40;
  }

  Config QUARTER_STAFF;
  {
    DefaultSize = 220;
    Possibility = 200;
    WeaponCategory = BLUNT_WEAPONS;
    StrengthModifier = 125;
    BitmapPos = 64, 240;
    FormModifier = 90;
    DefaultMainVolume = 3000;
    DefaultSecondaryVolume = 200;
    NameSingular = "quarterstaff";
    MainMaterialConfig = { 10, BALSA_WOOD, PINE_WOOD, FIR_WOOD, BIRCH_WOOD, OAK_WOOD, TEAK_WOOD, EBONY_WOOD, ARCANITE, OCTIRON, OMMEL_BONE; }
    SecondaryMaterialConfig = { 10, BALSA_WOOD, PINE_WOOD, FIR_WOOD, BIRCH_WOOD, OAK_WOOD, TEAK_WOOD, EBONY_WOOD, ARCANITE, OCTIRON, OMMEL_BONE; }
    MaterialConfigChances = { 10, 100, 350, 300, 250, 200, 150, 100, 75, 25, 5; }
    Roundness = 10;
    IsTwoHanded = true;
    AttachedGod = SILVA;
    WieldedBitmapPos = 160, 304;
    EnchantmentPlusChance = 20;
  }

  Config BROKEN|QUARTER_STAFF;
  {
    Possibility = 20;
    BitmapPos = 64, 256;
    WieldedBitmapPos = 176, 304;
    MainMaterialConfig = { 3, EBONY_WOOD, ARCANITE, OCTIRON; }
    SecondaryMaterialConfig = { 3, EBONY_WOOD, ARCANITE, OCTIRON; }
    MaterialConfigChances = { 3, 500, 200, 25; }
    EnchantmentPlusChance = 40;
  }

  Config HAMMER;
  {
    DefaultSize = 40;
    Possibility = 50;
    WeaponCategory = BLUNT_WEAPONS;
    DefaultMainVolume = 150;
    DefaultSecondaryVolume = 300;
    StrengthModifier = 90;
    BitmapPos = 48, 160;
    FormModifier = 50;
    NameSingular = "hammer";
    MainMaterialConfig = { 7, BRONZE, IRON, STEEL, METEORIC_STEEL, MITHRIL, OCTIRON, OMMEL_TOOTH; }
    SecondaryMaterialConfig == FIR_WOOD;
    MaterialConfigChances = { 7, 750, 500, 100, 25, 25, 10, 5; }
    Roundness = 20;
    CanBeUsedBySmith = true;
    AttachedGod = LORICATUS;
    WieldedBitmapPos = 176, 16;
    EnchantmentPlusChance = 20;
  }

  Config BROKEN|HAMMER;
  {
    Possibility = 5;
    BitmapPos = 48, 192;
    WieldedBitmapPos = 176, 224;
    MainMaterialConfig = { 4, STEEL, METEORIC_STEEL, MITHRIL, ADAMANT; }
    MaterialConfigChances = { 4, 100, 25, 25, 5; }
    EnchantmentPlusChance = 40;
  }
}

banana /* materialcontainer-> */
{
  Possibility = 150;
  WeaponCategory = BLUNT_WEAPONS;
  DefaultMainVolume = 40;
  DefaultSecondaryVolume = 150;
  StrengthModifier = 75;
  Category = FOOD;
  BitmapPos = 0, 112;
  FormModifier = 25;
  DefaultSize = 20;
  NameSingular = "banana";
  MainMaterialConfig == BANANA_PEEL;
  SecondaryMaterialConfig == BANANA_FLESH;
  Alias == "gun";
  Roundness = 15;
  CanBeBroken = true;
  /* MinCharges & MaxCharges overridden */
  AttachedGod = NEFAS;
  WieldedBitmapPos = 160, 320;
  AllowEquip = false;
  IsValuable = false;

  Config BROKEN;
  {
    Possibility = 10;
    BitmapPos = 32, 272;
    WieldedBitmapPos = 176, 320;
  }
}

holybanana /* materialcontainer->banana-> */
{
  Possibility = 5;
  DefaultMainVolume = 100;
  DefaultSecondaryVolume = 500;
  StrengthModifier = 150;
  FormModifier = 250;
  DefaultSize = 30;
  Price = 1000;
  Adjective = "holy";
  PostFix = "of Oily Orpiv";
  ArticleMode = FORCE_THE;
  IsPolymorphable = false;
  Roundness = 20;
  WieldedBitmapPos = 160, 320;
  CanBePiled = false;
  CanBeBroken = false;
  SecondaryMaterialConfig == HOLY_BANANA_FLESH;
  BaseEmitation = rgb24(160, 140, 110);
  CanBeCloned = false;
  CanBeMirrored = true; /* will create a peel */
  AllowEquip = true;
  IsValuable = true;
}

justifier /* meleeweapon-> */
{
  DefaultSize = 125;
  Possibility = 0;
  WeaponCategory = LARGE_SWORDS;
  DefaultMainVolume = 200;
  DefaultSecondaryVolume = 100;
  BitmapPos = 0, 64;
  FormModifier = 275;
  StrengthModifier = 275;
  CanBeWished = false;
  IsMaterialChangeable = false;
  NameSingular = "broadsword";
  Adjective = "holy";
  PostFix = "named Valpurus's Justifier";
  ArticleMode = FORCE_THE;
  MainMaterialConfig == VALPURIUM;
  SecondaryMaterialConfig == VALPURIUM;
  IsPolymorphable = false;
  Alias == "Justifier";
  Roundness = 20;
  CanBeCloned = false;
  CanBeMirrored = true;
  CanBeBroken = false;
  BaseEnchantment = 16;
  CanBeEnchanted = false;
  GearStates = HASTE|INFRA_VISION|ESP|POLYMORPH_CONTROL|TELEPORT_CONTROL;
  AttachedGod = VALPURUS;
  WieldedBitmapPos = 160, 16;
  IsQuestItem = true;
  DamageFlags = SLASH|PIERCE;
}

neercseulb /* meleeweapon-> */
{
  StrengthModifier = 200;
  FormModifier = 250;
  DefaultSize = 100;
  Possibility = 0;
  CanBeWished = false;
  BitmapPos = 0, 32;
  WeaponCategory = BLUNT_WEAPONS;
  IsMaterialChangeable = false;
  DefaultMainVolume = 500;
  DefaultSecondaryVolume = 500;
  Adjective = "ancient";
  NameSingular = "mace";
  UsesLongAdjectiveArticle = true;
  PostFix = "named Neerc Se-ulb";
  ArticleMode = FORCE_THE;
  MainMaterialConfig == MITHRIL;
  SecondaryMaterialConfig == MITHRIL;
  IsPolymorphable = false;
  Alias == "Neerc Se-ulb";
  Roundness = 35;
  IsTwoHanded = true;
  CanBeCloned = false;
  CanBeMirrored = true;
  CanBeBroken = false;
  BaseEnchantment = 6;
  AttachedGod = MORTIFER;
  WieldedBitmapPos = 160, 192;
  IsQuestItem = true;
}

pickaxe /* meleeweapon-> */
{
  Category = TOOL;
  DefaultSize = 75;
  Possibility = 100;
  DefaultMainVolume = 225;
  DefaultSecondaryVolume = 400;
  BitmapPos = 0, 96;
  FormModifier = 35;
  NameSingular = "pick-axe";
  Alias == "pick-ax";
  Roundness = 20;
  WeaponCategory = AXES;
  StrengthModifier = 75;
  MainMaterialConfig = { 7, COPPER, BRONZE, IRON, STEEL, METEORIC_STEEL, MITHRIL, OMMEL_TOOTH; }
  SecondaryMaterialConfig == FIR_WOOD;
  MaterialConfigChances = { 7, 2000, 1500, 750, 100, 25, 25, 5; }
  IsTwoHanded = true;
  Price = 50; /* bonus for being able to dig */
  AttachedGod = LORICATUS;
  WieldedBitmapPos = 160, 64;
  EnchantmentPlusChance = 10;
  DamageFlags = PIERCE;

  Config BROKEN;
  {
    Possibility = 10;
    BitmapPos = 32, 160;
    Price = 0;
    WieldedBitmapPos = 176, 64;
    MainMaterialConfig = { 4, IRON, STEEL, METEORIC_STEEL, MITHRIL; }
    MaterialConfigChances = { 4, 250, 100, 25, 25; }
    EnchantmentPlusChance = 20;
  }
}

armor
{
  IsAbstract = true;
  CanBePiled = false;
  CanBeEnchanted = true;
}

bodyarmor /* armor-> */
{
  Category = BODY_ARMOR;
  FormModifier = 15;
  IsAbstract = true;
  Roundness = 70;
  IsTwoHanded = true;
  CanBeBroken = true;
  AttachedGod = LORICATUS;
  WieldedBitmapPos = 160, 144;
  TorsoArmorBitmapPos = 32, 416;
  ArmArmorBitmapPos = 80, 416;
  AthleteArmArmorBitmapPos = 80, 448;
  LegArmorBitmapPos = 16, 416;
  TeleportPriority = 200;

  Config CHAIN_MAIL;
  {
    Possibility = 50;
    StrengthModifier = 125;
    DefaultSize = 75;
    DefaultMainVolume = 2000;
    BitmapPos = 16, 96;
    NameSingular = "chain mail";
    MainMaterialConfig = { 8, BRONZE, IRON, STEEL, METEORIC_STEEL, ARCANITE, MITHRIL, OMMEL_BONE, OMMEL_TOOTH; }
    MaterialConfigChances = { 8, 450, 300, 150, 25, 20, 25, 10, 5; }
    InElasticityPenaltyModifier = 10;
    TorsoArmorBitmapPos = 32, 432;
    ArmArmorBitmapPos = 64, 432;
    AthleteArmArmorBitmapPos = 64, 464;
    LegArmorBitmapPos = 0, 432;
    EnchantmentPlusChance = 10;
  }

  Config BROKEN|CHAIN_MAIL;
  {
    Possibility = 5;
    BitmapPos = 48, 208;
    FormModifier = 20;
    StrengthModifier = 75;
    MainMaterialConfig = { 6, STEEL, METEORIC_STEEL, ARCANITE, MITHRIL, OCTIRON, ADAMANT; }
    MaterialConfigChances = { 6, 50, 25, 20, 25, 5, 5; }
    EnchantmentPlusChance = 20;
    InElasticityPenaltyModifier = 15;
  }

  Config PLATE_MAIL;
  {
    StrengthModifier = 200;
    DefaultSize = 75;
    DefaultMainVolume = 4000;
    BitmapPos = 16, 128;
    Possibility = 250;
    NameSingular = "plate mail";
    FlexibleNameSingular = "armor";
    MainMaterialConfig = { 11, LEATHER, HARDENED_LEATHER, NYMPH_HAIR, TROLL_HIDE, OMMEL_HAIR, BRONZE, IRON, STEEL, METEORIC_STEEL, OMMEL_BONE, OMMEL_TOOTH; }
    MaterialConfigChances = { 11, 5000, 2500, 250, 1000, 100, 200, 200, 100, 25, 10, 5; }
    InElasticityPenaltyModifier = 20;
    EnchantmentPlusChance = 5;
  }

  Config BROKEN|PLATE_MAIL;
  {
    Possibility = 20;
    StrengthModifier = 100;
    BitmapPos = 0, 352;
    FormModifier = 20;
    MainMaterialConfig = { 6, NYMPH_HAIR, OMMEL_HAIR, IRON, STEEL, METEORIC_STEEL, DRAGON_HIDE; }
    MaterialConfigChances = { 6, 250, 100, 250, 100, 25, 10; }
    EnchantmentPlusChance = 10;
    InElasticityPenaltyModifier = 25;
  }

  Config ARMOR_OF_GREAT_HEALTH;
  {
    StrengthModifier = 150;
    DefaultSize = 80;
    DefaultMainVolume = 5000;
    BitmapPos = 64, 208;
    Possibility = 5;
    NameSingular = "armor";
    PostFix = "of great health";
    MainMaterialConfig = { 7, LEATHER, HARDENED_LEATHER, NYMPH_HAIR, TROLL_HIDE, OMMEL_HAIR, OMMEL_BONE, OMMEL_TOOTH; }
    MaterialConfigChances = { 7, 150, 75, 25, 50, 10, 25, 10; }
    InElasticityPenaltyModifier = 40;
    AffectsEndurance = true;
    BaseEnchantment = 1;
    Price = 500;
    PriceIsProportionalToEnchantment = true;
    AttachedGod = SEGES;
    EnchantmentPlusChance = 2;
  }

  Config BROKEN|ARMOR_OF_GREAT_HEALTH;
  {
    Possibility = 10;
    StrengthModifier = 75;
    BitmapPos = 64, 224;
    FormModifier = 20;
    Price = 50;
    AffectsEndurance = false;
    MainMaterialConfig = { 6, LEATHER, HARDENED_LEATHER, NYMPH_HAIR, TROLL_HIDE, OMMEL_HAIR, DRAGON_HIDE; }
    MaterialConfigChances = { 6, 150, 75, 25, 50, 10, 1; }
    EnchantmentPlusChance = 4;
    InElasticityPenaltyModifier = 50;
  }
}

goldeneagleshirt /* armor->bodyarmor-> */
{
  DefaultSize = 60;
  BitmapPos = 16, 112;
  Possibility = 0;
  CanBeWished = false;
  IsDestroyable = false;
  IsMaterialChangeable = false;
  DefaultMainVolume = 1000;
  BaseEmitation = rgb24(112, 112, 166);
  StrengthModifier = 200;
  NameSingular = "Shirt of the Golden Eagle";
  MainMaterialConfig == GOLDEN_EAGLE_FEATHER;
  ArticleMode = FORCE_THE;
  IsPolymorphable = false;
  CanBeBroken = false;
  CanBeCloned = false;
  CanBeMirrored = true;
  BaseEnchantment = 10;
  InElasticityPenaltyModifier = 30;
  CanBeEnchanted = false;
  AttachedGod = VALPURUS;
  IsQuestItem = true;
}

potion /* materialcontainer-> */
{
  DefaultSize = 30;
  Possibility = 800;
  WeaponCategory = BLUNT_WEAPONS;
  Category = POTION;
  DefaultMainVolume = 60;
  DefaultSecondaryVolume = 1000;
  StrengthModifier = 50;
  BitmapPos = 0, 160;
  FormModifier = 25;
  NameSingular = "bottle";
  MainMaterialConfig == GLASS;
  SecondaryMaterialConfig = { 11, WATER, HEALING_LIQUID, OMMEL_URINE, POISON_LIQUID, VALDEMAR, ANTIDOTE_LIQUID, VODKA, TROLL_BLOOD, OMMEL_SWEAT, OMMEL_TEARS, SULPHURIC_ACID; }
  MaterialConfigChances = { 11, 100, 75, 5, 50, 1, 10, 5, 25, 5, 5, 25; }
  Alias = { 2, "potion", "drink"; }
  Roundness = 70;
  CanBeBroken = true;
  AttachedGod = NONE;
  WieldedBitmapPos = 176, 144;
  IsValuable = false;
  TeleportPriority = 200;
}

bananapeels
{
  DefaultSize = 20;
  Possibility = 100;
  Category = MISC;
  DefaultMainVolume = 40;
  StrengthModifier = 50;
  BitmapPos = 0, 128;
  FormModifier = 20;
  NameSingular = "banana peel";
  MainMaterialConfig == BANANA_PEEL;
  Roundness = 10;
  WeaponCategory = WHIPS;
  AttachedGod = NEFAS;
  WieldedBitmapPos = 160, 112;
  AllowEquip = false;
  IsValuable = false;
}

brokenbottle /* cannot contain anything, so NOT bottle-> */
{
  DefaultSize = 10;
  Possibility = 100;
  Category = MISC;
  DefaultMainVolume = 60;
  StrengthModifier = 50;
  BitmapPos = 16, 160;
  FormModifier = 50;
  NameSingular = "bottle";
  Adjective = "broken";
  MainMaterialConfig == GLASS;
  Roundness = 70;
  AttachedGod = NEFAS;
  WieldedBitmapPos = 160, 128;
  IsValuable = false;
  DamageFlags = PIERCE;
}

scroll
{
  Category = SCROLL;
  DefaultMainVolume = 250;
  StrengthModifier = 25;
  BitmapPos = 16, 176;
  FormModifier = 20;
  DefaultSize = 30;
  NameSingular = "scroll";
  MainMaterialConfig == PARCHMENT;
  IsAbstract = true;
  Roundness = 15;
  WieldedBitmapPos = 176, 144;
  AllowEquip = false;
  TeleportPriority = 300;
}

scrollofteleportation /* scroll-> */
{
  Possibility = 100;
  Price = 50;
  PostFix = "of teleportation";
  Alias == "scroll of teleport";
  AttachedGod = SOPHOS;
  ReadDifficulty = 50;
}

scrollofcharging /* scroll-> */
{
  Possibility = 25;
  Price = 500;
  PostFix = "of charging";
  CanBeCloned = false;
  IsPolymorphSpawnable = false;
  AttachedGod = SOPHOS;
  ReadDifficulty = 500;
}

nut
{
  DefaultSize = 3;
  Possibility = 5;
  Category = FOOD;
  DefaultMainVolume = 25;
  StrengthModifier = 50;
  BitmapPos = 16, 208;
  FormModifier = 10;
  MainMaterialConfig == HUMAN_FLESH;
  NameSingular = "nut";
  Roundness = 90;
  AttachedGod = NEFAS;
  WieldedBitmapPos = 160, 368;
  IsValuable = false;
}

leftnutofpetrus /* nut-> */
{
  DefaultSize = 10;
  Possibility = 0;
  Category = MISC;
  DefaultMainVolume = 500;
  StrengthModifier = 2500;
  IsDestroyable = false;
  BaseEmitation = rgb24(166, 112, 112);
  Adjective = "left";
  PostFix = "of Petrus";
  ArticleMode = FORCE_THE;
  IsPolymorphable = false;
  CanBeWished = false;
  CanBeCloned = false;
  FormModifier = 15;
  AttachedGod = VALPURUS;
  IsQuestItem = true;
  IsValuable = true;
}

bone
{
  DefaultSize = 50;
  Possibility = 250;
  WeaponCategory = BLUNT_WEAPONS;
  DefaultMainVolume = 500;
  StrengthModifier = 80;
  BitmapPos = 16, 240;
  FormModifier = 25;
  Category = MISC;
  NameSingular = "bone";
  MainMaterialConfig == BONE;
  Roundness = 20;
  IsTwoHanded = true;
  AttachedGod = MORTIFER;
  WieldedBitmapPos = 160, 336;
  IsValuable = false;
}

loaf
{
  DefaultSize = 40;
  Possibility = 500;
  WeaponCategory = BLUNT_WEAPONS;
  Category = FOOD;
  DefaultMainVolume = 500;
  StrengthModifier = 100;
  BitmapPos = 0, 272;
  FormModifier = 20;
  NameSingular = "loaf";
  NamePlural = "loaves";
  MainMaterialConfig = { 3, BEEF, PORK, BREAD; }
  MaterialConfigChances = { 3, 50, 50, 200; }
  Alias == "food";
  Roundness = 20;
  AttachedGod = NONE;
  WieldedBitmapPos = 160, 352;
  IsValuable = false;
}

scrollofwishing /* scroll-> */
{
  Possibility = 3;
  CanBeWished = false;
  Price = 3000;
  IsPolymorphSpawnable = false;
  PostFix = "of wishing";
  CanBeCloned = false;
  AttachedGod = ATAVUS;
  ReadDifficulty = 2500;
}

copyofleftnutofpetrus /* nut-> */
{
  DefaultSize = 10;
  Category = MISC;
  DefaultMainVolume = 500;
  NameSingular = "copy of the left nut of Petrus";
  NamePlural = "copies of the left nut of Petrus";
  FormModifier = 15;
  AttachedGod = MELLIS;
  IsValuable = false;
  IsAbstract = true;

  Config CHEAP;
  {
    Possibility = 10;
    Price = 50;
    MainMaterialConfig == GLASS; /* should be plastic */
    Adjective = "cheap";
    Alias == "left nut";
  }

  Config EXPENSIVE;
  {
    Possibility = 5;
    Price = 500;
    MainMaterialConfig == DIAMOND;
    UsesLongAdjectiveArticle = true;
    Adjective = "expensive";
  }
}

wand
{
  Category = WAND;
  DefaultMainVolume = 125;
  StrengthModifier = 50;
  BitmapPos = 0, 288;
  FormModifier = 30;
  DefaultSize = 30;
  NameSingular = "wand";
  IsAbstract = true;
  Roundness = 5;
  CanBePiled = false;
  BreakEffectRangeSquare = 2;
  WieldedBitmapPos = 160, 352;
  TeleportPriority = 1000;

  Config WAND_OF_POLYMORPH;
  {
    Possibility = 20;
    Price = 500;
    IsPolymorphSpawnable = false;
    PostFix = "of polymorph";
    MainMaterialConfig == OCTIRON;
    BeamRange = 5;
    MinCharges = 2;
    MaxCharges = 5;
    BeamColor = RANDOM_COLOR;
    BeamEffect = BEAM_POLYMORPH;
    CanBeCloned = false;
    AttachedGod = SCABIES;
    IsKamikazeWeapon = true;
    BreakMsg = "shatters, its pieces transforming into a myriad of exotic forms before vanishing";
  }

  Config WAND_OF_STRIKING;
  {
    Possibility = 30;
    Price = 500;
    PostFix = "of striking";
    MainMaterialConfig == IRON;
    BeamRange = 10;
    MinCharges = 2;
    MaxCharges = 5;
    BeamColor = WHITE;
    BeamEffect = BEAM_STRIKE;
    AttachedGod = INFUSCOR;
    IsKamikazeWeapon = true;
    BreakMsg = "explodes, releasing all of its energy at once";
  }

  Config WAND_OF_FIRE_BALLS;
  {
    Possibility = 40;
    Price = 500;
    PostFix = "of fireballs";
    MainMaterialConfig == BRONZE;
    BeamRange = 50;
    MinCharges = 1;
    MaxCharges = 4;
    BeamColor = YELLOW;
    BeamEffect = BEAM_FIRE_BALL;
    AttachedGod = INFUSCOR;
    BreakEffectRangeSquare = 0;
    IsKamikazeWeapon = true;
    BreakMsg = "turns into a fiery ball of rapidly expanding plasma";
  }

  Config WAND_OF_TELEPORTATION;
  {
    Possibility = 60;
    Price = 500;
    PostFix = "of teleportation";
    MainMaterialConfig == SILVER;
    Alias == "wand of teleport";
    BeamRange = 5;
    MinCharges = 3;
    MaxCharges = 6;
    BeamColor = BLUE;
    BeamEffect = BEAM_TELEPORT;
    AttachedGod = SOPHOS;
    BreakEffectRangeSquare = 9;
    BreakMsg = "breaks apart and a thousand splinters scatter in random directions, each cutting a tiny hole in space and time";
  }

  Config WAND_OF_HASTE;
  {
    Possibility = 40;
    Price = 500;
    PostFix = "of haste";
    MainMaterialConfig == TIN;
    BeamRange = 5;
    MinCharges = 3;
    MaxCharges = 6;
    BeamColor = RED;
    BeamEffect = BEAM_HASTE;
    AttachedGod = CLEPTIA;
    BreakMsg = "breaks, speeding up everything around it";
  }

  Config WAND_OF_SLOW;
  {
    Possibility = 40;
    Price = 500;
    PostFix = "of slow";
    MainMaterialConfig == GRANITE;
    BeamRange = 5;
    MinCharges = 3;
    MaxCharges = 6;
    BeamColor = BLUE;
    BeamEffect = BEAM_SLOW;
    AttachedGod = INFUSCOR;
    BreakMsg = "breaks, dilating time around it";
  }

  Config WAND_OF_RESURRECTION;
  {
    Possibility = 20;
    Price = 750;
    PostFix = "of resurrection";
    MainMaterialConfig == PHOENIX_FEATHER;
    BeamRange = 5;
    MinCharges = 1;
    MaxCharges = 3;
    BeamColor = BLACK;
    BeamEffect = BEAM_RESURRECT;
    AttachedGod = SEGES;
    BreakMsg = "breaks, releasing countless green rays of highly compressed life energy";
  }

  Config WAND_OF_DOOR_CREATION;
  {
    Possibility = 20;
    Price = 250;
    PostFix = "of door creation";
    MainMaterialConfig == OAK_WOOD;
    /* BeamRange has no effect */
    MinCharges = 3;
    MaxCharges = 6;
    BeamColor = LIGHT_GRAY;
    BeamEffect = BEAM_DOOR_CREATION;
    BeamStyle = SHIELD_BEAM;
    AttachedGod = LORICATUS;
    BreakMsg = "releases its powers, causing a number of highly unexpected effects to occur around itself";
  }

  Config WAND_OF_INVISIBILITY;
  {
    Possibility = 40;
    Price = 250;
    PostFix = "of invisibility";
    MainMaterialConfig == GLASS;
    BeamRange = 10;
    MinCharges = 3;
    MaxCharges = 6;
    BeamColor = TRANSPARENT_COLOR; /* invisible */
    BeamEffect = BEAM_INVISIBILITY;
    AttachedGod = CLEPTIA;
    BreakMsg = "becomes increasingly transparent and then vanishes abruptly";
  }

  Config WAND_OF_CLONING;
  {
    Possibility = 5;
    Price = 2000;
    IsPolymorphSpawnable = false;
    PostFix = "of cloning";
    MainMaterialConfig == RUBY;
    BeamRange = 5;
    MinCharges = 1;
    MaxCharges = 3;
    CanBeCloned = false;
    BeamColor = PINK;
    BeamEffect = BEAM_DUPLICATE;
    AttachedGod = INFUSCOR;
    BreakEffectRangeSquare = 0;
    BreakMsg = "breaks up, its dispersing splinters multiplying infinitely";
  }

  Config WAND_OF_LIGHTNING;
  {
    Possibility = 60;
    Price = 250;
    PostFix = "of lightning";
    MainMaterialConfig == GOLD;
    BeamRange = 15;
    MinCharges = 2;
    MaxCharges = 5;
    BeamColor = WHITE;
    BeamEffect = BEAM_LIGHTNING;
    BeamStyle = LIGHTNING_BEAM;
    AttachedGod = INFUSCOR;
    BreakEffectRangeSquare = 9;
    IsKamikazeWeapon = true;
    BreakMsg = "breaks and releases all of its stored electricity at once";
  }

  Config WAND_OF_ACID_RAIN;
  {
    Possibility = 30;
    Price = 500;
    PostFix = "of acid rain";
    MainMaterialConfig == SULFUR;
    BeamRange = 15;
    MinCharges = 2;
    MaxCharges = 5;
    BeamColor = GREEN;
    BeamEffect = BEAM_ACID_RAIN;
    AttachedGod = SCABIES;
    BreakEffectRangeSquare = 1;
    IsKamikazeWeapon = true;
    BreakMsg = "vaporizes in an instant, unleashing a deadly rainstorm of polluted acid";
  }

  Config WAND_OF_MIRRORING;
  {
    Possibility = 15;
    Price = 1000;
    IsPolymorphSpawnable = false;
    PostFix = "of mirroring";
    MainMaterialConfig == SAPPHIRE;
    BeamRange = 5;
    MinCharges = 1;
    MaxCharges = 3;
    CanBeCloned = false;
    BeamColor = PINK;
    BeamEffect = BEAM_DUPLICATE; /* difference from cloning overridden */
    AttachedGod = INFUSCOR;
    BreakEffectRangeSquare = 0;
    BreakMsg = "shatters, its slivers reflecting each other recursively ad infinitum";
  }

  Config WAND_OF_NECROMANCY;
  {
    Possibility = 30;
    Price = 500;
    PostFix = "of necromancy";
    MainMaterialConfig == BONE;
    BeamRange = 5;
    MinCharges = 2;
    MaxCharges = 5;
    BeamColor = BLACK;
    BeamEffect = BEAM_NECROMANCY;
    AttachedGod = INFUSCOR;
    BreakMsg = "emits a gross of unholy rays and self-obliterates";
  }
}

scrollofchangematerial /* scroll-> */
{
  Possibility = 5;
  Price = 2000;
  PostFix = "of change material";
  Alias == "SoCM";
  AttachedGod = LORICATUS;
  ReadDifficulty = 2000;
}

avatarofvalpurus
{
  DefaultSize = 10;
  Possibility = 0;
  CanBeWished = false;
  IsDestroyable = false;
  IsMaterialChangeable = false;
  Price = 1000000;
  Category = MISC;
  DefaultMainVolume = 250;
  StrengthModifier = 500;
  BitmapPos = 0, 320;
  FormModifier = 15;
  UsesLongArticle = true;
  NameSingular = "Avatar";
  PostFix = "of Valpurus";
  ArticleMode = FORCE_THE;
  MainMaterialConfig == VALPURIUM;
  IsPolymorphable = false;
  Roundness = 80;
  CanBeCloned = false;
  AttachedGod = VALPURUS;
  WieldedBitmapPos = 160, 128;
  IsQuestItem = true;
}

kiwi
{
  DefaultSize = 10;
  Possibility = 75;
  Category = FOOD;
  DefaultMainVolume = 50;
  StrengthModifier = 50;
  BitmapPos = 0, 384;
  FormModifier = 10;
  NameSingular = "kiwi";
  MainMaterialConfig == KIWI_FLESH;
  Roundness = 80;
  AttachedGod = SILVA;
  WieldedBitmapPos = 160, 368;
  AllowEquip = false;
  IsValuable = false;
}

pineapple
{
  DefaultSize = 20;
  Possibility = 75;
  Category = FOOD;
  DefaultMainVolume = 1000;
  StrengthModifier = 100;
  BitmapPos = 0, 368;
  FormModifier = 10;
  NameSingular = "pineapple";
  MainMaterialConfig == PINEAPPLE_FLESH;
  Roundness = 90;
  IsTwoHanded = true;
  AttachedGod = SILVA;
  WieldedBitmapPos = 176, 144;
  IsValuable = false;
}

palmbranch
{
  DefaultSize = 80;
  Possibility = 0;
  Category = MISC;
  DefaultMainVolume = 4000;
  StrengthModifier = 50;
  BitmapPos = 0, 240;
  FormModifier = 15;
  NameSingular = "palm branch";
  NamePlural = "palm branches";
  MainMaterialConfig == PALM_LEAF;
  Roundness = 80;
  IsTwoHanded = true;
  AttachedGod = SILVA;
  WieldedBitmapPos = 160, 208;
  IsValuable = false;
}

whip /* meleeweapon-> */
{
  DefaultSize = 210;
  Possibility = 50;
  WeaponCategory = WHIPS;
  DefaultMainVolume = 500;
  DefaultSecondaryVolume = 20;
  StrengthModifier = 10;
  BitmapPos = 32, 0;
  NameSingular = "whip";
  MainMaterialConfig = { 4, LEATHER, HARDENED_LEATHER, NYMPH_HAIR, OMMEL_HAIR; }
  SecondaryMaterialConfig == EBONY_WOOD;
  MaterialConfigChances = { 4, 75, 50, 25, 10; }
  Roundness = 2;
  FormModifier = 10; /* this is multiplied by MainMaterial's flexibility */
  CanBeBroken = false;
  AttachedGod = NEFAS;
  WieldedBitmapPos = 160, 224;
  EnchantmentPlusChance = 30;
  FlexibilityIsEssential = true;
  DamageFlags = SLASH;

  Config RUNED_WHIP;
  {
    DefaultSize = 230;
    Possibility = 25;
    DefaultMainVolume = 750;
    DefaultSecondaryVolume = 50;
    StrengthModifier = 20;
    Adjective = "runed";
    FormModifier = 20;
    EnchantmentPlusChance = 20;
  }
}

backpack /* materialcontainer-> */
{
  DefaultSize = 80;
  Possibility = 25;
  Category = TOOL;
  DefaultMainVolume = 1000;
  DefaultSecondaryVolume = 10000;
  StrengthModifier = 250;
  BitmapPos = 32, 16;
  FormModifier = 10;
  NameSingular = "backpack";
  MainMaterialConfig == LEATHER;
  SecondaryMaterialConfig == GUN_POWDER;
  Alias == "explosives";
  Roundness = 70;
  IsTwoHanded = true;
  AttachedGod = CRUENTUS;
  WieldedBitmapPos = 160, 144;
  IsKamikazeWeapon = true;
}

holybook
{
  DefaultSize = 25;
  Possibility = 15; /* this is for each config */
  Category = BOOK;
  DefaultMainVolume = 2000;
  StrengthModifier = 150;
  BitmapPos = 32, 32;
  FormModifier = 20;
  Adjective = "holy";
  NameSingular = "book";
  ArticleMode = FORCE_THE;
  MainMaterialConfig == PARCHMENT;
  Price = 200;
  Roundness = 70;
  IsTwoHanded = true;
  CreateDivineConfigurations = true;
  IsAbstract = true;
  AttachedGod = NONE;
  WieldedBitmapPos = 176, 144;
  ReadDifficulty = 1000;
}

fiftymillionroubles
{
  DefaultSize = 20;
  Possibility = 0;
  Price = 2;
  Category = VALUABLE; /* ??? */
  DefaultMainVolume = 1000;
  StrengthModifier = 25;
  BitmapPos = 0, 336;
  FormModifier = 15;
  NameSingular = "pile";
  PostFix = "of 50 million roubles";
  MainMaterialConfig == PARCHMENT;
  Alias = { 2, "money", "riches"; }
  Roundness = 60;
  AttachedGod = MELLIS;
  WieldedBitmapPos = 160, 128;
  IsValuable = false;
}

oillamp
{
  DefaultSize = 30;
  Possibility = 15;
  CanBeWished = false;
  Category = TOOL;
  DefaultMainVolume = 150;
  StrengthModifier = 50;
  BitmapPos = 32, 48;
  FormModifier = 20;
  BaseEmitation = rgb24(110, 110, 90);
  UsesLongArticle = true;
  NameSingular = "oil lamp";
  MainMaterialConfig == GOLD;
  Roundness = 40;
  CanBePiled = false; /* otherwise you could summon a genie only from the first piled item */
  Price = 100;
  Alias == "lamp";
  WeaponCategory = BLUNT_WEAPONS;
  AttachedGod = ATAVUS;
  WieldedBitmapPos = 160, 128;
}

stone
{
  DefaultSize = 30;
  Possibility = 25;
  Category = VALUABLE;
  DefaultMainVolume = 100;
  StrengthModifier = 100;
  BitmapPos = 0, 48;
  FormModifier = 10;
  NameSingular = "stone";
  MainMaterialConfig = { 5, SILVER, GOLD, SAPPHIRE, RUBY, DIAMOND; }
  MaterialConfigChances = { 5, 300, 200, 150, 100, 50; }
  Alias == "jewel";
  Roundness = 90;
  AttachedGod = NONE;
  WieldedBitmapPos = 160, 368;
  IsValuable = false;
  HasNormalPictureDirection = false;
}

scrolloftaming /* scroll-> */
{
  Possibility = 25;
  Price = 500;
  PostFix = "of taming";
  AttachedGod = DULCIS;
  ReadDifficulty = 100;
}

mine /*materialcontainer-> */
{
  DefaultSize = 50;
  Possibility = 50;
  Category = TOOL;
  DefaultMainVolume = 100;
  DefaultSecondaryVolume = 5000;
  StrengthModifier = 50;
  BitmapPos = 32, 288;
  FormModifier = 10;
  NameSingular = "mine";
  MainMaterialConfig == IRON;
  SecondaryMaterialConfig == GUN_POWDER;
  Roundness = 100;
  IsTwoHanded = true;
  AttachedGod = CRUENTUS;
  WieldedBitmapPos = 160, 128;

  Config BIG_MINE;
  {
    DefaultSize = 65;
    Possibility = 10;
    DefaultMainVolume = 250;
    DefaultSecondaryVolume = 12500;
    NameSingular = "big mine";
    BitmapPos = 80, 288;
  }
}

key
{
  /* Bug: CreateLockConfigurations = true before key doesn't work! */

  DefaultSize = 10;
  Possibility = 0;
  Price = 50;
  Category = TOOL;
  DefaultMainVolume = 15;
  StrengthModifier = 50;
  BitmapPos = 16, 416;
  FormModifier = 30;
  NameSingular = "key";
  MainMaterialConfig == BRONZE;
  Roundness = 10;
  AttachedGod = LORICATUS;
  WieldedBitmapPos = 160, 368;
  IsAbstract = true;

  Config ROUND_LOCK; { Adjective = "round"; Possibility = 25; }
  Config SQUARE_LOCK; { Adjective = "square"; Possibility = 25; }
  Config TRIANGULAR_LOCK; { Adjective = "triangular"; Possibility = 25; }
  Config HEXAGONAL_LOCK; { Adjective = "hexagonal"; }
  Config OCTAGONAL_LOCK;
  {
    MainMaterialConfig == OCTIRON;
    UsesLongAdjectiveArticle = true;
    Adjective = "octagonal";
  }
}

shield /* armor-> */
{
  DefaultSize = 60;
  Possibility = 250;
  Category = SHIELD;
  DefaultMainVolume = 350;
  StrengthModifier = 150;
  BitmapPos = 32, 336;
  FormModifier = 15;
  NameSingular = "shield";
  MainMaterialConfig = { 14, PINE_WOOD, FIR_WOOD, BIRCH_WOOD, OAK_WOOD, TEAK_WOOD, EBONY_WOOD, COPPER, BRONZE, IRON, STEEL, METEORIC_STEEL, MITHRIL, OMMEL_BONE, OMMEL_TOOTH; }
  MaterialConfigChances = { 14, 350, 300, 250, 200, 150, 100, 1000, 750, 500, 100, 25, 25, 10, 5; }
  Roundness = 95;
  WeaponCategory = SHIELDS;
  CanBeBroken = true;
  WieldedBitmapPos = 128, 32;
  EnchantmentPlusChance = 15;

  Config BROKEN;
  {
    Possibility = 25;
    DefaultSize = 40;
    FormModifier = 20;
    BitmapPos = 48, 224;
    WieldedBitmapPos = 128, 48;
    MainMaterialConfig = { 7, EBONY_WOOD, STEEL, METEORIC_STEEL, ARCANITE, MITHRIL, OCTIRON, ADAMANT; }
    MaterialConfigChances = { 7, 100, 150, 25, 10, 25, 5, 5; }
    EnchantmentPlusChance = 30;
  }
}

cloak /* armor-> */
{
  DefaultSize = 200;
  Possibility = 250;
  Category = CLOAK;
  DefaultMainVolume = 2000;
  StrengthModifier = 125;
  BitmapPos = 32, 352;
  FormModifier = 20;
  NameSingular = "cloak";
  MainMaterialConfig = { 5, LEATHER, HARDENED_LEATHER, TROLL_HIDE, NYMPH_HAIR, OMMEL_HAIR; }
  MaterialConfigChances = { 5, 2000, 1000, 500, 250, 100; }
  Roundness = 60;
  IsTwoHanded = true;
  InElasticityPenaltyModifier = 50;
  AttachedGod = CLEPTIA;
  WieldedBitmapPos = 160, 144;
  CanBeBroken = true;
  CloakBitmapPos = 48, 416;
  EnchantmentPlusChance = 10;

  Config BROKEN;
  {
    Possibility = 25;
    BitmapPos = 64, 304;
    InElasticityPenaltyModifier = 40;
    MainMaterialConfig = { 4, TROLL_HIDE, NYMPH_HAIR, OMMEL_HAIR, DRAGON_HIDE; }
    MaterialConfigChances = { 4, 500, 250, 100, 25; }
    EnchantmentPlusChance = 20;
  }

  Config CLOAK_OF_INVISIBILITY;
  {
    Possibility = 1;
    GearStates = INVISIBLE;
    PostFix = "of invisibility";
    Price = 2500;
    MainMaterialConfig == LEATHER;
    MaterialConfigChances == 100;
    EnchantmentPlusChance = 2;
  }

  Config BROKEN|CLOAK_OF_INVISIBILITY;
  {
    Possibility = 2;
    BitmapPos = 64, 304;
    InElasticityPenaltyModifier = 40;
    Price = 500;
    GearStates = 0;
    EnchantmentPlusChance = 4;
  }

  Config CLOAK_OF_FIRE_RESISTANCE;
  {
    Possibility = 20;
    PostFix = "of fire resistance";
    Price = 250;
    FireResistance = 25;
    EnchantmentPlusChance = 5;
  }

  Config BROKEN|CLOAK_OF_FIRE_RESISTANCE;
  {
    Possibility = 2;
    BitmapPos = 64, 304;
    InElasticityPenaltyModifier = 40;
    FireResistance = 10;
    Price = 150;
    MainMaterialConfig = { 4, TROLL_HIDE, NYMPH_HAIR, OMMEL_HAIR, DRAGON_HIDE; }
    MaterialConfigChances = { 4, 300, 200, 100, 50; }
    EnchantmentPlusChance = 10;
  }

  Config CLOAK_OF_ELECTRICITY_RESISTANCE;
  {
    Possibility = 15;
    PostFix = "of electricity resistance";
    Price = 250;
    ElectricityResistance = 25;
    EnchantmentPlusChance = 5;
  }

  Config BROKEN|CLOAK_OF_ELECTRICITY_RESISTANCE;
  {
    Possibility = 2;
    BitmapPos = 64, 304;
    InElasticityPenaltyModifier = 40;
    ElectricityResistance = 10;
    Price = 150;
    MainMaterialConfig = { 4, TROLL_HIDE, NYMPH_HAIR, OMMEL_HAIR, DRAGON_HIDE; }
    MaterialConfigChances = { 4, 300, 200, 100, 50; }
    EnchantmentPlusChance = 10;
  }

  Config CLOAK_OF_ACID_RESISTANCE;
  {
    Possibility = 10;
    PostFix = "of acid resistance";
    Price = 250;
    AcidResistance = 4;
    EnchantmentPlusChance = 5;
    TeleportPriority = 1000;
  }

  Config BROKEN|CLOAK_OF_ACID_RESISTANCE;
  {
    Possibility = 1;
    BitmapPos = 64, 304;
    InElasticityPenaltyModifier = 40;
    AcidResistance = 2;
    Price = 150;
    MainMaterialConfig = { 4, TROLL_HIDE, NYMPH_HAIR, OMMEL_HAIR, DRAGON_HIDE; }
    MaterialConfigChances = { 4, 300, 200, 100, 50; }
    EnchantmentPlusChance = 10;
  }
}

boot /* armor-> */
{
  DefaultSize = 30;
  Possibility = 250;
  Category = BOOT;
  DefaultMainVolume = 400;
  StrengthModifier = 150;
  BitmapPos = 0, 400;
  FormModifier = 20;
  NameSingular = "boot";
  MainMaterialConfig = { 9, LEATHER, HARDENED_LEATHER, TROLL_HIDE, NYMPH_HAIR, OMMEL_HAIR, BRONZE, IRON, STEEL, METEORIC_STEEL; }
  MaterialConfigChances = { 9, 2000, 1000, 500, 250, 100, 1000, 500, 100, 25; }
  Roundness = 50;
  CanBePiled = true;
  InElasticityPenaltyModifier = 10;
  HandleInPairs = true;
  WieldedBitmapPos = 160, 128;
  BootBitmapPos = 16, 432;
  CanBeBroken = true;
  EnchantmentPlusChance = 10;

  Config BROKEN;
  {
    DefaultSize = 30;
    FormModifier = 30;
    BitmapPos = 80, 368;
    Possibility = 25;
    MainMaterialConfig = { 9, OMMEL_HAIR, IRON, STEEL, METEORIC_STEEL, DRAGON_HIDE, ARCANITE, MITHRIL, OCTIRON, ADAMANT; }
    MaterialConfigChances = { 9, 100, 500, 100, 25, 10, 10, 25, 5, 1; }
    EnchantmentPlusChance = 20;
    InElasticityPenaltyModifier = 30;
  }

  Config BOOT_OF_STRENGTH;
  {
    Possibility = 10;
    PostFix = "of strength";
    MainMaterialConfig == TROLL_HIDE;
    MaterialConfigChances == 100;
    AffectsLegStrength = true;
    Price = 50;
    BaseEnchantment = 1;
    PriceIsProportionalToEnchantment = true;
    EnchantmentPlusChance = 2;
  }

  Config BROKEN|BOOT_OF_STRENGTH;
  {
    DefaultSize = 30;
    FormModifier = 30;
    BitmapPos = 80, 368;
    Possibility = 20;
    AffectsLegStrength = false;
    Price = 10;
    EnchantmentPlusChance = 4;
    InElasticityPenaltyModifier = 30;
  }

  Config BOOT_OF_AGILITY;
  {
    Possibility = 10;
    PostFix = "of agility";
    MainMaterialConfig == LEATHER;
    MaterialConfigChances == 100;
    AffectsAgility = true;
    Price = 75;
    BaseEnchantment = 1;
    PriceIsProportionalToEnchantment = true;
    AttachedGod = CLEPTIA;
    EnchantmentPlusChance = 2;
  }

  Config BROKEN|BOOT_OF_AGILITY;
  {
    DefaultSize = 30;
    FormModifier = 30;
    BitmapPos = 80, 368;
    Possibility = 20;
    AffectsAgility = false;
    Price = 25;
    EnchantmentPlusChance = 4;
    InElasticityPenaltyModifier = 30;
  }

  Config BOOT_OF_KICKING;
  {
    Possibility = 10;
    PostFix = "of kicking";
    MainMaterialConfig == IRON;
    MaterialConfigChances == 100;
    Price = 50;
    FormModifier = 50;
    EnchantmentPlusChance = 5;
  }

  Config BROKEN|BOOT_OF_KICKING;
  {
    DefaultSize = 30;
    FormModifier = 30;
    BitmapPos = 80, 368;
    Possibility = 20;
    MainMaterialConfig = { 5, IRON, STEEL, METEORIC_STEEL, MITHRIL, ADAMANT; }
    MaterialConfigChances = { 5, 1000, 100, 10, 5, 1; }
    EnchantmentPlusChance = 10;
    InElasticityPenaltyModifier = 30;
  }
}

gauntlet /* armor-> */
{
  DefaultSize = 30;
  Possibility = 250;
  Category = GAUNTLET;
  DefaultMainVolume = 300;
  StrengthModifier = 125;
  BitmapPos = 32, 368;
  FormModifier = 20;
  NameSingular = "gauntlet";
  MainMaterialConfig = { 8, LEATHER, HARDENED_LEATHER, NYMPH_HAIR, OMMEL_HAIR, BRONZE, IRON, STEEL, METEORIC_STEEL; }
  MaterialConfigChances = { 8, 2000, 1000, 200, 100, 500, 250, 50, 10; }
  Roundness = 60;
  CanBePiled = true;
  InElasticityPenaltyModifier = 20;
  HandleInPairs = true;
  WieldedBitmapPos = 160, 128;
  GauntletBitmapPos = 80, 432;
  CanBeBroken = true;
  EnchantmentPlusChance = 10;
  HasNormalPictureDirection = false;

  Config BROKEN;
  {
    Possibility = 25;
    MainMaterialConfig = { 7, OMMEL_HAIR, BRONZE, IRON, STEEL, METEORIC_STEEL, DRAGON_HIDE, MITHRIL; }
    MaterialConfigChances = { 7, 100, 500, 250, 50, 10, 5, 10; }
    DefaultSize = 30;
    FormModifier = 30;
    BitmapPos = 80, 400;
    EnchantmentPlusChance = 20;
    InElasticityPenaltyModifier = 30;
  }

  Config GAUNTLET_OF_STRENGTH;
  {
    Possibility = 10;
    PostFix = "of strength";
    MainMaterialConfig == TROLL_HIDE;
    MaterialConfigChances == 100;
    AffectsArmStrength = true;
    Price = 75;
    BaseEnchantment = 1;
    PriceIsProportionalToEnchantment = true;
    AttachedGod = CRUENTUS;
    EnchantmentPlusChance = 2;
  }

  Config BROKEN|GAUNTLET_OF_STRENGTH;
  {
    DefaultSize = 20;
    FormModifier = 30;
    BitmapPos = 80, 400;
    AffectsArmStrength = false;
    Price = 25;
    EnchantmentPlusChance = 4;
    InElasticityPenaltyModifier = 30;
  }

  Config GAUNTLET_OF_DEXTERITY;
  {
    Possibility = 10;
    PostFix = "of dexterity";
    MainMaterialConfig == LEATHER;
    MaterialConfigChances == 100;
    AffectsDexterity = true;
    Price = 100;
    BaseEnchantment = 1;
    PriceIsProportionalToEnchantment = true;
    AttachedGod = CLEPTIA;
    EnchantmentPlusChance = 2;
  }

  Config BROKEN|GAUNTLET_OF_DEXTERITY;
  {
    DefaultSize = 20;
    FormModifier = 30;
    BitmapPos = 80, 400;
    AffectsDexterity = false;
    Price = 25;
    EnchantmentPlusChance = 4;
    InElasticityPenaltyModifier = 30;
  }
}

belt /* armor-> */
{
  DefaultSize = 150;
  Possibility = 250;
  WeaponCategory = WHIPS;
  Category = BELT;
  DefaultMainVolume = 250;
  StrengthModifier = 100;
  BitmapPos = 32, 384;
  NameSingular = "belt";
  MainMaterialConfig = { 4, HARDENED_LEATHER, TROLL_HIDE, NYMPH_HAIR, OMMEL_HAIR; }
  MaterialConfigChances = { 4, 1500, 500, 250, 100; }
  Roundness = 10;
  FormModifier = 5; /* this is multiplied by MainMaterial's flexibility */
  WieldedBitmapPos = 160, 224;
  BeltBitmapPos = 48, 432;
  CanBeBroken = true;
  EnchantmentPlusChance = 10;
  DamageFlags = SLASH;

  Config BROKEN;
  {
    DefaultSize = 150;
    Possibility = 25;
    MainMaterialConfig = { 5, TROLL_HIDE, NYMPH_HAIR, OMMEL_HAIR, DRAGON_HIDE, MITHRIL; }
    MaterialConfigChances = { 5, 500, 250, 100, 25, 10; }
    BitmapPos = 80, 384;
    EnchantmentPlusChance = 20;
  }

  Config BELT_OF_CARRYING;
  {
    Possibility = 10;
    PostFix = "of carrying";
    AffectsCarryingCapacity = true;
    Price = 75;
    BaseEnchantment = 1;
    PriceIsProportionalToEnchantment = true;
    AttachedGod = MELLIS;
    MainMaterialConfig == TROLL_HIDE;
    MaterialConfigChances == 100;
    EnchantmentPlusChance = 2;
  }

  Config BROKEN|BELT_OF_CARRYING;
  {
    DefaultSize = 150;
    Possibility = 20;
    AffectsCarryingCapacity = false;
    Price = 25;
    BitmapPos = 80, 384;
    EnchantmentPlusChance = 4;
  }

  Config BELT_OF_LEVITATION;
  {
    Possibility = 0;
    PostFix = "of levitation";
    GearStates = LEVITATION;
    Price = 500;
    AttachedGod = SILVA;
    MainMaterialConfig == ANGEL_HAIR;
    MaterialConfigChances == 100;
    EnchantmentPlusChance = 0;
  }

  Config BROKEN|BELT_OF_LEVITATION;
  {
    DefaultSize = 150;
    GearStates = 0;
    Price = 100;
    BitmapPos = 80, 384;
  }
}

ring
{
  DefaultSize = 2;
  Category = RING;
  DefaultMainVolume = 3;
  StrengthModifier = 100;
  BitmapPos = 16, 400;
  FormModifier = 10;
  NameSingular = "ring";
  MainMaterialConfig == DIAMOND;
  Roundness = 10; /* it is considered here opened */
  IsAbstract = true;
  WieldedBitmapPos = 160, 368;
  TeleportPriority = 300;

  Config RING_OF_FIRE_RESISTANCE;
  {
    Possibility = 40;
    FireResistance = 15;
    PostFix = "of fire resistance";
    MainMaterialConfig == DRAGON_HIDE;
    Price = 250;
    AttachedGod = LORICATUS;
  }

  Config RING_OF_POLYMORPH_CONTROL;
  {
    Possibility = 5;
    PostFix = "of polymorph control";
    MainMaterialConfig == SAPPHIRE;
    GearStates == POLYMORPH_CONTROL;
    Price = 750;
    AttachedGod = SCABIES;
    Alias == "polycontrol";
  }

  Config RING_OF_INFRA_VISION;
  {
    Possibility = 10;
    PostFix = "of infravision";
    MainMaterialConfig == SILVER;
    GearStates = INFRA_VISION;
    Price = 500;
    AttachedGod = LEGIFER;
  }

  Config RING_OF_TELEPORTATION;
  {
    Possibility = 30;
    PostFix = "of teleportation";
    GearStates = TELEPORT;
    MainMaterialConfig == MITHRIL;
    Alias == "ring of teleport";
    Price = 250;
    WearWisdomLimit = 15;
    AttachedGod = SOPHOS;
  }

  Config RING_OF_TELEPORT_CONTROL;
  {
    Possibility = 10;
    PostFix = "of teleport control";
    MainMaterialConfig == RUBY;
    GearStates = TELEPORT_CONTROL;
    Price = 500;
    AttachedGod = SOPHOS;
    TeleportPriority = 1000;
    Alias == "telecontrol";
  }

  Config RING_OF_POLYMORPH;
  {
    Possibility = 30;
    PostFix = "of polymorph";
    MainMaterialConfig == ARCANITE;
    GearStates = POLYMORPH;
    Price = 250;
    WearWisdomLimit = 15;
    AttachedGod = SCABIES;
  }

  Config RING_OF_POISON_RESISTANCE;
  {
    Possibility = 30;
    PoisonResistance = 2;
    PostFix = "of poison resistance";
    MainMaterialConfig == TIN;
    Price = 250;
    AttachedGod = SEGES;
  }

  Config RING_OF_INVISIBILITY;
  {
    Possibility = 1;
    PostFix = "of invisibility";
    MainMaterialConfig == GLASS;
    GearStates = INVISIBLE;
    Price = 2500;
    AttachedGod = CLEPTIA;
  }

  Config RING_OF_ELECTRICITY_RESISTANCE;
  {
    Possibility = 30;
    ElectricityResistance = 15;
    PostFix = "of electricity resistance";
    MainMaterialConfig == EBONY_WOOD;
    Price = 250;
    AttachedGod = LORICATUS;
  }

  Config RING_OF_SEARCHING;
  {
    Possibility = 20;
    PostFix = "of searching";
    MainMaterialConfig == OAK_WOOD;
    Price = 500;
    AttachedGod = LEGIFER;
    GearStates = SEARCHING;
  }

  Config RING_OF_ACID_RESISTANCE;
  {
    Possibility = 20;
    AcidResistance = 2;
    PostFix = "of acid resistance";
    MainMaterialConfig == GOLD;
    Price = 250;
    AttachedGod = LORICATUS;
    TeleportPriority = 1000;
  }
}

amulet
{
  DefaultSize = 20;
  Category = AMULET;
  DefaultMainVolume = 30;
  StrengthModifier = 100;
  BitmapPos = 32, 400;
  FormModifier = 10;
  UsesLongArticle = true;
  NameSingular = "amulet";
  MainMaterialConfig == GOLD;
  Roundness = 10; /* it is considered here opened */
  IsAbstract = true;
  WieldedBitmapPos = 160, 112;
  HasNormalPictureDirection = false;

  Config AMULET_OF_LIFE_SAVING;
  {
    Possibility = 5;
    PostFix = "of life saving";
    MainMaterialConfig == GOLD;
    GearStates = LIFE_SAVED;
    CanBeCloned = false;
    Price = 5000;
    AttachedGod = SEGES;
  }

  Config AMULET_OF_ESP;
  {
    Possibility = 10;
    PostFix = "of ESP";
    MainMaterialConfig == ILLITHIUM;
    GearStates = ESP;
    Price = 1000;
    AttachedGod = LEGIFER;
  }
}

bodypart
{
  Possibility = 0;
  Category = FOOD;
  IsAutoInitializable = false;
  IsAbstract = true;
  IsTwoHanded = true;
  /*Adjective = "severed";*/ /* only used if severed */
  CanBeWished = false; /* temporary */
  AttachedGod = NONE;
  IsValuable = false;
}

head /* bodypart-> */
{
  StrengthModifier = 200;
  FormModifier = 10;
  NameSingular = "head";
  Roundness = 70;
  WieldedBitmapPos = 160, 128;
}

torso /* bodypart-> */
{
  StrengthModifier = 250;
  FormModifier = 10;
  NameSingular = "torso";
  IsAbstract = true;
  Roundness = 60;
  WieldedBitmapPos = 160, 144;
}

normaltorso /* bodypart->torso-> */
{
}

humanoidtorso /* bodypart->torso-> */
{
}

arm /* bodypart-> */
{
  StrengthModifier = 100;
  FormModifier = 15;
  IsAbstract = true;
  Roundness = 15;
  WeaponCategory = BLUNT_WEAPONS;
  WieldedBitmapPos = 160, 352;
}

rightarm /* bodypart->arm-> */
{
  NameSingular = "right arm";
}

leftarm /* bodypart->arm-> */
{
  NameSingular = "left arm";
}

groin /* bodypart-> */
{
  StrengthModifier = 150;
  FormModifier = 10;
  NameSingular = "groin";
  Roundness = 40;
  WieldedBitmapPos = 160, 128;
}

leg /* bodypart-> */
{
  StrengthModifier = 125;
  FormModifier = 15;
  IsAbstract = true;
  Roundness = 20;
  WeaponCategory = BLUNT_WEAPONS;
  WieldedBitmapPos = 160, 352;
}

rightleg /* bodypart->leg-> */
{
  NameSingular = "right leg";
}

leftleg /* bodypart->leg-> */
{
  NameSingular = "left leg";
}

headofelpuri /* cannot wear helmet etc, so NOT head-> */
{
  Possibility = 0;
  CanBeWished = false;
  DefaultSize = 60;
  IsDestroyable = false;
  Category = MISC;
  StrengthModifier = 150;
  FormModifier = 15;
  BitmapPos = 16, 0;
  DefaultMainVolume = 25000;
  NameSingular = "head";
  PostFix = "of Elpuri";
  ArticleMode = FORCE_THE;
  MainMaterialConfig == ELPURI_FLESH;
  IsPolymorphable = false;
  Roundness = 80;
  IsTwoHanded = true;
  CanBeCloned = false;
  AttachedGod = SCABIES;
  WieldedBitmapPos = 160, 144;
  IsQuestItem = true;
}

corpse
{
  Possibility = 0;
  Category = FOOD;
  IsAutoInitializable = false;
  IsPolymorphSpawnable = false;
  StrengthModifier = 100;
  FormModifier = 15;
  NameSingular = "corpse";
  OKVisualEffects = ROTATE|MIRROR|FLIP;
  Roundness = 50;
  IsTwoHanded = true;
  CanBeWished = false; /* temporary */
  IsMaterialChangeable = false;
  AttachedGod = NONE;
  WieldedBitmapPos = 160, 144;
  /* BitmapPos overridden */
  IsValuable = false;
}

eddytorso /* normaltorso-> */
{
}

largetorso /* normaltorso-> */
{
  AttachedGod = NONE;
  CanBePickedUp = false;
}

largecorpse /* corpse -> */
{
  BitmapPos = 48, 0;
  CanBePickedUp = false;
  OKVisualEffects = NONE;
}

playerkindhead { }
playerkindtorso { }
playerkindrightarm { }
playerkindleftarm { }
playerkindgroin { }
playerkindrightleg { }
playerkindleftleg { }

magicmushroomtorso /* normaltorso-> */
{
}

dogtorso /* normaltorso-> */
{
}

blinkdogtorso /* dogtorso-> */
{
}

mysticfrogtorso /* normaltorso-> */
{
}

lobhsetorso /* largetorso-> */
{
}

whistle
{
  Possibility = 50;
  Category = TOOL;
  DefaultMainVolume = 50;
  StrengthModifier = 50;
  BitmapPos = 0, 416;
  FormModifier = 25;
  DefaultSize = 30;
  NameSingular = "whistle";
  MainMaterialConfig == TIN;
  Roundness = 10;
  Price = 25;
  AttachedGod = DULCIS;
  WieldedBitmapPos = 160, 368;
}

magicalwhistle /* whistle-> */
{
  Possibility = 5;
  MainMaterialConfig == RUBY;
  NameSingular = "whistle";
  Adjective = "magical";
  Price = 1500;
  Alias == "magic whistle";
  CanBePiled = false;
  AttachedGod = DULCIS;
  TeleportPriority = 10000;
}

itemcontainer
{
  CanBeGeneratedInContainer = false;
  Roundness = 60;
  IsTwoHanded = true;
  FormModifier = 15;
  MainMaterialConfig == FIR_WOOD;
  Roundness = 60;
  CanBePiled = false;
  IsAbstract = true;
  IsPolymorphSpawnable = false;
  IsDestroyable = false;
  AttachedGod = ATAVUS;
  WieldedBitmapPos = 160, 144;
  CreateLockConfigurations = true;

  Config SMALL_CHEST;
  {
    NameSingular = "chest";
    Adjective = "small";
    DefaultSize = 50;
    StorageVolume = 10000;
    DefaultMainVolume = 5000;
    Price = 75;
    Possibility = 100;
    MaxGeneratedContainedItems = 3;
    BitmapPos = 64, 48;
    DamageDivider = 2;
    StrengthModifier = 100;
  }

  Config CHEST;
  {
    NameSingular = "chest";
    StorageVolume = 100000;
    DefaultMainVolume = 30000;
    DefaultSize = 100;
    Price = 150;
    Possibility = 50;
    MaxGeneratedContainedItems = 5;
    BitmapPos = 48, 80;
    DamageDivider = 3;
    StrengthModifier = 150;
  }

  Config LARGE_CHEST;
  {
    NameSingular = "chest";
    Adjective = "large";
    DefaultSize = 200;
    StorageVolume = 1000000;
    DefaultMainVolume = 240000;
    Price = 250;
    Possibility = 10;
    MaxGeneratedContainedItems = 10;
    BitmapPos = 48, 64;
    DamageDivider = 4;
    StrengthModifier = 200;
  }

  Config STRONG_BOX;
  {
    Adjective = "small";
    NameSingular = "strong-box";
    DefaultSize = 30;
    StorageVolume = 5000;
    DefaultMainVolume = 250;
    Price = 250;
    Possibility = 10;
    MaxGeneratedContainedItems = 3;
    MainMaterialConfig == IRON;
    BitmapPos = 48, 368;
    DamageDivider = 5;
    StrengthModifier = 150;
  }
}

beartrap
{
  MainMaterialConfig == IRON;
  NameSingular = "bear trap";
  Possibility = 100;
  /* Program overrides BitmapPos always */
  IsTwoHanded = true;
  DefaultSize = 50;
  DefaultMainVolume = 500;
  FormModifier = 30;
  Roundness = 30;
  Price = 25;
  CanBePiled = false;
  CanBeBroken = true;
  AttachedGod = CRUENTUS;
  WieldedBitmapPos = 160, 128;
  IsPolymorphable = false;
  MainMaterialConfig = { 7, COPPER, BRONZE, IRON, STEEL, METEORIC_STEEL, MITHRIL, ADAMANT; }
  MaterialConfigChances = { 7, 200, 300, 500, 100, 50, 25, 1; }

  Config BROKEN;
  {
    Possibility = 10;
    BitmapPos = 48, 48;
    Price = 0;
    MainMaterialConfig = { 4, STEEL, METEORIC_STEEL, MITHRIL, ADAMANT; }
    MaterialConfigChances = { 4, 100, 50, 25, 1; }
  }
}

helmet
{
  DefaultSize = 30;
  Possibility = 350;
  Category = HELMET;
  DefaultMainVolume = 150;
  StrengthModifier = 100;
  BitmapPos = 16, 384;
  FormModifier = 10;
  NameSingular = "helmet";
  MainMaterialConfig = { 23, LEATHER, HARDENED_LEATHER, TROLL_HIDE, BALSA_WOOD, PINE_WOOD, FIR_WOOD, BIRCH_WOOD, OAK_WOOD, TEAK_WOOD, EBONY_WOOD, BONE, OBSIDIAN, TIN, COPPER, BRONZE, IRON, STEEL, METEORIC_STEEL, DRAGON_HIDE, ARCANITE, MITHRIL, OMMEL_BONE, OMMEL_TOOTH; }
  MaterialConfigChances = { 23, 500, 750, 300, 20, 70, 60, 50, 40, 30, 20, 300, 100, 100, 750, 500, 250, 100, 25, 25, 25, 25, 10, 5; }
  Roundness = 60;
  CanBeBroken = true;
  WieldedBitmapPos = 160, 128;
  CoverPercentile = 50;
  HelmetBitmapPos = 112, 416;
  EnchantmentPlusChance = 15;

  Config BROKEN;
  {
    BitmapPos = 64, 64;
    Possibility = 35;
    MainMaterialConfig = { 7, STEEL, METEORIC_STEEL, DRAGON_HIDE, ARCANITE, MITHRIL, OCTIRON, ADAMANT; }
    MaterialConfigChances = { 7, 100, 25, 25, 25, 25, 10, 5; }
    HelmetBitmapPos = 96, 448;
    EnchantmentPlusChance = 30;
  }

  Config FULL_HELMET;
  {
    DefaultSize = 40;
    DefaultMainVolume = 250;
    StrengthModifier = 150;
    FormModifier = 25;
    BitmapPos = 48, 32;
    Possibility = 35;
    Adjective = "full";
    MainMaterialConfig = { 9, COPPER, BRONZE, IRON, STEEL, METEORIC_STEEL, ARCANITE, MITHRIL, OMMEL_BONE, OMMEL_TOOTH; }
    MaterialConfigChances = { 9, 750, 500, 250, 100, 25, 25, 25, 10, 5; }
    CoverPercentile = 90;
    HelmetBitmapPos = 96, 432;
    EnchantmentPlusChance = 10;
  }

  Config BROKEN|FULL_HELMET;
  {
    BitmapPos = 64, 32;
    Possibility = 4;
    MainMaterialConfig = { 7, IRON, STEEL, METEORIC_STEEL, ARCANITE, MITHRIL, OCTIRON, ADAMANT; }
    MaterialConfigChances = { 7, 250, 100, 25, 25, 25, 10, 5; }
    HelmetBitmapPos = 112, 448;
    EnchantmentPlusChance = 20;
  }

  Config HELM_OF_PERCEPTION;
  {
    DefaultSize = 40;
    DefaultMainVolume = 250;
    StrengthModifier = 150;
    FormModifier = 25;
    BitmapPos = 48, 32;
    Possibility = 1;
    PostFix = "of piercing perception";
    AffectsPerception = true;
    MainMaterialConfig == ILLITHIUM;
    MaterialConfigChances == 100;
    BaseEnchantment = 1;
    Price = 100;
    PriceIsProportionalToEnchantment = true;
    AttachedGod = LEGIFER;
    CoverPercentile = 90;
    HelmetBitmapPos = 96, 432;
    EnchantmentPlusChance = 2;
  }

  Config BROKEN|HELM_OF_PERCEPTION;
  {
    BitmapPos = 64, 32;
    Possibility = 2;
    Price = 25;
    AffectsPerception = false;
    HelmetBitmapPos = 112, 448;
    EnchantmentPlusChance = 4;
  }

  Config HELM_OF_UNDERSTANDING;
  {
    DefaultSize = 40;
    DefaultMainVolume = 250;
    StrengthModifier = 150;
    FormModifier = 25;
    BitmapPos = 48, 32;
    Possibility = 1;
    PostFix = "of understanding";
    AffectsWisdom = true;
    MainMaterialConfig == UNICORN_HORN;
    MaterialConfigChances == 100;
    BaseEnchantment = 1;
    Price = 100;
    PriceIsProportionalToEnchantment = true;
    AttachedGod = SOPHOS;
    CoverPercentile = 90;
    HelmetBitmapPos = 96, 432;
    EnchantmentPlusChance = 2;
  }

  Config BROKEN|HELM_OF_UNDERSTANDING;
  {
    BitmapPos = 64, 32;
    Possibility = 2;
    Price = 25;
    AffectsWisdom = false;
    HelmetBitmapPos = 112, 448;
    EnchantmentPlusChance = 4;
  }

  Config HELM_OF_BRILLIANCE;
  {
    DefaultSize = 40;
    DefaultMainVolume = 250;
    StrengthModifier = 150;
    FormModifier = 25;
    BitmapPos = 48, 32;
    Possibility = 1;
    PostFix = "of brilliance";
    AffectsIntelligence = true;
    MainMaterialConfig == ARCANITE;
    MaterialConfigChances == 100;
    BaseEnchantment = 1;
    Price = 100;
    PriceIsProportionalToEnchantment = true;
    CoverPercentile = 90;
    HelmetBitmapPos = 96, 432;
    EnchantmentPlusChance = 2;
  }

  Config BROKEN|HELM_OF_BRILLIANCE;
  {
    BitmapPos = 64, 32;
    Possibility = 2;
    Price = 25;
    AffectsIntelligence = false;
    HelmetBitmapPos = 112, 448;
    EnchantmentPlusChance = 4;
  }

  Config HELM_OF_ATTRACTIVITY;
  {
    DefaultSize = 40;
    DefaultMainVolume = 250;
    StrengthModifier = 150;
    FormModifier = 25;
    BitmapPos = 48, 32;
    Possibility = 5;
    PostFix = "of attractivity";
    AffectsCharisma = true;
    MainMaterialConfig == GOLD;
    MaterialConfigChances == 100;
    BaseEnchantment = 1;
    Price = 100;
    PriceIsProportionalToEnchantment = true;
    AttachedGod = MELLIS;
    CoverPercentile = 90;
    HelmetBitmapPos = 96, 432;
    EnchantmentPlusChance = 2;
  }

  Config BROKEN|HELM_OF_ATTRACTIVITY;
  {
    BitmapPos = 64, 32;
    Possibility = 5;
    Price = 25;
    AffectsCharisma = false;
    HelmetBitmapPos = 112, 448;
    EnchantmentPlusChance = 4;
  }

  Config GOROVITS_FAMILY_GAS_MASK;
  {
    DefaultSize = 50;
    DefaultMainVolume = 300;
    StrengthModifier = 125;
    FormModifier = 20;
    BitmapPos = 64, 400;
    Possibility = 0;
    Adjective = "Gorovits family";
    NameSingular = "gas mask";
    MainMaterialConfig == KEVLAR;
    MaterialConfigChances == 100;
    Price = 50;
    AttachedGod = LORICATUS;
    CanBeBroken = false;
    CanBeWished = false;
    ArticleMode = FORCE_THE;
    GearStates = GAS_IMMUNITY;
    IsQuestItem = true;
    CoverPercentile = 100;
    HelmetBitmapPos = 112, 432;
    EnchantmentPlusChance = 0;
  }
}

stethoscope
{
  DefaultSize = 40;
  Possibility = 25;
  Category = TOOL;
  DefaultMainVolume = 200;
  StrengthModifier = 50;
  BitmapPos = 48, 96;
  FormModifier = 10;
  Roundness = 20;
  NameSingular = "stethoscope";
  Price = 250;
  MainMaterialConfig == UNICORN_HORN;
  AttachedGod = SEGES;
  WieldedBitmapPos = 160, 128;
  HasNormalPictureDirection = false;
}

flamingsword /* meleeweapon-> */
{
  DefaultSize = 120;
  Possibility = 15;
  WeaponCategory = LARGE_SWORDS;
  DefaultMainVolume = 130;
  DefaultSecondaryVolume = 45;
  BitmapPos = 16, 336;
  FormModifier = 110;
  StrengthModifier = 100;
  NameSingular = "sword";
  Adjective = "flaming";
  MainMaterialConfig = { 5, BRONZE, IRON, STEEL, METEORIC_STEEL, MITHRIL; }
  SecondaryMaterialConfig = { 5, BRONZE, IRON, STEEL, METEORIC_STEEL, MITHRIL; }
  MaterialConfigChances = { 5, 1000, 750, 100, 25, 25; }
  Roundness = 10;
  BaseEmitation = rgb24(150, 120, 90);
  Price = 250;
  AttachedGod = LORICATUS;
  WieldedBitmapPos = 160, 16;
  EnchantmentPlusChance = 2;
  DamageFlags = SLASH|PIERCE;

  Config BROKEN;
  {
    Possibility = 10;
    BitmapPos = 32, 208;
    WieldedBitmapPos = 176, 80;
    MainMaterialConfig = { 4, STEEL, METEORIC_STEEL, MITHRIL, ADAMANT; }
    SecondaryMaterialConfig = { 4, STEEL, METEORIC_STEEL, MITHRIL, ADAMANT; }
    MaterialConfigChances = { 4, 250, 25, 25, 5; }
    EnchantmentPlusChance = 4;
  }
}

mjolak /* meleeweapon-> */
{
  DefaultSize = 180;
  Possibility = 1;
  WeaponCategory = POLE_ARMS;
  DefaultMainVolume = 400;
  DefaultSecondaryVolume = 1000;
  StrengthModifier = 200;
  BitmapPos = 0, 80;
  FormModifier = 225;
  MainMaterialConfig == METEORIC_STEEL;
  SecondaryMaterialConfig == EBONY_WOOD;
  Roundness = 20;
  IsTwoHanded = true;
  Adjective = "unholy";
  NameSingular = "halberd";
  PostFix = "named Mjolak";
  ArticleMode = FORCE_THE;
  Alias == "Mjolak";
  CanBeCloned = false;
  CanBeMirrored = true;
  Price = 750;
  AttachedGod = CRUENTUS;
  WieldedBitmapPos = 160, 256;
  EnchantmentPlusChance = 2;
  DamageFlags = SLASH|PIERCE;

  Config BROKEN;
  {
    Possibility = 2;
    BitmapPos = 32, 144;
    Price = 150;
    WieldedBitmapPos = 176, 256;
    EnchantmentPlusChance = 4;
  }
}

vermis /* meleeweapon-> */
{
  DefaultSize = 220;
  Possibility = 3;
  WeaponCategory = POLE_ARMS;
  StrengthModifier = 100;
  BitmapPos = 16, 144;
  FormModifier = 300;
  DefaultMainVolume = 60;
  DefaultSecondaryVolume = 1000;
  Adjective = "runed";
  NameSingular = "spear";
  PostFix = "named Vermis";
  MainMaterialConfig == DIAMOND;
  SecondaryMaterialConfig == OAK_WOOD;
  Roundness = 10;
  IsTwoHanded = true;
  Alias == "Vermis";
  ArticleMode = FORCE_THE;
  CanBeCloned = false;
  CanBeMirrored = true;
  Price = 500;
  AttachedGod = SOPHOS;
  WieldedBitmapPos = 160, 96;
  EnchantmentPlusChance = 2;
  DamageFlags = PIERCE;
  GearStates = TELEPORT|TELEPORT_CONTROL;

  Config BROKEN;
  {
    Possibility = 2;
    BitmapPos = 32, 224;
    Price = 100;
    WieldedBitmapPos = 176, 96;
    EnchantmentPlusChance = 4;
    GearStates = 0;
  }
}

turox /* meleeweapon-> */
{
  StrengthModifier = 150;
  FormModifier = 225;
  DefaultSize = 90;
  BitmapPos = 0, 32;
  Possibility = 2;
  DefaultMainVolume = 450;
  DefaultSecondaryVolume = 375;
  WeaponCategory = BLUNT_WEAPONS;
  NameSingular = "mace";
  PostFix = "named Turox";
  MainMaterialConfig == METEORIC_STEEL;
  SecondaryMaterialConfig == ARCANITE;
  Roundness = 30; /* we count the handle, too */
  IsTwoHanded = true;
  Alias == "Turox";
  ArticleMode = FORCE_THE;
  CanBeCloned = false;
  CanBeMirrored = true;
  Price = 250;
  AttachedGod = CRUENTUS;
  WieldedBitmapPos = 160, 192;
  EnchantmentPlusChance = 2;

  Config BROKEN;
  {
    Possibility = 3;
    BitmapPos = 32, 112;
    Price = 50;
    WieldedBitmapPos = 176, 192;
    EnchantmentPlusChance = 4;
  }
}

whipofthievery /* meleeweapon->whip-> */
{
  DefaultSize = 250;
  Possibility = 10;
  DefaultMainVolume = 1000;
  DefaultSecondaryVolume = 50;
  StrengthModifier = 30;
  NameSingular = "whip";
  PostFix = "of thievery";
  MainMaterialConfig == NYMPH_HAIR;
  SecondaryMaterialConfig == SAPPHIRE;
  Roundness = 2;
  FormModifier = 30; /* this is multiplied by MainMaterial's flexibility */
  Price = 500;
  AttachedGod = CLEPTIA;
  EnchantmentPlusChance = 10;
}

scrollofenchantweapon /* scroll-> */
{
  Possibility = 40;
  Price = 250;
  PostFix = "of enchant weapon";
  AttachedGod = SOPHOS;
  Alias == "SoEW";
  ReadDifficulty = 500;
}

scrollofenchantarmor /* scroll-> */
{
  Possibility = 80;
  Price = 250;
  PostFix = "of enchant armor";
  AttachedGod = SOPHOS;
  Alias == "SoEA";
  ReadDifficulty = 500;
}

skull
{
  StrengthModifier = 100;
  FormModifier = 15;
  Roundness = 65;
  DefaultSize = 20;
  Possibility = 30;
  DefaultMainVolume = 600;
  BitmapPos = 48, 112;
  Category = MISC;
  NameSingular = "skull";
  MainMaterialConfig == BONE;
  IsTwoHanded = true;
  AttachedGod = MORTIFER;
  WieldedBitmapPos = 160, 128;
  IsValuable = false;
}

gorovitshammer
{
  DefaultSize = 90;
  Possibility = 0;
  WeaponCategory = BLUNT_WEAPONS;
  DefaultMainVolume = 300;
  DefaultSecondaryVolume = 600;
  StrengthModifier = 125;
  BitmapPos = 48, 160;
  FormModifier = 125;
  Adjective = "Gorovits family";
  NameSingular = "hammer";
  MainMaterialConfig == MITHRIL;
  SecondaryMaterialConfig == FIR_WOOD;
  Roundness = 20;
  IsTwoHanded = true;
  CanBeUsedBySmith = true;
  CanBeBroken = false;
  CanBeWished = false;
  BaseEnchantment = 3;
  ArticleMode = FORCE_THE;
  Price = 250;
  AttachedGod = LORICATUS;
  WieldedBitmapPos = 176, 16;
  IsQuestItem = true;
}

gorovitssickle
{
  DefaultSize = 60;
  Possibility = 0;
  WeaponCategory = SMALL_SWORDS;
  DefaultMainVolume = 125;
  DefaultSecondaryVolume = 50;
  BitmapPos = 48, 144;
  FormModifier = 110;
  StrengthModifier = 50;
  Adjective = "Gorovits family";
  NameSingular = "sickle";
  MainMaterialConfig == MITHRIL;
  SecondaryMaterialConfig == FIR_WOOD;
  Roundness = 50;
  CanBeBroken = false;
  CanBeWished = false;
  BaseEnchantment = 3;
  ArticleMode = FORCE_THE;
  Price = 250;
  AttachedGod = SEGES;
  WieldedBitmapPos = 176, 32;
  IsQuestItem = true;
  DamageFlags = SLASH;
}

scrollofrepair /* scroll-> */
{
  Possibility = 75;
  Price = 250;
  PostFix = "of repair";
  Alias == "scroll of repairing";
  AttachedGod = LORICATUS;
  ReadDifficulty = 500;
}

encryptedscroll /* scroll-> */
{
  UsesLongAdjectiveArticle = true;
  Adjective = "encrypted";
  CanBeWished = false;
  IsDestroyable = false;
  IsMaterialChangeable = false;
  IsPolymorphable = false;
  CanBeCloned = false;
  AttachedGod = MELLIS;
  IsQuestItem = true;
}

horn
{
  StrengthModifier = 70;
  FormModifier = 30;
  Roundness = 40;
  DefaultSize = 30;
  Possibility = 10;
  WeaponCategory = BLUNT_WEAPONS;
  DefaultMainVolume = 400;
  BitmapPos = 48, 304;
  Category = TOOL;
  NameSingular = "horn";
  IsAbstract = true;
  Price = 500;
  CanBePiled = false;
  AttachedGod = DULCIS;
  WieldedBitmapPos = 160, 352;
  TeleportPriority = 500;

  Config BRAVERY;
  {
    MainMaterialConfig == SILVER;
    PostFix = "of bravery";
  }

  Config FEAR;
  {
    MainMaterialConfig == OBSIDIAN;
    PostFix = "of fear";
  }
}

thunderhammer /* meleeweapon-> */
{
  DefaultSize = 50;
  Possibility = 5;
  WeaponCategory = BLUNT_WEAPONS;
  DefaultMainVolume = 200;
  DefaultSecondaryVolume = 200;
  StrengthModifier = 150;
  BitmapPos = 48, 160;
  FormModifier = 110;
  NameSingular = "thunder hammer";
  MainMaterialConfig = { 7, COPPER, BRONZE, IRON, STEEL, METEORIC_STEEL, MITHRIL, OCTIRON; }
  SecondaryMaterialConfig == FIR_WOOD;
  MaterialConfigChances = { 7, 1000, 750, 500, 100, 25, 25, 25; }
  Roundness = 20;
  IsTwoHanded = true;
  CanBeUsedBySmith = true;
  Price = 500;
  BaseEmitation = rgb24(130, 130, 130);
  AttachedGod = TERRA;
  WieldedBitmapPos = 176, 16;
  EnchantmentPlusChance = 2;

  Config BROKEN;
  {
    Possibility = 5;
    BitmapPos = 48, 192;
    Price = 100;
    WieldedBitmapPos = 176, 224;
    MainMaterialConfig = { 5, STEEL, METEORIC_STEEL, MITHRIL, OCTIRON, ADAMANT; }
    MaterialConfigChances = { 5, 250, 25, 25, 25, 5; }
    BaseEmitation = 0;
    EnchantmentPlusChance = 4;
  }
}

saalthul
{
  DefaultSize = 70;
  Possibility = 1;
  WeaponCategory = SMALL_SWORDS;
  DefaultMainVolume = 60;
  DefaultSecondaryVolume = 20;
  BitmapPos = 48, 240;
  FormModifier = 200;
  StrengthModifier = 135;
  Adjective = "short";
  NameSingular = "sword";
  PostFix = "named Saal'thul";
  MainMaterialConfig == MITHRIL;
  SecondaryMaterialConfig == MITHRIL;
  Roundness = 10;
  Price = 500;
  GearStates = INVISIBLE;
  ArticleMode = FORCE_THE;
  CanBeCloned = false;
  CanBeMirrored = true;
  Alias == "Saal'thul";
  AttachedGod = CLEPTIA;
  WieldedBitmapPos = 160, 32;
  EnchantmentPlusChance = 2;
  DamageFlags = SLASH|PIERCE;

  Config BROKEN;
  {
    Possibility = 2;
    BitmapPos = 48, 272;
    Price = 100;
    GearStates = 0;
    WieldedBitmapPos = 176, 208;
    EnchantmentPlusChance = 4;
  }
}

chameleonwhip /* meleeweapon->whip-> */
{
  DefaultSize = 250;
  Possibility = 10;
  DefaultMainVolume = 1000;
  DefaultSecondaryVolume = 50;
  StrengthModifier = 30;
  NameSingular = "chameleon whip";
  MainMaterialConfig == OMMEL_HAIR;
  SecondaryMaterialConfig == RUBY;
  Roundness = 2;
  FormModifier = 30; /* this is multiplied by MainMaterial's flexibility */
  Price = 500;
  AttachedGod = SCABIES;
  WieldedBitmapPos = 160, 224;
  EnchantmentMinusChance = 50;
  EnchantmentPlusChance = 50;
}

carrot
{
  Possibility = 150;
  WeaponCategory = BLUNT_WEAPONS;
  DefaultMainVolume = 60;
  StrengthModifier = 75;
  Category = FOOD;
  BitmapPos = 64, 272;
  FormModifier = 30;
  DefaultSize = 20;
  NameSingular = "carrot";
  MainMaterialConfig == CARROT_FLESH;
  Alias == "bazooka";
  Roundness = 10;
  CanBePiled = true;
  AttachedGod = SEGES;
  WieldedBitmapPos = 160, 352;
  IsValuable = false;
}

wondersmellstaff
{
  DefaultSize = 220;
  Possibility = 5;
  WeaponCategory = BLUNT_WEAPONS;
  StrengthModifier = 150;
  BitmapPos = 64, 240;
  FormModifier = 125;
  DefaultMainVolume = 2000;
  DefaultSecondaryVolume = 200;
  NameSingular = "staff";
  PostFix = "of wondrous smells";
  MainMaterialConfig = { 4, TEAK_WOOD, EBONY_WOOD, ARCANITE, OCTIRON; }
  SecondaryMaterialConfig == RUBY;
  MaterialConfigChances = { 4, 250, 100, 50, 25; }
  Roundness = 10;
  IsTwoHanded = true;
  AttachedGod = INFUSCOR;
  WieldedBitmapPos = 160, 304;
  Price = 500;
  EnchantmentPlusChance = 5;

  Config BROKEN;
  {
    Possibility = 5;
    BitmapPos = 64, 256;
    WieldedBitmapPos = 176, 304;
    MainMaterialConfig = { 3, EBONY_WOOD, ARCANITE, OCTIRON; }
    MaterialConfigChances = { 3, 100, 50, 25; }
    EnchantmentPlusChance = 10;
  }
}

charmlyre
{
  DefaultMainVolume = 1500;
  StrengthModifier = 50;
  BitmapPos = 64, 368;
  FormModifier = 20;
  DefaultSize = 50;
  Roundness = 50;
  Possibility = 5;
  Category = TOOL;
  MainMaterialConfig == UNICORN_HORN;
  NameSingular = "lyre";
  PostFix = "of charm";
  Price = 1000;
  CanBePiled = false;
  AttachedGod = DULCIS;
  WieldedBitmapPos = 176, 352;
}

ennerhead /* head-> */
{
}

decosadshirt /* armor->bodyarmor-> */
{
  DefaultSize = 60;
  BitmapPos = 80, 64;
  Possibility = 0;
  DefaultMainVolume = 1000;
  StrengthModifier = 75;
  NameSingular = "shirt";
  PostFix = "with a Decos Bananas Co. ad";
  MainMaterialConfig == CLOTH;
  CanBeBroken = false;
  InElasticityPenaltyModifier = 30;
  AttachedGod = MELLIS;
  TorsoArmorBitmapPos = 32, 448;
  Price = 0;
}

scrollofdetectmaterial /* scroll-> */
{
  Possibility = 50;
  Price = 25;
  PostFix = "of detect material";
  AttachedGod = LEGIFER;
  ReadDifficulty = 200;
}

stick
{
  DefaultSize = 50;
  Possibility = 0;
  WeaponCategory = BLUNT_WEAPONS;
  Category = MISC;
  DefaultMainVolume = 150;
  StrengthModifier = 75;
  BitmapPos = 80, 240;
  FormModifier = 40;
  NameSingular = "stick";
  MainMaterialConfig = { 7, BALSA_WOOD, PINE_WOOD, FIR_WOOD, BIRCH_WOOD, OAK_WOOD, TEAK_WOOD, EBONY_WOOD; }
  MaterialConfigChances = { 7, 100, 350, 300, 250, 200, 150, 100; }
  OKVisualEffects = MIRROR|FLIP;
  Roundness = 10;
  AttachedGod = NONE;
  WieldedBitmapPos = 160, 352;
  IsValuable = false;
}

scrollofhardenmaterial /* scroll-> */
{
  Possibility = 50;
  Price = 500;
  PostFix = "of harden material";
  Alias == "SoHM";
  AttachedGod = LORICATUS;
  ReadDifficulty = 500;
}

scrollofgolemcreation /* scroll-> */
{
  Possibility = 10;
  Price = 750;
  PostFix = "of golem creation";
  AttachedGod = SOPHOS;
  ReadDifficulty = 1000;
}
