from module_constants import *
from header_items import  *
from header_operations import *
from header_triggers import *
import header_debug as dbg
import header_lazy_evaluation as lazy

####################################################################################################################
#  Each item record contains the following fields:
#  1) Item id: used for referencing items in other files.
#     The prefix itm_ is automatically added before each item id.
#  2) Item name. Name of item as it'll appear in inventory window
#  3) List of meshes.  Each mesh record is a tuple containing the following fields:
#    3.1) Mesh name.
#    3.2) Modifier bits that this mesh matches.
#     Note that the first mesh record is the default.
#  4) Item flags. See header_items.py for a list of available flags.
#  5) Item capabilities. Used for which animations this item is used with. See header_items.py for a list of available flags.
#  6) Item value.
#  7) Item stats: Bitwise-or of various stats about the item such as:
#      weight, abundance, difficulty, head_armor, body_armor,leg_armor, etc...
#  8) Modifier bits: Modifiers that can be applied to this item.
#  9) [Optional] Triggers: List of simple triggers to be associated with the item.
#  10) [Optional] Factions: List of factions that item can be found as merchandise.
####################################################################################################################

# Some constants for ease of use.
imodbits_none = 0
imodbits_horse_basic = imodbit_swaybacked|imodbit_lame|imodbit_spirited|imodbit_heavy|imodbit_stubborn
imodbits_cloth = imodbit_tattered|imodbit_ragged|imodbit_sturdy|imodbit_thick|imodbit_hardened
imodbits_armor = imodbit_rusty|imodbit_battered|imodbit_crude|imodbit_thick|imodbit_reinforced|imodbit_lordly
imodbits_plate = imodbit_cracked|imodbit_rusty|imodbit_battered|imodbit_crude|imodbit_thick|imodbit_reinforced|imodbit_lordly
imodbits_polearm = imodbit_cracked|imodbit_bent|imodbit_balanced
imodbits_shield = imodbit_cracked|imodbit_battered|imodbit_thick|imodbit_reinforced
imodbits_sword = imodbit_rusty|imodbit_chipped|imodbit_balanced|imodbit_tempered
imodbits_sword_high = imodbit_rusty|imodbit_chipped|imodbit_balanced|imodbit_tempered|imodbit_masterwork
imodbits_axe = imodbit_rusty|imodbit_chipped|imodbit_heavy
imodbits_mace = imodbit_rusty|imodbit_chipped|imodbit_heavy
imodbits_pick = imodbit_rusty|imodbit_chipped|imodbit_balanced|imodbit_heavy
imodbits_bow = imodbit_cracked|imodbit_bent|imodbit_strong|imodbit_masterwork
imodbits_crossbow = imodbit_cracked|imodbit_bent|imodbit_masterwork
imodbits_missile = imodbit_bent|imodbit_large_bag
imodbits_thrown = imodbit_bent|imodbit_heavy|imodbit_balanced|imodbit_large_bag
imodbits_thrown_minus_heavy = imodbit_bent|imodbit_balanced|imodbit_large_bag

imodbits_horse_good = imodbit_spirited|imodbit_heavy
imodbits_good = imodbit_sturdy|imodbit_thick|imodbit_hardened|imodbit_reinforced
imodbits_bad = imodbit_rusty|imodbit_chipped|imodbit_tattered|imodbit_ragged|imodbit_cracked|imodbit_bent

imodbit_female = imodbit_meek

tag_item_class = -100.0
tag_item_herd_animal = -101.0

# Set a class for this item - listed in module_constants prefixed with item_class_ - with an optional associated value.
def itm_class(class_id, value=0):
  return (tag_item_class, class_id, value)

# Mark a horse item as a herd animal. Only use for the adult item, not the child.
def itm_herd_animal(child_item=-1, grow_age=10, max_in_herd=20, attack_reaction=animal_reaction_flee, death_sound="snd_cow_slaughter", meat=0, hide=0, wildness=1):
  return [[tag_item_herd_animal, child_item, grow_age, max_in_herd, attack_reaction, death_sound, meat, hide, wildness]]

# Display the agent's heraldic banner or color on special item meshes, specifying the appropriate entry from module_tableau_materials.
def init_heraldic_item(tableau):
  return [(ti_on_init_item,
   [(store_trigger_param_1, ":agent_id"),
    (store_trigger_param_2, ":troop_id"),
    (call_script, "script_item_set_banner", tableau, ":agent_id", ":troop_id"),
    ]),
  itm_class(item_class_heraldic)]

# Template for faction banner items.
# When adding a new banner texture, remember to add an entry to module_meshes in the correct place, and set an appropriate background color in module_scripts.
def itm_faction_banner(banner_id):
  return ["pw_banner_pole_" + banner_id, "Banner", [("pw_banner_pole",0)], itp_type_polearm|itp_two_handed|itp_primary|itp_wooden_parry, itc_parry_polearm|itcf_carry_spear,
   1200, weight(7.0)|difficulty(14)|spd_rtng(70)|weapon_length(250)|swing_damage(10, blunt)|thrust_damage(5, blunt), imodbits_none,
   [(ti_on_init_item, [(cur_item_set_tableau_material, "tableau_faction_banner_pole", "mesh_banner_" + banner_id)])]]

# Template for castle capture point banner items (display only, not allowing pickup).
def itm_castle_banner(faction, suffix):
  return ["pw_banner_castle_" + faction + suffix, "Castle Banner", [("pw_banner_castle",0)], itp_no_pick_up_from_ground, 0,
   0, 0, imodbits_none, [(ti_on_init_item, [(cur_item_set_tableau_material, "tableau_castle_banner_" + suffix, faction)])]]

# Template for castle wall banner items (display only, not allowing pickup).
def itm_wall_banner(faction, suffix):
  return ["pw_banner_wall_" + faction + suffix, "Wall Banner", [("pw_banner_wall",0)], itp_no_pick_up_from_ground, 0,
   0, 0, imodbits_none, [(ti_on_init_item, [(cur_item_set_tableau_material, "tableau_castle_banner_" + suffix, faction)])]]

def itm_throw_wheat_trigger():
  return (ti_on_weapon_attack,
   [(multiplayer_is_server),
    (position_move_x, pos1, -10),
    (position_move_y, pos1, 50),
    (position_move_z, pos1, -50),
    (position_rotate_x, pos1, -30),
    (position_rotate_y, pos1, -30),
    (particle_system_burst, "psys_throw_wheat", pos1, 50),
    ])

def itm_read_book_trigger(string_id):
  return (ti_on_weapon_attack,
   [(store_trigger_param_1, ":agent_id"),
    (call_script, "script_cf_read_book", string_id, ":agent_id"),
    ])

# Swap between different items when swinging, to change visual appearance.
def itm_swap_item_trigger(this_item, other_item):
  return (ti_on_weapon_attack,
   [(store_trigger_param_1, ":agent_id"),
    (assign, ":loop_end", ek_item_3 + 1),
    (try_for_range, ":equip_slot", ek_item_0, ":loop_end"),
      (agent_get_item_slot, ":equip_item_id", ":agent_id", ":equip_slot"),
      (eq, ":equip_item_id", this_item),
      (assign, ":loop_end", -1),
      (val_add, ":equip_slot", 1),
      (agent_unequip_item, ":agent_id", this_item, ":equip_slot"),
      (agent_equip_item, ":agent_id", other_item, ":equip_slot"),
      (agent_set_wielded_item, ":agent_id", other_item),
    (try_end),
    ])

# Attempt to process a nearby animal when swinging.
def itm_butchering_knife():
  return (ti_on_weapon_attack,
   [(multiplayer_is_server),
    (store_trigger_param_1, ":agent_id"),
    (agent_get_troop_id, ":troop_id", ":agent_id"),
    (store_skill_level, ":skill", "skl_herding", ":troop_id"),
    (gt, ":skill", 0),
    (call_script, "script_cf_use_butchering_knife", ":agent_id"),
    ])

items = [
["no_item", "INVALID ITEM", [("invalid_item", 0)], itp_type_one_handed_wpn|itp_primary|itp_secondary|itp_no_parry, itc_dagger,
 0, weight(1)|spd_rtng(1)|weapon_length(1)|swing_damage(1, blunt)|thrust_damage(1, blunt), imodbits_none],
["no_head", "INVALID HEAD", [("invalid_item", 0)], itp_type_head_armor, 0,
 0, weight(1)|head_armor(1)|difficulty(0), imodbits_none],
["no_body", "INVALID BODY", [("invalid_item", 0)], itp_type_body_armor, 0,
 0, weight(1)|body_armor(1)|difficulty(0), imodbits_none],
["no_foot", "INVALID FOOT", [("invalid_item", 0)], itp_type_foot_armor, 0,
 0, weight(1)|leg_armor(1)|difficulty(0), imodbits_none],
["no_hand", "INVALID HAND", [("invalid_item", 0)], itp_type_hand_armor, 0,
 0, weight(1)|body_armor(1)|difficulty(0), imodbits_none],
["no_horse", "INVALID HORSE", [("invalid_item", 0)], itp_type_horse, 0,
 0, hit_points(1)|body_armor(1)|difficulty(0)|horse_speed(10)|horse_maneuver(40)|horse_charge(1)|horse_scale(1), imodbits_none],

["tattered_headcloth", "Tattered Headcloth", [("headcloth_a_new", 0)], itp_type_head_armor, 0,
 14, weight(0.5)|head_armor(3)|difficulty(0), imodbits_cloth, init_heraldic_item("tableau_colored_helmets_new_d")],
["ragged_woolen_cap", "Ragged Woolen Cap", [("woolen_cap_new", 0)], itp_type_head_armor, 0,
 16, weight(1)|head_armor(4)|difficulty(0), imodbits_cloth, init_heraldic_item("tableau_colored_helmets_new_e")],
["stained_felt_hat_b", "Stained Felt Hat", [("felt_hat_b_new", 0)], itp_type_head_armor, 0,
 15, weight(1)|head_armor(4)|difficulty(0), imodbits_cloth, init_heraldic_item("tableau_colored_helmets_new_b")],

["straw_hat", "Straw Hat", [("straw_hat_new", 0)], itp_type_head_armor, 0,
 29, weight(1)|head_armor(2)|difficulty(0), imodbits_cloth],
["head_wrappings", "Head Wrapping", [("head_wrapping", 0)], itp_type_head_armor|itp_fit_to_head, 0,
 26, weight(0.25)|head_armor(3), imodbits_cloth],
["headcloth", "Headcloth", [("headcloth_a_new", 0)], itp_type_head_armor, 0,
 80, weight(0.5)|head_armor(4)|difficulty(0), imodbits_cloth, init_heraldic_item("tableau_colored_helmets_new_d")],
["woolen_cap", "Woolen Cap", [("woolen_cap_new", 0)], itp_type_head_armor, 0,
 62, weight(1)|head_armor(6)|difficulty(0), imodbits_cloth, init_heraldic_item("tableau_colored_helmets_new_e")],
["sarranid_felt_hat", "Felt Hat", [("sar_helmet3",0)], itp_type_head_armor, 0,
 55, weight(1)|head_armor(5)|difficulty(0), imodbits_cloth],
["sarranid_felt_head_cloth", "Head Cloth", [("common_tulbent",0)], itp_type_head_armor|itp_attach_armature, 0,
 221, weight(0.5)|head_armor(4)|difficulty(0), imodbits_cloth|imodbit_female],
["sarranid_felt_head_cloth_b", "Head Cloth", [("common_tulbent_b",0)], itp_type_head_armor|itp_attach_armature, 0,
 225, weight(0.5)|head_armor(4)|difficulty(0), imodbits_cloth|imodbit_female],
["bride_crown", "Crown of Flowers", [("bride_crown",0)], itp_type_head_armor|itp_doesnt_cover_hair|itp_attach_armature, 0,
 302, weight(0.5)|head_armor(0)|difficulty(0), imodbits_cloth|imodbit_female],
["khergit_lady_hat", "Blue Head Scarf", [("khergit_lady_hat",0)], itp_type_head_armor|itp_doesnt_cover_hair|itp_fit_to_head, 0,
 239, weight(0.5)|head_armor(1)|difficulty(0), imodbits_cloth|imodbit_female],
["khergit_lady_hat_b", "Leather Head Scarf", [("khergit_lady_hat_b",0)], itp_type_head_armor|itp_doesnt_cover_hair|itp_fit_to_head, 0,
 267, weight(0.5)|head_armor(4)|difficulty(0), imodbits_cloth|imodbit_female],
["sarranid_head_cloth", "Lady Head Cloth", [("tulbent",0)], itp_type_head_armor|itp_doesnt_cover_hair|itp_attach_armature, 0,
 321, weight(0.5)|head_armor(4)|difficulty(0), imodbits_cloth|imodbit_female],
["sarranid_head_cloth_b", "Lady Head Cloth", [("tulbent_b",0)], itp_type_head_armor|itp_doesnt_cover_hair|itp_attach_armature, 0,
 340, weight(0.5)|head_armor(4)|difficulty(0), imodbits_cloth|imodbit_female],
["wimple_a", "Wimple", [("wimple_a_new",0)], itp_type_head_armor|itp_fit_to_head, 0,
 230, weight(0.5)|head_armor(4)|difficulty(0), imodbits_cloth|imodbit_female],
["wimple_b", "Wimple", [("wimple_b_new",0)], itp_type_head_armor|itp_fit_to_head, 0,
 230, weight(0.5)|head_armor(4)|difficulty(0), imodbits_cloth|imodbit_female],
["barbette", "Barbette", [("barbette_new",0)], itp_type_head_armor|itp_fit_to_head, 0,
 403, weight(1.0)|head_armor(8)|difficulty(0), imodbits_cloth|imodbit_female],
["arming_cap", "Arming Cap", [("arming_cap_a_new", 0)], itp_type_head_armor, 0,
 78, weight(1)|head_armor(7)|difficulty(0), imodbits_cloth, init_heraldic_item("tableau_colored_helmets_new_d")],
["ladys_hood", "Woolen Hood", [("ladys_hood_new", 0)], itp_type_head_armor, 0,
 120, weight(1)|head_armor(8)|difficulty(0), imodbits_cloth],
["fur_hat", "Fur Hat", [("fur_hat_a_new", 0)], itp_type_head_armor, 0,
 110, weight(0.5)|head_armor(8)|difficulty(0), imodbits_cloth],
["felt_hat", "Felt Hat", [("felt_hat_a_new", 0)], itp_type_head_armor, 0,
 74, weight(1)|head_armor(8)|difficulty(0), imodbits_cloth, init_heraldic_item("tableau_colored_helmets_new_b")],
["felt_hat_b", "Felt Hat", [("felt_hat_b_new", 0)], itp_type_head_armor, 0,
 85, weight(1)|head_armor(8)|difficulty(0), imodbits_cloth, init_heraldic_item("tableau_colored_helmets_new_b")],
["leather_cap", "Leather Cap", [("leather_cap_a_new", 0)], itp_type_head_armor, 0,
 106, weight(1)|head_armor(10)|difficulty(0), imodbits_cloth],
["common_hood", "Hood", [("hood_new", 0)], itp_type_head_armor, 0,
 129, weight(1)|head_armor(10)|difficulty(0), imodbits_cloth, init_heraldic_item("tableau_colored_helmets_new_e")],
["hood_b", "Hood", [("hood_b", 0)], itp_type_head_armor, 0,
 116, weight(1)|head_armor(10)|difficulty(0), imodbits_cloth],
["hood_c", "Hood", [("hood_c", 0)], itp_type_head_armor, 0,
 124, weight(1)|head_armor(10)|difficulty(0), imodbits_cloth],
["hood_d", "Hood", [("hood_d", 0)], itp_type_head_armor, 0,
 131, weight(1)|head_armor(10)|difficulty(0), imodbits_cloth],
["nomad_cap", "Nomad Cap", [("nomad_cap_a_new", 0)], itp_type_head_armor, 0,
 272, weight(2.25)|head_armor(15)|difficulty(8), imodbits_cloth],
["nomad_cap_b", "Nomad Cap", [("nomad_cap_b_new",0)], itp_type_head_armor, 0,
 243, weight(0.75)|head_armor(13)|difficulty(0), imodbits_cloth],
["black_hood", "Black Hood", [("hood_black",0)], itp_type_head_armor, 0,
 143, weight(2)|head_armor(11)|difficulty(0), imodbits_cloth],
["surgeon_coif", "Surgeon's Coif", [("pw_surgeon_coif",0)], itp_type_head_armor, 0,
 182, weight(1.5)|head_armor(10)|difficulty(0), imodbits_cloth],
["pilgrim_hood", "Pilgrim Hood", [("pilgrim_hood",0)], itp_type_head_armor, 0,
 123, weight(1.25)|head_armor(11)|difficulty(0), imodbits_cloth],
["priest_coif", "Priestly Coif", [("pw_priest_coif",0)], itp_type_head_armor, 0,
 265, weight(1)|head_armor(10)|difficulty(0), imodbits_cloth],
["padded_coif", "Padded Coif", [("padded_coif_a_new", 0)], itp_type_head_armor, 0,
 116, weight(1)|head_armor(11)|difficulty(0), imodbits_cloth, init_heraldic_item("tableau_colored_helmets_new_b")],
["turban", "Turban", [("tuareg_open",0)], itp_type_head_armor, 0,
 143, weight(2)|head_armor(11)|difficulty(0), imodbits_cloth],
["leather_steppe_cap_a", "Steppe Cap", [("leather_steppe_cap_a_new",0)], itp_type_head_armor, 0,
 203, weight(1)|head_armor(12)|difficulty(7), imodbits_cloth],
["leather_steppe_cap_b", "Steppe Cap", [("tattered_steppe_cap_b_new",0)], itp_type_head_armor, 0,
 234, weight(1)|head_armor(14)|difficulty(7), imodbits_cloth],
["nordic_archer_helmet", "Leather Helmet", [("Helmet_A_vs2",0)], itp_type_head_armor, 0,
 240, weight(1.25)|head_armor(14)|difficulty(7), imodbits_plate],
["vaegir_fur_cap", "Cap with Fur", [("vaeg_helmet3",0)], itp_type_head_armor, 0,
 250, weight(2)|head_armor(15)|difficulty(7), imodbits_plate],
["steppe_cap", "Steppe Cap", [("steppe_cap_a_new", 0)], itp_type_head_armor, 0,
 276, weight(1)|head_armor(16)|difficulty(7), imodbits_cloth],
["leather_warrior_cap", "Leather Warrior Cap", [("skull_cap_new_b",0)], itp_type_head_armor, 0,
 340, weight(1)|head_armor(18)|difficulty(7), imodbits_cloth],
["sarranid_warrior_cap", "Turban with Warrior Cap", [("tuareg_helmet",0)], itp_type_head_armor|itp_covers_beard, 0,
 344, weight(2)|head_armor(19)|difficulty(7), imodbits_plate],
["nordic_veteran_archer_helmet", "Leather Helmet", [("Helmet_A",0)], itp_type_head_armor, 0,
 356, weight(1.5)|head_armor(20)|difficulty(7), imodbits_plate],
["skullcap", "Skullcap", [("skull_cap_new_a",0)], itp_type_head_armor, 0,
 376, weight(1.0)|head_armor(20)|difficulty(7), imodbits_plate],
["vaegir_fur_helmet", "Fur Helmet", [("vaeg_helmet2",0)], itp_type_head_armor, 0,
 395, weight(1.5)|head_armor(21)|difficulty(7), imodbits_plate],
["bishop_mitre", "Bishop's Mitre", [("pw_bishop_mitre",0)], itp_type_head_armor, 0,
 546, weight(1.5)|head_armor(13)|difficulty(8), imodbits_cloth],
["mail_coif", "Mail Coif", [("mail_coif_new",0)], itp_type_head_armor, 0,
 403, weight(1.25)|head_armor(22)|difficulty(9), imodbits_armor],
["footman_helmet", "Footman's Helmet", [("skull_cap_new",0)], itp_type_head_armor, 0,
 495, weight(1.5)|head_armor(24)|difficulty(9), imodbits_plate],
["sarranid_horseman_helmet", "Horseman Helmet", [("sar_helmet2",0)], itp_type_head_armor, 0,
 580, weight(2)|head_armor(25)|difficulty(9), imodbits_plate],
["nasal_helmet", "Nasal Helmet", [("nasal_helmet_b",0)], itp_type_head_armor, 0,
 605, weight(1.25)|head_armor(26)|difficulty(9), imodbits_plate],
["norman_helmet", "Helmet with Cap", [("norman_helmet_a",0)], itp_type_head_armor|itp_fit_to_head, 0,
 654, weight(1.25)|head_armor(28)|difficulty(9), imodbits_plate],
["nordic_footman_helmet", "Footman Helmet", [("Helmet_B_vs2",0)], itp_type_head_armor|itp_fit_to_head, 0,
 670, weight(1.75)|head_armor(30)|difficulty(9), imodbits_plate],
["khergit_war_helmet", "War Helmet", [("tattered_steppe_cap_a_new",0)], itp_type_head_armor, 0,
 710, weight(2)|head_armor(31)|difficulty(9), imodbits_plate],
["segmented_helmet", "Segmented Helmet", [("segmented_helm_new",0)], itp_type_head_armor, 0,
 724, weight(1.25)|head_armor(31)|difficulty(9), imodbits_plate],
["vaegir_spiked_helmet", "Spiked Cap", [("vaeg_helmet1",0)], itp_type_head_armor, 0,
 823, weight(2)|head_armor(32)|difficulty(9), imodbits_plate],
["helmet_with_neckguard", "Helmet with Neckguard", [("neckguard_helm_new",0)], itp_type_head_armor, 0,
 840, weight(1.5)|head_armor(33)|difficulty(10), imodbits_plate],
["flat_topped_helmet", "Flat Topped Helmet", [("flattop_helmet_new",0)], itp_type_head_armor, 0,
 869, weight(1.75)|head_armor(33)|difficulty(10), imodbits_plate],
["nordic_fighter_helmet", "Fighter Helmet", [("Helmet_B",0)], itp_type_head_armor|itp_fit_to_head, 0,
 912, weight(2)|head_armor(34)|difficulty(10), imodbits_plate],
["kettle_hat", "Kettle Hat", [("kettle_hat_new",0)], itp_type_head_armor, 0,
 940, weight(1.75)|head_armor(35)|difficulty(10), imodbits_plate],
["sarranid_helmet1", "Keffiyeh Helmet", [("sar_helmet1",0)], itp_type_head_armor, 0,
 923, weight(2)|head_armor(35)|difficulty(11), imodbits_plate],
["vaegir_lamellar_helmet", "Helmet with Lamellar Guard", [("vaeg_helmet4",0)], itp_type_head_armor, 0,
 960, weight(2)|head_armor(38)|difficulty(11), imodbits_plate],
["spiked_helmet", "Spiked Helmet", [("spiked_helmet_new",0)], itp_type_head_armor, 0,
 1078, weight(2)|head_armor(38)|difficulty(11), imodbits_plate],
["sarranid_mail_coif", "Mail Coif", [("tuareg_helmet2",0)], itp_type_head_armor, 0,
 1230, weight(2)|head_armor(39)|difficulty(13), imodbits_plate],
["nordic_huscarl_helmet", "Huscarl's Helmet", [("Helmet_C_vs2",0)], itp_type_head_armor, 0,
 1420, weight(2)|head_armor(40)|difficulty(14), imodbits_plate],
["bascinet", "Bascinet", [("bascinet_avt_new",0)], itp_type_head_armor, 0,
 1579, weight(2)|head_armor(42)|difficulty(14), imodbits_plate],
["bascinet_2", "Bascinet with Aventail", [("bascinet_new_a",0)], itp_type_head_armor, 0,
 1654, weight(2.25)|head_armor(44)|difficulty(14), imodbits_plate],
["bascinet_3", "Bascinet with Nose Guard", [("bascinet_new_b",0)], itp_type_head_armor, 0,
 1683, weight(2.5)|head_armor(45)|difficulty(14), imodbits_plate],
["vaegir_noble_helmet", "Nobleman Helmet", [("vaeg_helmet7",0)], itp_type_head_armor, 0,
 1710, weight(2)|head_armor(45)|difficulty(14), imodbits_plate],
["guard_helmet", "Guard Helmet", [("reinf_helmet_new",0)], itp_type_head_armor, 0,
 2355, weight(2.5)|head_armor(47)|difficulty(15), imodbits_plate],
["sarranid_veiled_helmet", "Veiled Helmet", [("sar_helmet4",0)], itp_type_head_armor|itp_covers_beard, 0,
 2341, weight(3)|head_armor(47)|difficulty(15), imodbits_plate],
["vaegir_war_helmet", "War Helmet", [("vaeg_helmet6",0)], itp_type_head_armor, 0,
 2420, weight(2.25)|head_armor(47)|difficulty(15), imodbits_plate],
["nordic_warlord_helmet", "Warlord Helmet", [("Helmet_C",0)], itp_type_head_armor, 0,
 3180, weight(2.25)|head_armor(48)|difficulty(15), imodbits_plate],
["bishop_helm", "Bishop's Helm", [("pw_bishop_helm",0)], itp_type_head_armor|itp_covers_head, 0,
 6034, weight(3.0)|head_armor(49)|difficulty(15), imodbits_plate],
["full_helm", "Full Helm", [("great_helmet_new_b",0)], itp_type_head_armor|itp_covers_head, 0,
 5121, weight(2.5)|head_armor(51)|difficulty(15), imodbits_plate],
["vaegir_mask", "War Mask", [("vaeg_helmet8",0)], itp_type_head_armor, 0,
 6950, weight(2.5)|head_armor(50)|difficulty(15), imodbits_plate],
["vaegir_mask_b", "War Mask", [("vaeg_helmet9",0)], itp_type_head_armor|itp_covers_beard, 0,
 7012, weight(2.75)|head_armor(52)|difficulty(15), imodbits_plate],
["great_helmet", "Great Helmet", [("great_helmet_new",0)], itp_type_head_armor|itp_covers_head, 0,
 7380, weight(2.75)|head_armor(53)|difficulty(15), imodbits_plate],
["winged_great_helmet", "Winged Great Helmet", [("maciejowski_helmet_new",0)], itp_type_head_armor|itp_covers_head, 0,
 9240, weight(2.75)|head_armor(55)|difficulty(15), imodbits_plate],
["black_helmet", "Black Helmet", [("black_helm",0)], itp_type_head_armor, 0,
 9638, weight(2.75)|head_armor(55)|difficulty(15), imodbits_plate],

["ragged_shirt", "Ragged Shirt", [("shirt", 0)], itp_type_body_armor|itp_covers_legs, 0,
 2, weight(1)|body_armor(2)|difficulty(0), imodbits_cloth],
["old_coarse_tunic", "Old Coarse Tunic", [("coarse_tunic", 0)], itp_type_body_armor|itp_covers_legs, 0,
 23, weight(2)|body_armor(7)|leg_armor(4)|difficulty(0), imodbits_cloth],
["old_linen_tunic", "Old Linen Tunic", [("linen_tunic", 0)], itp_type_body_armor|itp_covers_legs, 0,
 10, weight(1)|body_armor(4)|leg_armor(1)|difficulty(0), imodbits_cloth],
["ragged_leather_apron", "Ragged Leather Apron", [("leather_apron", 0)], itp_type_body_armor|itp_covers_legs, 0,
 27, weight(2.5)|body_armor(6)|leg_armor(5)|difficulty(0), imodbits_cloth],
["old_tabard", "Old Tabard", [("tabard_a", 0)], itp_type_body_armor|itp_covers_legs, 0,
 31, weight(3)|body_armor(8)|leg_armor(4)|difficulty(0), imodbits_cloth],

["shirt", "Shirt", [("shirt", 0)], itp_type_body_armor|itp_covers_legs, 0,
 45, weight(1)|body_armor(5)|difficulty(0), imodbits_cloth],
["linen_tunic", "Linen Tunic", [("shirt_a", 0)], itp_type_body_armor|itp_covers_legs, 0,
 60, weight(1)|body_armor(6)|leg_armor(1)|difficulty(0), imodbits_cloth],
["black_robe", "Black Robe", [("robe",0)], itp_type_body_armor|itp_covers_legs, 0,
 43, weight(3.5)|body_armor(8)|leg_armor(6)|difficulty(0), imodbits_cloth],
["dress", "Dress", [("dress",0)], itp_type_body_armor|itp_covers_legs, 0,
 60, weight(3)|body_armor(6)|leg_armor(2)|difficulty(0), imodbits_cloth|imodbit_female],
["blue_dress", "Blue Dress", [("blue_dress_new",0)], itp_type_body_armor|itp_covers_legs, 0,
 76, weight(3)|body_armor(6)|leg_armor(2)|difficulty(0), imodbits_cloth|imodbit_female],
["peasant_dress", "Peasant Dress", [("peasant_dress_b_new",0)], itp_type_body_armor|itp_covers_legs, 0,
 83, weight(3)|body_armor(6)|leg_armor(2)|difficulty(0), imodbits_cloth|imodbit_female],
["woolen_dress", "Woolen Dress", [("woolen_dress",0)], itp_type_body_armor|itp_covers_legs, 0,
 100, weight(3.75)|body_armor(8)|leg_armor(2)|difficulty(0), imodbits_cloth|imodbit_female],
["sarranid_common_dress", "Gray Dress", [("sarranid_common_dress",0)], itp_type_body_armor|itp_covers_legs, 0,
 80, weight(5)|body_armor(5)|leg_armor(5)|difficulty(0), imodbits_cloth|imodbit_female],
["sarranid_common_dress_b", "Brown Dress", [("sarranid_common_dress_b",0)], itp_type_body_armor|itp_covers_legs, 0,
 102, weight(5)|body_armor(6)|leg_armor(5)|difficulty(0), imodbits_cloth|imodbit_female],
["lady_dress_ruby", "Red Dress", [("lady_dress_r",0)], itp_type_body_armor|itp_covers_legs, 0,
 200, weight(3)|body_armor(10)|leg_armor(10)|difficulty(0), imodbits_cloth|imodbit_female],
["lady_dress_green", "Green Dress", [("lady_dress_g",0)], itp_type_body_armor|itp_covers_legs, 0,
 200, weight(3)|body_armor(10)|leg_armor(10)|difficulty(0), imodbits_cloth|imodbit_female],
["lady_dress_blue", "Blue Dress", [("lady_dress_b",0)], itp_type_body_armor|itp_covers_legs, 0,
 200, weight(3)|body_armor(10)|leg_armor(10)|difficulty(0), imodbits_cloth|imodbit_female],
["court_dress", "Red Pattern Dress", [("court_dress",0)], itp_type_body_armor|itp_covers_legs, 0,
 200, weight(3)|body_armor(10)|leg_armor(10)|difficulty(0), imodbits_cloth|imodbit_female],
["red_dress", "Red Dress", [("red_dress",0)], itp_type_body_armor|itp_covers_legs, 0,
 200, weight(3)|body_armor(10)|leg_armor(10)|difficulty(0), imodbits_cloth|imodbit_female],
["brown_dress", "Brown Dress", [("brown_dress",0)], itp_type_body_armor|itp_covers_legs, 0,
 200, weight(3)|body_armor(10)|leg_armor(10)|difficulty(0), imodbits_cloth|imodbit_female],
["green_dress", "Green Dress", [("green_dress",0)], itp_type_body_armor|itp_covers_legs, 0,
 200, weight(3)|body_armor(10)|leg_armor(10)|difficulty(0), imodbits_cloth|imodbit_female],
["sarranid_lady_dress", "Purple Dress", [("sarranid_lady_dress",0)], itp_type_body_armor|itp_covers_legs, 0,
 200, weight(3)|body_armor(10)|leg_armor(10)|difficulty(0), imodbits_cloth|imodbit_female],
["sarranid_lady_dress_b", "Orange Dress", [("sarranid_lady_dress_b",0)], itp_type_body_armor|itp_covers_legs, 0,
 200, weight(3)|body_armor(10)|leg_armor(10)|difficulty(0), imodbits_cloth|imodbit_female],
["khergit_lady_dress", "Blue Dress", [("khergit_lady_dress",0)], itp_type_body_armor|itp_covers_legs, 0,
 200, weight(3)|body_armor(10)|leg_armor(10)|difficulty(0), imodbits_cloth|imodbit_female],
["khergit_lady_dress_b", "Leather Dress", [("khergit_lady_dress_b",0)], itp_type_body_armor|itp_covers_legs, 0,
 500, weight(3)|body_armor(15)|leg_armor(20)|difficulty(8), imodbits_cloth|imodbit_female],
["bride_dress", "Bride Dress", [("bride_dress",0)], itp_type_body_armor|itp_covers_legs, 0,
 2500, weight(3)|body_armor(3)|leg_armor(1)|difficulty(0), imodbits_cloth|imodbit_female],
["tunic_with_green_cape", "Tunic with Green Cape", [("peasant_man_a",0)], itp_type_body_armor|itp_covers_legs, 0,
 220, weight(1)|body_armor(12)|leg_armor(4)|difficulty(0), imodbits_cloth],
["rough_tunic", "Rough Tunic", [("pw_rough_tunic",0)], itp_type_body_armor|itp_covers_legs, 0,
 134, weight(1)|body_armor(7)|leg_armor(1)|difficulty(0), imodbits_cloth],
["red_shirt", "Red Shirt", [("rich_tunic_a",0)], itp_type_body_armor|itp_covers_legs, 0,
 150, weight(1)|body_armor(7)|leg_armor(1)|difficulty(0), imodbits_cloth],
["pelt_coat", "Pelt Coat", [("thick_coat_a",0)], itp_type_body_armor|itp_covers_legs, 0,
 193, weight(2)|body_armor(11)|leg_armor(3)|difficulty(0), imodbits_cloth],
["sarranid_cloth_robe", "Worn Robe", [("sar_robe",0)], itp_type_body_armor|itp_covers_legs, 0,
 233, weight(4)|body_armor(9)|leg_armor(9)|difficulty(0), imodbits_cloth],
["sarranid_cloth_robe_b", "Worn Robe", [("sar_robe_b",0)], itp_type_body_armor|itp_covers_legs, 0,
 237, weight(4)|body_armor(9)|leg_armor(9)|difficulty(0), imodbits_cloth],
["rawhide_coat", "Rawhide Coat", [("coat_of_plates_b", 0)], itp_type_body_armor|itp_covers_legs, 0,
 220, weight(5)|body_armor(13)|difficulty(0), imodbits_cloth],
["coarse_tunic", "Tunic with Vest", [("coarse_tunic_a", 0)], itp_type_body_armor|itp_covers_legs, 0,
 87, weight(2)|body_armor(11)|leg_armor(6)|difficulty(0), imodbits_cloth],
["leather_apron", "<NAME>", [("leather_apron", 0)], itp_type_body_armor|itp_covers_legs, 0,
 125, weight(3)|body_armor(12)|leg_armor(7)|difficulty(0), imodbits_cloth],
["fur_coat", "Fur Coat", [("fur_coat", 0)], itp_type_body_armor|itp_covers_legs, 0,
 257, weight(6)|body_armor(13)|leg_armor(6)|difficulty(0), imodbits_armor],
["friar_robe", "Friar's Robe", [("pw_friar_robe", 0)], itp_type_body_armor|itp_covers_legs, 0,
 342, weight(8)|body_armor(14)|leg_armor(12)|difficulty(0), imodbits_cloth],
["skirmisher_armor", "Skirmisher Armor", [("skirmisher_armor",0)], itp_type_body_armor|itp_covers_legs, 0,
 374, weight(3)|body_armor(15)|leg_armor(7)|difficulty(6), imodbits_cloth],
["rich_outfit", "<NAME>", [("merchant_outf",0)], itp_type_body_armor|itp_covers_legs, 0,
 348, weight(4)|body_armor(16)|leg_armor(4)|difficulty(0), imodbits_cloth],
["tabard", "Tabard", [("tabard_b", 0)], itp_type_body_armor|itp_covers_legs, 0,
 230, weight(3)|body_armor(14)|leg_armor(6)|difficulty(6), imodbits_cloth, init_heraldic_item("tableau_heraldic_tabard_b")],
["khergit_armor", "Tribesman Armor", [("khergit_armor_new", 0)], itp_type_body_armor|itp_covers_legs, 0,
 380, weight(2)|body_armor(14)|difficulty(7), imodbits_cloth],
["leather_vest_plain", "Leather Vest", [("leather_vest_a", 0)], itp_type_body_armor|itp_covers_legs, 0,
 370, weight(4)|body_armor(15)|leg_armor(7)|difficulty(7), imodbits_cloth],
["leather_vest", "Heraldic Leather Vest", [("leather_vest_a", 0)], itp_type_body_armor|itp_covers_legs, 0,
 377, weight(4)|body_armor(15)|leg_armor(7)|difficulty(7), imodbits_cloth, init_heraldic_item("tableau_heraldic_leather_vest_a")],
["leather_jacket", "Leather Jacket", [("leather_jacket_new", 0)], itp_type_body_armor|itp_covers_legs, 0,
 400, weight(3)|body_armor(15)|difficulty(8), imodbits_cloth],
["priest_robe", "<NAME>", [("pw_priest_robe", 0)], itp_type_body_armor|itp_covers_legs, 0,
 453, weight(10)|body_armor(17)|leg_armor(13)|difficulty(8), imodbits_cloth],
["arena_tunic", "Arena Tunic", [("arena_tunicW_new",0)], itp_type_body_armor|itp_covers_legs, 0,
 473, weight(4)|body_armor(16)|leg_armor(6)|difficulty(8), imodbits_cloth, init_heraldic_item("tableau_colored_arena_tunic")],
["steppe_armor", "Leather Breastplate", [("lamellar_leather",0)], itp_type_body_armor|itp_covers_legs, 0,
 430, weight(5)|body_armor(16)|leg_armor(8)|difficulty(8), imodbits_cloth, init_heraldic_item("tableau_colored_lamellar_leather")],
["leather_armor", "Leather Armor", [("tattered_leather_armor_a",0)], itp_type_body_armor|itp_covers_legs, 0,
 450, weight(7)|body_armor(18)|difficulty(8), imodbits_cloth],
["pilgrim_disguise", "Pilgrim Disguise", [("pilgrim_outfit",0)], itp_type_body_armor|itp_covers_legs, 0,
 710, weight(2)|body_armor(19)|leg_armor(8)|difficulty(8), imodbits_cloth],
["red_gambeson", "Red Gambeson", [("red_gambeson_a",0)], itp_type_body_armor|itp_covers_legs, 0,
 461, weight(5)|body_armor(21)|leg_armor(5)|difficulty(9), imodbits_cloth],
["padded_cloth", "Aketon", [("padded_cloth_a",0)], itp_type_body_armor|itp_covers_legs, 0,
 430, weight(11)|body_armor(22)|leg_armor(6)|difficulty(9), imodbits_cloth, init_heraldic_item("tableau_heraldic_padded_cloth_a")],
["aketon_green", "Padded Cloth", [("padded_cloth_b",0)], itp_type_body_armor|itp_covers_legs, 0,
 454, weight(11)|body_armor(23)|leg_armor(6)|difficulty(9), imodbits_cloth, init_heraldic_item("tableau_heraldic_padded_cloth_b")],
["archers_vest", "Archer's Padded Vest", [("archers_vest",0)], itp_type_body_armor|itp_covers_legs, 0,
 460, weight(8)|body_armor(23)|leg_armor(10)|difficulty(9), imodbits_cloth],
["nomad_vest", "Nomad Vest", [("nomad_vest_new", 0)], itp_type_body_armor|itp_covers_legs, 0,
 490, weight(7)|body_armor(22)|leg_armor(8)|difficulty(8), imodbits_cloth],
["ragged_outfit", "Ragged Outfit", [("ragged_outfit_a_new",0)], itp_type_body_armor|itp_covers_legs, 0,
 521, weight(7)|body_armor(23)|leg_armor(9)|difficulty(8), imodbits_cloth],
["surgeon_coat", "Surgeon's Coat", [("pw_surgeon_coat", 0)], itp_type_body_armor|itp_covers_legs, 0,
 732, weight(11)|body_armor(24)|leg_armor(9)|difficulty(8), imodbits_cloth],
["nomad_armor", "Nomad Armor", [("nomad_armor_new", 0)], itp_type_body_armor|itp_covers_legs, 0,
 550, weight(3)|body_armor(24)|difficulty(8), imodbits_cloth],
["nomad_robe", "Nomad Robe", [("nomad_robe_a",0)], itp_type_body_armor|itp_covers_legs, 0,
 670, weight(10)|body_armor(25)|leg_armor(8)|difficulty(8), imodbits_cloth],
["light_leather", "Light Leather", [("light_leather",0)], itp_type_body_armor|itp_covers_legs, 0,
 594, weight(5)|body_armor(26)|leg_armor(7)|difficulty(8), imodbits_armor],
["leather_jerkin", "<NAME>", [("ragged_leather_jerkin",0)], itp_type_body_armor|itp_covers_legs, 0,
 540, weight(6)|body_armor(25)|leg_armor(6)|difficulty(10), imodbits_cloth],
["padded_leather", "Padded Leather", [("leather_armor_b",0)], itp_type_body_armor|itp_covers_legs, 0,
 623, weight(12)|body_armor(27)|leg_armor(7)|difficulty(9), imodbits_cloth],
["arena_armor", "Arena Armor", [("arena_armorW_new",0)], itp_type_body_armor|itp_covers_legs, 0,
 650, weight(16)|body_armor(29)|leg_armor(13)|difficulty(9), imodbits_armor, init_heraldic_item("tableau_colored_arena_armor")],
["tribal_warrior_outfit", "Tribal Warrior Outfit", [("tribal_warrior_outfit_a_new", 0)], itp_type_body_armor|itp_covers_legs, 0,
 720, weight(14)|body_armor(30)|leg_armor(10)|difficulty(9), imodbits_cloth],
["sarranid_leather_armor", "Leather Armor", [("sarranid_leather_armor",0)], itp_type_body_armor|itp_covers_legs, 0,
 1020, weight(9)|body_armor(32)|leg_armor(12)|difficulty(9), imodbits_armor],
["courtly_outfit", "Courtly Outfit", [("nobleman_outf", 0)], itp_type_body_armor|itp_covers_legs, 0,
 1320, weight(4)|body_armor(24)|leg_armor(10)|difficulty(9), imodbits_cloth],
["nobleman_outfit", "Nobleman Outfit", [("nobleman_outfit_b_new", 0)], itp_type_body_armor|itp_covers_legs, 0,
 1348, weight(4)|body_armor(25)|leg_armor(12)|difficulty(9), imodbits_cloth],
["sarranid_cavalry_robe", "Brown Mail Shirt", [("arabian_armor_a",0)], itp_type_body_armor|itp_covers_legs, 0,
 1220, weight(15)|body_armor(36)|leg_armor(8)|difficulty(9), imodbits_armor],
["studded_leather_coat", "Studded Leather Coat", [("leather_armor_a",0)], itp_type_body_armor|itp_covers_legs, 0,
 1320, weight(14)|body_armor(36)|leg_armor(10)|difficulty(10), imodbits_armor],
["byrnie", "Byrnie", [("byrnie_a_new",0)], itp_type_body_armor|itp_covers_legs, 0,
 2101, weight(17)|body_armor(39)|leg_armor(6)|difficulty(10), imodbits_armor],
["haubergeon", "Haubergeon", [("haubergeon_c",0)], itp_type_body_armor|itp_covers_legs, 0,
 2330, weight(18)|body_armor(41)|leg_armor(6)|difficulty(11), imodbits_armor],
["arabian_armor_b", "Guard Armor", [("arabian_armor_b",0)], itp_type_body_armor|itp_covers_legs, 0,
 2010, weight(19)|body_armor(38)|leg_armor(8)|difficulty(11), imodbits_armor],
["lamellar_vest", "Lamellar Vest", [("lamellar_vest_a",0)], itp_type_body_armor|itp_covers_legs, 0,
 2595, weight(18)|body_armor(40)|leg_armor(8)|difficulty(11), imodbits_cloth],
["lamellar_vest_khergit", "Lamellar Vest", [("lamellar_vest_b",0)], itp_type_body_armor|itp_covers_legs, 0,
 2500, weight(18)|body_armor(40)|leg_armor(8)|difficulty(11), imodbits_cloth, init_heraldic_item("tableau_colored_lamellar_vest_b")],
["mail_shirt", "Mail Shirt", [("mail_shirt_a",0)], itp_type_body_armor|itp_covers_legs, 0,
 2740, weight(19)|body_armor(39)|leg_armor(12)|difficulty(11), imodbits_armor],
["mail_hauberk", "Mail Hauberk", [("hauberk_a_new",0)], itp_type_body_armor|itp_covers_legs, 0,
 3320, weight(19)|body_armor(42)|leg_armor(12)|difficulty(11), imodbits_armor],
["sarranid_mail_shirt", "Orange Mail Shirt", [("sarranian_mail_shirt",0)], itp_type_body_armor|itp_covers_legs, 0,
 4400, weight(19)|body_armor(40)|leg_armor(14)|difficulty(12), imodbits_armor],
["bishop_armor", "Bishop's Armor", [("pw_bishop_armor", 0)], itp_type_body_armor|itp_covers_legs, 0,
 6345, weight(23)|body_armor(41)|leg_armor(13)|difficulty(14), imodbits_armor],
["mail_with_surcoat", "Surcoat over Mail", [("mail_long_surcoat_new",0)], itp_type_body_armor|itp_covers_legs, 0,
 5544, weight(22)|body_armor(42)|leg_armor(14)|difficulty(13), imodbits_armor, init_heraldic_item("tableau_heraldic_mail_long_surcoat")],
["surcoat_over_mail", "Surcoat over Mail", [("surcoat_over_mail_new",0)], itp_type_body_armor|itp_covers_legs, 0,
 5620, weight(22)|body_armor(43)|leg_armor(14)|difficulty(13), imodbits_armor, init_heraldic_item("tableau_heraldic_surcoat_over_mail")],
["brigandine_red", "Brigandine", [("brigandine_b",0)], itp_type_body_armor|itp_covers_legs, 0,
 5830, weight(19)|body_armor(45)|leg_armor(12)|difficulty(15), imodbits_armor, init_heraldic_item("tableau_heraldic_brigandine_b")],
["mamluke_mail", "Mail Robe", [("sarranid_elite_cavalary",0)], itp_type_body_armor|itp_covers_legs, 0,
 7900, weight(24)|body_armor(46)|leg_armor(16)|difficulty(15), imodbits_armor],
["lamellar_armor", "Lamellar Armor", [("lamellar_armor_b",0)], itp_type_body_armor|itp_covers_legs, 0,
 7410, weight(25)|body_armor(46)|leg_armor(13)|difficulty(15), imodbits_armor],
["scale_armor", "Scale Armor", [("lamellar_armor_e",0)], itp_type_body_armor|itp_covers_legs, 0,
 9558, weight(25)|body_armor(47)|leg_armor(13)|difficulty(15), imodbits_armor],
["banded_armor", "Banded Armor", [("banded_armor_a",0)], itp_type_body_armor|itp_covers_legs, 0,
 9710, weight(23)|body_armor(46)|leg_armor(14)|difficulty(15), imodbits_armor],
["cuir_bouilli", "<NAME>", [("cuir_bouilli_a",0)], itp_type_body_armor|itp_covers_legs, 0,
 9100, weight(24)|body_armor(45)|leg_armor(15)|difficulty(15), imodbits_armor],
["coat_of_plates", "Coat of Plates", [("coat_of_plates_a",0)], itp_type_body_armor|itp_covers_legs, 0,
 12828, weight(25)|body_armor(47)|leg_armor(16)|difficulty(15), imodbits_armor],
["coat_of_plates_red", "Heraldic Coat of Plates", [("coat_of_plates_red",0)], itp_type_body_armor|itp_covers_legs, 0,
 12828, weight(25)|body_armor(47)|leg_armor(16)|difficulty(15), imodbits_armor, init_heraldic_item("tableau_heraldic_coat_of_plates")],
["khergit_elite_armor", "Heraldic Elite Armor", [("lamellar_armor_d",0)], itp_type_body_armor|itp_covers_legs, 0,
 15802, weight(25)|body_armor(48)|leg_armor(16)|difficulty(15), imodbits_armor, init_heraldic_item("tableau_heraldic_lamellar_armor_d")],
["vaegir_elite_armor", "Elite Armor", [("lamellar_armor_c",0)], itp_type_body_armor|itp_covers_legs, 0,
 15230, weight(25)|body_armor(48)|leg_armor(16)|difficulty(15), imodbits_armor],
["sarranid_elite_armor", "Elite Armor", [("tunic_armor_a",0)], itp_type_body_armor|itp_covers_legs, 0,
 15605, weight(25)|body_armor(48)|leg_armor(16)|difficulty(15), imodbits_armor ],
["plate_armor", "Plate Armor", [("full_plate_armor",0)], itp_type_body_armor|itp_covers_legs, 0,
 35030, weight(30)|body_armor(55)|leg_armor(17)|difficulty(15), imodbits_plate],
["black_armor", "Black Armor", [("black_armor",0)], itp_type_body_armor|itp_covers_legs, 0,
 55200, weight(31)|body_armor(57)|leg_armor(18)|difficulty(15), imodbits_plate],
["light_heraldic_mail", "Light Heraldic Mail", [("heraldic_armor_new_c",0)], itp_type_body_armor|itp_covers_legs, 0,
 1313, weight(12)|body_armor(30)|leg_armor(5)|difficulty(9), imodbits_armor, init_heraldic_item("tableau_heraldic_armor_c")],
["heraldic_mail_with_tunic", "Heraldic Mail with Tunic", [("heraldic_armor_new_b",0)], itp_type_body_armor|itp_covers_legs, 0,
 2045, weight(15)|body_armor(35)|leg_armor(8)|difficulty(10), imodbits_armor, init_heraldic_item("tableau_heraldic_armor_b")],
["heraldic_mail_with_tabard", "Heraldic Mail with Tabard", [("heraldic_armor_new_d",0)], itp_type_body_armor|itp_covers_legs, 0,
 2970, weight(20)|body_armor(40)|leg_armor(10)|difficulty(12), imodbits_armor, init_heraldic_item("tableau_heraldic_armor_d")],
["heraldic_mail_with_surcoat", "Heraldic Mail with Surcoat", [("heraldic_armor_new_a",0)], itp_type_body_armor|itp_covers_legs, 0,
 7800, weight(25)|body_armor(44)|leg_armor(15)|difficulty(15), imodbits_armor, init_heraldic_item("tableau_heraldic_armor_a")],

["tattered_wrapping_boots", "Tattered Wrapping Boots", [("shoe_fur", 0)], itp_type_foot_armor|itp_attach_armature, 0,
 8, weight(1)|leg_armor(2)|difficulty(0), imodbits_cloth],
["ripped_woolen_hose", "Ripped Woolen Hose", [("woolen_hose", 0)], itp_type_foot_armor|itp_attach_armature, 0,
 6, weight(1)|leg_armor(1)|difficulty(0), imodbits_cloth],
["old_hide_boots", "Old Hide Boots", [("boot_nomad_b", 0)], itp_type_foot_armor|itp_attach_armature, 0,
 13, weight(1)|leg_armor(4)|difficulty(0), imodbits_cloth],

["wrapping_boots", "Wrapping Boots", [("wrapping_boots_a", 0)], itp_type_foot_armor|itp_attach_armature, 0,
 30, weight(1)|leg_armor(3)|difficulty(0), imodbits_cloth],
["woolen_hose", "Woolen Hose", [("woolen_hose_a", 0)], itp_type_foot_armor|itp_attach_armature, 0,
 60, weight(1)|leg_armor(4)|difficulty(0), imodbits_cloth],
["friar_sandals", "Friar's Sandals", [("pw_friar_sandals", 0)], itp_type_foot_armor|itp_attach_armature, 0,
 87, weight(1)|leg_armor(4)|difficulty(0), imodbits_cloth],
["blue_hose", "Blue Hose", [("blue_hose_a", 0)], itp_type_foot_armor|itp_attach_armature, 0,
 110, weight(1)|leg_armor(5)|difficulty(0), imodbits_cloth],
["bride_shoes", "Bride Shoes", [("bride_shoes",0)], itp_type_foot_armor|itp_attach_armature, 0,
 565, weight(1)|leg_armor(1)|difficulty(0), imodbits_cloth|imodbit_female],
["priest_leggings", "Priestly Leggings", [("pw_priest_leggings", 0)], itp_type_foot_armor|itp_attach_armature, 0,
 230, weight(1)|leg_armor(8)|difficulty(0), imodbits_cloth],
["sarranid_boots_a", "Pointed Shoes", [("sarranid_shoes",0)], itp_type_foot_armor|itp_attach_armature ,0,
 150, weight(1)|leg_armor(8)|difficulty(0) ,imodbits_cloth ],
["hunter_boots", "Hunter Boots", [("hunter_boots_a", 0)], itp_type_foot_armor|itp_attach_armature, 0,
 190, weight(1.25)|leg_armor(9)|difficulty(0), imodbits_cloth],
["hide_boots", "Hide Boots", [("hide_boots_a", 0)], itp_type_foot_armor|itp_attach_armature, 0,
 240, weight(1)|leg_armor(10)|difficulty(0), imodbits_cloth],
["ankle_boots", "Ankle Boots", [("ankle_boots_a_new", 0)], itp_type_foot_armor|itp_attach_armature, 0,
 270, weight(1)|leg_armor(12)|difficulty(0), imodbits_cloth],
["nomad_boots", "Nomad Boots", [("nomad_boots_a", 0)], itp_type_foot_armor|itp_attach_armature, 0,
 310, weight(1.25)|leg_armor(14)|difficulty(0), imodbits_cloth],
["light_leather_boots", "Light Leather Boots", [("light_leather_boots",0)], itp_type_foot_armor|itp_attach_armature, 0,
 366, weight(1)|leg_armor(15)|difficulty(6), imodbits_cloth],
["leather_boots", "Leather Boots", [("leather_boots_a", 0)], itp_type_foot_armor|itp_attach_armature, 0,
 400, weight(1.25)|leg_armor(16)|difficulty(6), imodbits_cloth],
["sarranid_boots_b", "Pointed Leather Boots", [("sarranid_boots",0)], itp_type_foot_armor|itp_attach_armature, 0,
 440, weight(1.25)|leg_armor(17)|difficulty(6), imodbits_cloth],
["khergit_leather_boots", "Black Leather Boots", [("khergit_leather_boots",0)], itp_type_foot_armor|itp_attach_armature, 0,
 465, weight(1.5)|leg_armor(18)|difficulty(8), imodbits_cloth],
["sarranid_boots_c", "Plated Boots", [("sarranid_camel_boots",0)], itp_type_foot_armor|itp_attach_armature, 0,
 532, weight(2.5)|leg_armor(20)|difficulty(9) ,imodbits_plate ],
["splinted_leather_greaves", "Splinted Leather Greaves", [("leather_greaves_a",0)], itp_type_foot_armor|itp_attach_armature, 0,
 612, weight(3)|leg_armor(21)|difficulty(9), imodbits_armor],
["bishop_chausses", "Bishop's Chausses", [("pw_bishop_chausses", 0)], itp_type_foot_armor|itp_attach_armature, 0,
 886, weight(3)|leg_armor(22)|difficulty(10), imodbits_armor],
["mail_chausses", "Mail Chausses", [("mail_chausses_a",0)], itp_type_foot_armor|itp_attach_armature, 0,
 930, weight(3)|leg_armor(24)|difficulty(10), imodbits_armor],
["splinted_greaves", "Splinted Greaves", [("splinted_greaves_a",0)], itp_type_foot_armor|itp_attach_armature, 0,
 1353, weight(3.5)|leg_armor(28)|difficulty(12), imodbits_armor],
["sarranid_boots_d", "Mail Boots", [("sarranid_mail_chausses",0)], itp_type_foot_armor|itp_attach_armature, 0,
 1420 , weight(2.5)|leg_armor(30)|difficulty(12), imodbits_armor],
["mail_boots", "Mail Boots", [("mail_boots_a",0)], itp_type_foot_armor|itp_attach_armature, 0,
 1750, weight(3)|leg_armor(31)|difficulty(14), imodbits_armor],
["iron_greaves", "Iron Greaves", [("iron_greaves_a",0)], itp_type_foot_armor|itp_attach_armature, 0,
 2470, weight(3.5)|leg_armor(33)|difficulty(15), imodbits_armor],
["plate_boots", "Plate Boots", [("plate_boots",0)], itp_type_foot_armor|itp_attach_armature, 0,
 2864, weight(3.5)|leg_armor(34)|difficulty(15), imodbits_plate],
["black_greaves", "Black Greaves", [("black_greaves",0)], itp_type_foot_armor|itp_attach_armature, 0,
 5661, weight(3.5)|leg_armor(35)|difficulty(15), imodbits_plate],

["leather_gloves", "Leather Gloves", [("leather_gloves_L",0)], itp_type_hand_armor, 0,
 545, weight(0.25)|body_armor(2)|difficulty(0), imodbits_cloth],
["bishop_gloves", "Bishop's Gloves", [("pw_bishop_glove_L",0)], itp_type_hand_armor, 0,
 1293, weight(0.5)|body_armor(3)|difficulty(8), imodbits_cloth],
["mail_mittens", "Mail Mittens", [("mail_mittens_L",0)], itp_type_hand_armor, 0,
 1350, weight(0.5)|body_armor(4)|difficulty(9), imodbits_armor],
["lamellar_gauntlets", "Lamellar Gauntlets", [("scale_gauntlets_a_L",0)], itp_type_hand_armor, 0,
 2320, weight(0.75)|body_armor(5)|difficulty(11), imodbits_armor],
["scale_gauntlets", "Scale Gauntlets", [("scale_gauntlets_b_L",0)], itp_type_hand_armor, 0,
 2503, weight(0.75)|body_armor(6)|difficulty(12), imodbits_armor],
["gauntlets", "Gauntlets", [("gauntlets_L",0)], itp_type_hand_armor, 0,
 3042, weight(1.0)|body_armor(7)|difficulty(14), imodbits_armor],

["club", "Club", [("club",0)], itp_type_one_handed_wpn|itp_primary|itp_wooden_parry|itp_wooden_attack, itc_scimitar|itcf_carry_mace_left_hip,
 35, weight(2.5)|difficulty(5)|spd_rtng(92)|weapon_length(70)|swing_damage(10, blunt)|thrust_damage(0, pierce), imodbits_none],
["spiked_club", "Spiked Club", [("spiked_club",0)], itp_type_one_handed_wpn|itp_primary|itp_wooden_parry, itc_longsword|itcf_carry_mace_left_hip,
 383, weight(3.0)|difficulty(10)|spd_rtng(90)|weapon_length(80)|swing_damage(15, pierce)|thrust_damage(17, pierce), imodbits_mace],
["old_knife", "Old Knife", [("peasant_knife",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_dagger_front_left,
 78, weight(0.5)|difficulty(0)|spd_rtng(100)|weapon_length(43)|swing_damage(11, cut)|thrust_damage(7, pierce), imodbits_sword, [itm_class(item_class_knife)]],
["crude_spear", "Crude Spear", [("spear_g_1-9m",0)], itp_type_polearm|itp_primary|itp_wooden_parry, itc_staff|itcf_carry_spear,
 374, weight(2.0)|difficulty(6)|spd_rtng(92)|weapon_length(120)|swing_damage(6, cut)|thrust_damage(18, pierce), imodbits_polearm],
["blunt_falchion", "Blunt Falchion", [("falchion",0)], itp_type_one_handed_wpn|itp_primary, itc_scimitar|itcf_carry_sword_left_hip,
 217, weight(1.0)|difficulty(5)|spd_rtng(91)|weapon_length(72)|swing_damage(12, cut)|thrust_damage(0, pierce), imodbits_sword],
["chipped_falchion", "Chipped Falchion", [("falchion",0)], itp_type_one_handed_wpn|itp_primary, itc_scimitar|itcf_carry_sword_left_hip,
 314, weight(2.5)|difficulty(5)|spd_rtng(95)|weapon_length(72)|swing_damage(16, cut)|thrust_damage(0, pierce), imodbits_sword],
["rusty_sword", "Rusty Sword", [("sword_rusty_a",0),("sword_rusty_a_scabbard",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_longsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 321, weight(1.5)|difficulty(9)|spd_rtng(97)|weapon_length(95)|swing_damage(15, cut)|thrust_damage(12, pierce), imodbits_sword],
["worn_sword", "Worn Sword", [("sword_norman_rusty",0),("sword_norman_rusty_scabbard",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_longsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 355, weight(1.25)|difficulty(9)|spd_rtng(98)|weapon_length(91)|swing_damage(16, cut)|thrust_damage(13, pierce), imodbits_sword],
["bent_lance", "Bent Lance", [("spear",0)], itp_type_polearm|itp_offset_lance|itp_primary|itp_penalty_with_shield|itp_wooden_parry, itc_spear|itcf_carry_spear,
 364, weight(4.5)|difficulty(8)|spd_rtng(87)|weapon_length(156)|swing_damage(0, cut)|thrust_damage(16, pierce), imodbits_polearm],
["practice_sword","Practice Sword", [("pw_practice_sword",0)], itp_type_one_handed_wpn|itp_primary|itp_wooden_parry|itp_wooden_attack, itc_longsword|itcf_carry_sword_left_hip,
 103, weight(2.0)|difficulty(8)|spd_rtng(94)|weapon_length(100)|swing_damage(6, cut)|thrust_damage(6, cut), imodbits_none],
["heavy_practice_sword","Heavy Practice Sword", [("pw_heavy_practice_sword",0)], itp_type_two_handed_wpn|itp_two_handed|itp_primary|itp_wooden_parry|itp_wooden_attack, itc_greatsword|itcf_carry_sword_back,
 174, weight(3.0)|difficulty(14)|spd_rtng(90)|weapon_length(117)|swing_damage(6, cut)|thrust_damage(6, cut), imodbits_none],

["winged_mace", "Flanged Mace", [("flanged_mace",0)], itp_type_one_handed_wpn|itp_can_knock_down|itp_primary|itp_wooden_parry, itc_scimitar|itcf_carry_mace_left_hip,
 322, weight(3.0)|difficulty(7)|spd_rtng(100)|weapon_length(70)|swing_damage(26, blunt)|thrust_damage(0, pierce), imodbits_mace],
["spiked_mace", "Spiked Mace", [("spiked_mace_new",0)], itp_type_one_handed_wpn|itp_can_knock_down|itp_primary|itp_wooden_parry, itc_scimitar|itcf_carry_mace_left_hip,
 380, weight(3.5)|difficulty(8)|spd_rtng(97)|weapon_length(70)|swing_damage(30, blunt)|thrust_damage(0, pierce), imodbits_pick],
["mace_2", "Knobbed Mace", [("mace_a",0)], itp_type_one_handed_wpn|itp_can_knock_down|itp_primary|itp_wooden_parry, itc_scimitar|itcf_carry_mace_left_hip,
 198, weight(2.5)|difficulty(5)|spd_rtng(98)|weapon_length(70)|swing_damage(21, blunt)|thrust_damage(0, pierce), imodbits_mace],
["mace_4", "Winged Mace", [("mace_b",0)], itp_type_one_handed_wpn|itp_can_knock_down|itp_primary|itp_wooden_parry, itc_scimitar|itcf_carry_mace_left_hip,
 312, weight(2.5)|difficulty(5)|spd_rtng(98)|weapon_length(70)|swing_damage(24, blunt)|thrust_damage(0, pierce), imodbits_mace],
["club_with_spike_head", "Spiked Staff", [("mace_e",0)], itp_type_two_handed_wpn|itp_can_knock_down|itp_primary|itp_wooden_parry, itc_bastardsword|itcf_carry_axe_back,
 600, weight(3.5)|difficulty(12)|spd_rtng(95)|weapon_length(117)|swing_damage(24, blunt)|thrust_damage(20, pierce), imodbits_mace],
["long_spiked_club", "Long Spiked Club", [("mace_long_c",0)], itp_type_polearm|itp_can_knock_down|itp_primary|itp_wooden_parry, itc_staff|itcf_carry_axe_back,
 764, weight(3.0)|difficulty(14)|spd_rtng(96)|weapon_length(126)|swing_damage(23, pierce)|thrust_damage(20, blunt), imodbits_mace],
["long_hafted_spiked_mace", "Long Hafted Spiked Mace", [("mace_long_b",0)], itp_type_polearm|itp_can_knock_down|itp_primary|itp_wooden_parry, itc_staff|itcf_carry_axe_back,
 810, weight(4.0)|difficulty(14)|spd_rtng(94)|weapon_length(138)|swing_damage(28, blunt)|thrust_damage(26, blunt), imodbits_mace],
["fighting_pick", "Fighting Pick", [("fighting_pick_new",0)], itp_type_one_handed_wpn|itp_primary|itp_wooden_parry, itc_scimitar|itcf_carry_axe_left_hip,
 408, weight(1.0)|difficulty(8)|spd_rtng(98)|weapon_length(68)|swing_damage(24, pierce)|thrust_damage(0, pierce), imodbits_pick],
["military_pick", "Military Pick", [("steel_pick_new",0)], itp_type_one_handed_wpn|itp_primary|itp_wooden_parry, itc_scimitar|itcf_carry_axe_left_hip,
 680, weight(1.5)|difficulty(9)|spd_rtng(97)|weapon_length(68)|swing_damage(31, pierce)|thrust_damage(0, pierce), imodbits_pick],
["military_sickle", "Military Sickle", [("military_sickle_a",0)], itp_type_one_handed_wpn|itp_primary|itp_wooden_parry, itc_scimitar|itcf_carry_axe_left_hip,
 585, weight(1.0)|difficulty(8)|spd_rtng(98)|weapon_length(75)|swing_damage(27, pierce)|thrust_damage(0, pierce), imodbits_axe],
["military_hammer", "Military Hammer", [("military_hammer",0)], itp_type_one_handed_wpn|itp_can_knock_down|itp_primary|itp_wooden_parry, itc_scimitar|itcf_carry_axe_left_hip,
 543, weight(2.0)|difficulty(9)|spd_rtng(95)|weapon_length(70)|swing_damage(31, blunt)|thrust_damage(0, pierce), imodbits_mace],
["morningstar", "Morningstar", [("mace_morningstar_new",0)], itp_crush_through|itp_type_two_handed_wpn|itp_primary|itp_wooden_parry|itp_unbalanced, itc_morningstar|itcf_carry_axe_left_hip,
 1305, weight(4.5)|difficulty(15)|spd_rtng(95)|weapon_length(85)|swing_damage(38, pierce)|thrust_damage(0, pierce), imodbits_mace],
["falchion", "Falchion", [("falchion_new",0)], itp_type_one_handed_wpn|itp_primary, itc_scimitar|itcf_carry_sword_left_hip,
 335, weight(2.5)|difficulty(5)|spd_rtng(96)|weapon_length(73)|swing_damage(30, cut)|thrust_damage(0, pierce), imodbits_sword],
["curved_sword", "Curved Sword", [("khergit_sword",0),("khergit_sword_scabbard",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_longsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 654, weight(1.25)|difficulty(9)|spd_rtng(98)|weapon_length(99)|swing_damage(25, cut)|thrust_damage(14, pierce), imodbits_sword],
["sword_medieval_a", "Sword", [("sword_medieval_a",0),("sword_medieval_a_scabbard",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_longsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 663, weight(1.5)|difficulty(9)|spd_rtng(99)|weapon_length(95)|swing_damage(27, cut)|thrust_damage(22, pierce), imodbits_sword_high],
["sword_medieval_b_small", "Short Sword", [("sword_medieval_b_small",0),("sword_medieval_b_small_scabbard",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_longsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 558, weight(1.25)|difficulty(9)|spd_rtng(103)|weapon_length(82)|swing_damage(26, cut)|thrust_damage(24, pierce), imodbits_sword_high],
["sword_medieval_c_long", "Arming Sword", [("sword_medieval_c_long",0),("sword_medieval_c_long_scabbard",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_longsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 880, weight(1.5)|difficulty(10)|spd_rtng(98)|weapon_length(102)|swing_damage(27, cut)|thrust_damage(27, pierce), imodbits_sword_high],
["sword_medieval_d_long", "Knightly Sword", [("sword_medieval_d_long",0),("sword_medieval_d_long_scabbard", ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_longsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 950, weight(1.5)|difficulty(12)|spd_rtng(97)|weapon_length(102)|swing_damage(33, cut)|thrust_damage(25, pierce), imodbits_sword],
["sword_viking_c", "Nordic Sword", [("sword_viking_c",0),("sword_viking_c_scabbard",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_longsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 647, weight(1.5)|difficulty(9)|spd_rtng(99)|weapon_length(95)|swing_damage(28, cut)|thrust_damage(20, pierce), imodbits_sword_high],
["sword_viking_b_small", "Nordic Short Sword", [("sword_viking_b_small",0),("sword_viking_b_small_scabbard",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_longsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 572, weight(1.25)|difficulty(9)|spd_rtng(102)|weapon_length(82)|swing_damage(27, cut)|thrust_damage(22, pierce), imodbits_sword_high],
["sword_viking_a_long", "Nordic Long Sword", [("sword_viking_a_long",0),("sword_viking_a_long_scabbard",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_longsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 842, weight(1.5)|difficulty(10)|spd_rtng(97)|weapon_length(101)|swing_damage(29, cut)|thrust_damage(19, pierce), imodbits_sword],
["arabian_sword_a", "Arabian Sword", [("arabian_sword_a",0),("scab_arabian_sword_a",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_longsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 612, weight(1.5)|difficulty(9)|spd_rtng(99)|weapon_length(100)|swing_damage(26, cut)|thrust_damage(19, pierce), imodbits_sword_high],
["arabian_sword_b", "Arabian Arming Sword", [("arabian_sword_b",0),("scab_arabian_sword_b",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_longsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 832, weight(1.75)|difficulty(11)|spd_rtng(99)|weapon_length(100)|swing_damage(28, cut)|thrust_damage(19, pierce), imodbits_sword_high],
["arabian_sword_c", "Arabian Cavalry Sword", [("arabian_sword_c",0),("scab_arabian_sword_c",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_longsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 945, weight(2.0)|difficulty(12)|spd_rtng(97)|weapon_length(106)|swing_damage(28, cut)|thrust_damage(19, pierce), imodbits_sword_high],
["arabian_sword_d", "Arabian Guard Sword", [("arabian_sword_d",0),("scab_arabian_sword_d",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_longsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 893, weight(1.5)|difficulty(10)|spd_rtng(98)|weapon_length(100)|swing_damage(30, cut)|thrust_damage(20, pierce), imodbits_sword_high],
["scimitar", "Scimitar", [("scimitar_a",0),("scab_scimeter_a", ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_scimitar|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 750, weight(1.5)|difficulty(9)|spd_rtng(101)|weapon_length(97)|swing_damage(30, cut)|thrust_damage(0, pierce), imodbits_sword_high],
["scimitar_b", "Elite Scimitar", [("scimitar_b",0),("scab_scimeter_b", ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_scimitar|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 890, weight(1.5)|difficulty(10)|spd_rtng(100)|weapon_length(100)|swing_damage(32, cut)|thrust_damage(0, pierce), imodbits_sword_high],
["khergit_sword_c", "Sabre", [("khergit_sword_c",0),("khergit_sword_c_scabbard", ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_scimitar|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 580, weight(1.5)|difficulty(9)|spd_rtng(101)|weapon_length(88)|swing_damage(31, cut), imodbits_sword_high],
["khergit_sword_d", "Heavy Sabre", [("khergit_sword_d",0),("khergit_sword_d_scabbard", ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_scimitar|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 734, weight(1.75)|difficulty(12)|spd_rtng(98)|weapon_length(88)|swing_damage(34, cut), imodbits_sword_high],
["khergit_sword_two_handed_a", "Two Handed Sabre", [("khergit_sword_two_handed_a",0)], itp_type_two_handed_wpn|itp_two_handed|itp_primary, itc_nodachi|itcf_carry_sword_back,
 2523, weight(2.75)|difficulty(15)|spd_rtng(96)|weapon_length(113)|swing_damage(40, cut)|thrust_damage(0, pierce), imodbits_sword_high],
["two_handed_cleaver", "War Cleaver", [("military_cleaver_a",0)], itp_type_two_handed_wpn|itp_two_handed|itp_primary, itc_nodachi|itcf_carry_sword_back,
 2440, weight(2.75)|difficulty(15)|spd_rtng(93)|weapon_length(120)|swing_damage(45, cut)|thrust_damage(0, cut), imodbits_sword_high],
["military_cleaver_b", "Soldier's Cleaver", [("military_cleaver_b",0)], itp_type_one_handed_wpn|itp_primary, itc_scimitar|itcf_carry_sword_left_hip,
 693, weight(1.5)|difficulty(10)|spd_rtng(95)|weapon_length(91)|swing_damage(31, cut)|thrust_damage(0, pierce), imodbits_sword_high],
["military_cleaver_c", "Military Cleaver", [("military_cleaver_c",0)], itp_type_one_handed_wpn|itp_primary, itc_scimitar|itcf_carry_sword_left_hip,
 763, weight(1.5)|difficulty(12)|spd_rtng(95)|weapon_length(91)|swing_damage(35, cut)|thrust_damage(0, pierce), imodbits_sword_high],
["bastard_sword_a", "Bastard Sword", [("bastard_sword_a",0),("bastard_sword_a_scabbard", ixmesh_carry)], itp_type_two_handed_wpn|itp_primary, itc_bastardsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 1294, weight(2.0)|difficulty(15)|spd_rtng(98)|weapon_length(98)|swing_damage(35, cut)|thrust_damage(26, pierce), imodbits_sword_high],
["bastard_sword_b", "Heavy Bastard Sword", [("bastard_sword_b",0),("bastard_sword_b_scabbard", ixmesh_carry)], itp_type_two_handed_wpn|itp_primary, itc_bastardsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 1526, weight(2.25)|difficulty(15)|spd_rtng(97)|weapon_length(105)|swing_damage(37, cut)|thrust_damage(27, pierce), imodbits_sword_high],
["sword_two_handed_b", "Two Handed Sword", [("sword_two_handed_b",0)], itp_type_two_handed_wpn|itp_two_handed|itp_primary, itc_greatsword|itcf_carry_sword_back,
 1970, weight(2.75)|difficulty(15)|spd_rtng(97)|weapon_length(109)|swing_damage(40, cut)|thrust_damage(28, pierce), imodbits_sword_high ],
["sword_two_handed_a", "Great Sword", [("sword_two_handed_a", 0)], itp_type_two_handed_wpn|itp_two_handed|itp_primary, itc_greatsword|itcf_carry_sword_back,
 4134, weight(2.75)|difficulty(15)|spd_rtng(96)|weapon_length(119)|swing_damage(42, cut)|thrust_damage(29, pierce), imodbits_sword_high],
["one_handed_war_axe_b", "One Handed War Axe", [("one_handed_war_axe_b",0)], itp_type_one_handed_wpn|itp_primary|itp_bonus_against_shield|itp_wooden_parry, itc_scimitar|itcf_carry_axe_left_hip,
 490, weight(1.5)|difficulty(12)|spd_rtng(94)|weapon_length(71)|swing_damage(31, cut)|thrust_damage(0, pierce), imodbits_axe],
["one_handed_battle_axe_a", "One Handed Axe", [("one_handed_battle_axe_a",0)], itp_type_one_handed_wpn|itp_primary|itp_bonus_against_shield|itp_wooden_parry, itc_scimitar|itcf_carry_axe_left_hip,
 521, weight(1.5)|difficulty(12)|spd_rtng(95)|weapon_length(73)|swing_damage(29, cut)|thrust_damage(0, pierce), imodbits_axe],
["one_handed_battle_axe_b", "One Handed Battle Axe", [("one_handed_battle_axe_b",0)], itp_type_one_handed_wpn|itp_primary|itp_bonus_against_shield|itp_wooden_parry, itc_scimitar|itcf_carry_axe_left_hip,
 830, weight(1.75)|difficulty(14)|spd_rtng(97)|weapon_length(76)|swing_damage(36, cut)|thrust_damage(0, pierce), imodbits_axe],
["one_handed_battle_axe_c", "Spiked One Handed Battle Axe", [("one_handed_battle_axe_c",0)], itp_type_one_handed_wpn|itp_primary|itp_bonus_against_shield|itp_wooden_parry, itc_scimitar|itcf_carry_axe_left_hip,
 750, weight(2.0)|difficulty(14)|spd_rtng(97)|weapon_length(73)|swing_damage(37, cut)|thrust_damage(0, pierce), imodbits_axe],
["sarranid_axe_a", "Iron Battle Axe", [("one_handed_battle_axe_g",0)], itp_type_one_handed_wpn|itp_primary|itp_bonus_against_shield|itp_wooden_parry, itc_scimitar|itcf_carry_axe_left_hip,
 1150, weight(1.75)|difficulty(12)|spd_rtng(97)|weapon_length(71)|swing_damage(35, cut)|thrust_damage(0, pierce), imodbits_axe],
["sarranid_axe_b", "Iron War Axe", [("one_handed_battle_axe_h",0)], itp_type_one_handed_wpn|itp_primary|itp_bonus_against_shield|itp_wooden_parry, itc_scimitar|itcf_carry_axe_left_hip,
 1360, weight(1.75)|difficulty(12)|spd_rtng(97)|weapon_length(69)|swing_damage(38, cut)|thrust_damage(0, pierce), imodbits_axe],
["two_handed_axe", "Two Handed Axe", [("two_handed_battle_axe_a",0)], itp_type_two_handed_wpn|itp_two_handed|itp_primary|itp_bonus_against_shield|itp_wooden_parry|itp_unbalanced, itc_nodachi|itcf_carry_axe_back,
 1490, weight(4.5)|difficulty(15)|spd_rtng(96)|weapon_length(89)|swing_damage(38, cut)|thrust_damage(0, pierce), imodbits_axe],
["two_handed_battle_axe", "Two Handed War Axe", [("two_handed_battle_axe_b",0)], itp_type_two_handed_wpn|itp_two_handed|itp_primary|itp_bonus_against_shield|itp_wooden_parry|itp_unbalanced, itc_nodachi|itcf_carry_axe_back,
 2025, weight(4.5)|difficulty(15)|spd_rtng(96)|weapon_length(90)|swing_damage(44, cut)|thrust_damage(0, pierce), imodbits_axe],
["shortened_voulge", "Shortened Voulge", [("two_handed_battle_axe_c",0)], itp_type_two_handed_wpn|itp_two_handed|itp_primary|itp_bonus_against_shield|itp_wooden_parry|itp_unbalanced, itc_nodachi|itcf_carry_axe_back,
 2328, weight(5.0)|difficulty(15)|spd_rtng(92)|weapon_length(99)|swing_damage(45, cut)|thrust_damage(0, pierce), imodbits_axe],
["bardiche", "Bardiche", [("two_handed_battle_axe_d",0)], itp_type_two_handed_wpn|itp_two_handed|itp_primary|itp_bonus_against_shield|itp_wooden_parry|itp_unbalanced, itc_nodachi|itcf_carry_axe_back,
 2901, weight(5.5)|difficulty(15)|spd_rtng(91)|weapon_length(101)|swing_damage(47, cut)|thrust_damage(0, pierce), imodbits_axe],
["shortened_military_scythe", "Shortened Military Scythe", [("two_handed_battle_scythe_a",0)], itp_type_two_handed_wpn|itp_two_handed|itp_primary, itc_nodachi|itcf_carry_sword_back,
 1640, weight(2.0)|difficulty(14)|spd_rtng(90)|weapon_length(114)|swing_damage(38, cut)|thrust_damage(0, pierce), imodbits_sword_high],
["sarranid_two_handed_axe_a", "Two Handed Iron Axe", [("two_handed_battle_axe_g",0)], itp_type_two_handed_wpn|itp_two_handed|itp_primary|itp_bonus_against_shield|itp_unbalanced, itc_nodachi|itcf_carry_axe_back,
 2350, weight(5.0)|difficulty(15)|spd_rtng(89)|weapon_length(95)|swing_damage(45, cut)|thrust_damage(0, pierce), imodbits_axe],
["sarranid_two_handed_axe_b", "Two Handed Iron Axe", [("two_handed_battle_axe_h",0)], itp_type_two_handed_wpn|itp_two_handed|itp_primary|itp_bonus_against_shield|itp_unbalanced, itc_nodachi|itcf_carry_axe_back,
 2870, weight(5.5)|difficulty(15)|spd_rtng(92)|weapon_length(89)|swing_damage(47, cut)|thrust_damage(0, pierce), imodbits_axe],
["long_axe_a", "Long Axe", [("long_axe_a",0)], itp_type_polearm|itp_two_handed|itp_primary|itp_bonus_against_shield|itp_wooden_parry, itc_staff|itcf_carry_axe_back,
 3120, weight(4.5)|difficulty(15)|spd_rtng(91)|weapon_length(113)|swing_damage(46, cut)|thrust_damage(15, blunt), imodbits_axe],
["glaive", "Glaive", [("glaive_b",0)], itp_type_polearm|itp_cant_use_on_horseback|itp_primary|itp_two_handed|itp_wooden_parry, itc_staff|itcf_carry_spear,
 1752, weight(2.5)|difficulty(14)|spd_rtng(90)|weapon_length(157)|swing_damage(39, cut)|thrust_damage(21, pierce), imodbits_polearm],
["staff", "Staff", [("wooden_staff",0)], itp_type_polearm|itp_offset_lance|itp_primary|itp_penalty_with_shield|itp_wooden_parry|itp_wooden_attack, itc_staff|itcf_carry_sword_back,
 160, weight(1.5)|difficulty(8)|spd_rtng(98)|weapon_length(128)|swing_damage(15, blunt)|thrust_damage(12, blunt), imodbits_polearm],
["quarter_staff", "Quarter Staff", [("quarter_staff",0)], itp_type_polearm|itp_offset_lance|itp_primary|itp_wooden_parry|itp_wooden_attack, itc_staff|itcf_carry_sword_back,
 220, weight(2.0)|difficulty(8)|spd_rtng(97)|weapon_length(137)|swing_damage(18, blunt)|thrust_damage(13, blunt), imodbits_polearm],
["iron_staff", "Iron Staff", [("iron_staff",0)], itp_type_polearm|itp_offset_lance|itp_primary, itc_staff|itcf_carry_sword_back,
 575, weight(4.0)|difficulty(12)|spd_rtng(93)|weapon_length(128)|swing_damage(25, blunt)|thrust_damage(26, blunt), imodbits_polearm],
["shortened_spear", "Shortened Spear", [("spear_g_1-9m",0)], itp_type_polearm|itp_offset_lance|itp_primary|itp_wooden_parry, itc_staff|itcf_carry_spear,
 353, weight(2.0)|difficulty(9)|spd_rtng(102)|weapon_length(120)|swing_damage(18, blunt)|thrust_damage(24, pierce), imodbits_polearm],
["spear", "Spear", [("spear_h_2-15m",0)], itp_type_polearm|itp_offset_lance|itp_primary|itp_wooden_parry, itc_staff|itcf_carry_spear,
 485, weight(2.25)|difficulty(9)|spd_rtng(98)|weapon_length(135)|swing_damage(20, blunt)|thrust_damage(26, pierce), imodbits_polearm],
["bamboo_spear", "Bamboo Spear", [("arabian_spear_a_3m",0)], itp_type_polearm|itp_offset_lance|itp_primary|itp_penalty_with_shield|itp_wooden_parry, itc_staff|itcf_carry_spear,
 580, weight(3.0)|difficulty(14)|spd_rtng(88)|weapon_length(200)|swing_damage(15, blunt)|thrust_damage(20, pierce), imodbits_polearm],
["war_spear", "War Spear", [("spear_i_2-3m",0)], itp_type_polearm|itp_offset_lance|itp_primary|itp_wooden_parry, itc_staff|itcf_carry_spear,
 640, weight(2.5)|difficulty(10)|spd_rtng(95)|weapon_length(150)|swing_damage(20, blunt)|thrust_damage(27, pierce), imodbits_polearm],
["light_lance", "Light Lance", [("spear_b_2-75m",0)], itp_couchable|itp_type_polearm|itp_offset_lance|itp_primary|itp_penalty_with_shield|itp_wooden_parry, itc_spear|itcf_carry_spear,
 580, weight(2.5)|difficulty(12)|spd_rtng(85)|weapon_length(175)|swing_damage(16, blunt)|thrust_damage(27, pierce), imodbits_polearm],
["lance", "Lance", [("spear_d_2-8m",0)], itp_couchable|itp_type_polearm|itp_offset_lance|itp_primary|itp_penalty_with_shield|itp_wooden_parry, itc_spear|itcf_carry_spear,
 670, weight(3.0)|difficulty(14)|spd_rtng(80)|weapon_length(180)|swing_damage(16, blunt)|thrust_damage(26, pierce), imodbits_polearm],
["heavy_lance", "Heavy Lance", [("spear_f_2-9m",0)], itp_couchable|itp_type_polearm|itp_offset_lance|itp_primary|itp_penalty_with_shield|itp_wooden_parry, itc_spear|itcf_carry_spear,
 960, weight(3.5)|difficulty(14)|spd_rtng(75)|weapon_length(190)|swing_damage(16, blunt)|thrust_damage(26, pierce), imodbits_polearm],
["great_lance", "Great Lance", [("pw_great_lance",0)], itp_couchable|itp_type_polearm|itp_primary|itp_penalty_with_shield|itp_wooden_parry, itcf_carry_spear,
 1410, weight(5.0)|difficulty(14)|spd_rtng(70)|weapon_length(227)|swing_damage(0, cut)|thrust_damage(21, pierce), imodbits_polearm],
["jousting_lance", "Jousting Lance", [("pw_jousting_lance",0)], itp_couchable|itp_type_polearm|itp_primary|itp_penalty_with_shield|itp_wooden_parry, itcf_carry_spear,
 1258, weight(5.0)|difficulty(14)|spd_rtng(70)|weapon_length(226)|swing_damage(0, cut)|thrust_damage(15, blunt), imodbits_polearm],
["awlpike", "Awlpike", [("awl_pike_b",0)], itp_type_polearm|itp_cant_use_on_horseback|itp_primary|itp_penalty_with_shield|itp_wooden_parry|itp_is_pike, itc_spear|itcf_carry_spear,
 745, weight(2.25)|difficulty(14)|spd_rtng(92)|weapon_length(165)|swing_damage(20, blunt)|thrust_damage(33, pierce), imodbits_polearm],
["awlpike_long", "Long Awlpike", [("awl_pike_a",0)], itp_type_polearm|itp_cant_use_on_horseback|itp_primary|itp_penalty_with_shield|itp_wooden_parry|itp_is_pike, itc_spear|itcf_carry_spear,
 1085, weight(2.5)|difficulty(15)|spd_rtng(89)|weapon_length(185)|swing_damage(20, blunt)|thrust_damage(32, pierce), imodbits_polearm],
["pike", "Pike", [("spear_a_3m",0)], itp_type_polearm|itp_cant_use_on_horseback|itp_primary|itp_penalty_with_shield|itp_wooden_parry|itp_two_handed|itp_is_pike, itc_spear|itcf_carry_spear,
 1250, weight(3.0)|difficulty(15)|spd_rtng(81)|weapon_length(245)|swing_damage(16, blunt)|thrust_damage(26, pierce), imodbits_polearm],
["bec_de_corbin_a",  "War Hammer", [("bec_de_corbin_a",0)], itp_type_polearm|itp_cant_use_on_horseback|itp_primary|itp_penalty_with_shield|itp_wooden_parry|itp_two_handed, itc_staff|itcf_carry_spear,
 1350, weight(3.0)|difficulty(15)|spd_rtng(87)|weapon_length(120)|swing_damage(28, blunt)|thrust_damage(30, pierce), imodbits_polearm],
["bishop_crosier", "Bishop's Crosier", [("pw_bishop_crosier", 0)], itp_type_two_handed_wpn|itp_two_handed|itp_primary, itcf_thrust_onehanded|itcf_carry_bow_back,
 15238, weight(4.0)|difficulty(10)|spd_rtng(70)|weapon_length(125)|swing_damage(0, blunt)|thrust_damage(0, cut), imodbits_polearm],

["crude_bow", "Crude Bow", [("hunting_bow",0),("hunting_bow_carry",ixmesh_carry)], itp_type_bow|itp_primary|itp_two_handed|itp_cant_use_on_horseback, itcf_shoot_bow|itcf_carry_bow_back,
 260, weight(1)|difficulty(1)|weapon_length(170)|spd_rtng(82)|shoot_speed(42)|thrust_damage(9, pierce), imodbits_bow],
["bent_arrows", "Bent Arrows", [("arrow",0),("flying_missile",ixmesh_flying_ammo),("quiver",ixmesh_carry)], itp_type_arrows|itp_default_ammo, itcf_carry_quiver_back,
 61, weight(3)|weapon_length(95)|thrust_damage(0, pierce)|max_ammo(10), imodbits_missile],
["flimsy_crossbow", "Flimsy Crossbow", [("light_crossbow",0)], itp_type_crossbow|itp_primary|itp_two_handed|itp_cant_use_on_horseback, itcf_shoot_crossbow|itcf_carry_crossbow_back,
 284, weight(3)|difficulty(9)|weapon_length(85)|spd_rtng(35)|shoot_speed(57)|thrust_damage(18, pierce)|max_ammo(1), imodbits_crossbow],
["crude_bolts","Crude Bolts", [("bolt",0),("flying_missile",ixmesh_flying_ammo),("bolt_bag",ixmesh_carry)], itp_type_bolts, itcf_carry_quiver_right_vertical,
 47, weight(2.25)|weapon_length(55)|max_ammo(8), imodbits_missile],

["hunting_bow", "Hunting Bow", [("hunting_bow", 0), ("hunting_bow_carry",ixmesh_carry)], itp_type_bow|itp_primary|itp_two_handed|itp_cant_use_on_horseback, itcf_shoot_bow|itcf_carry_bow_back,
 260, weight(1)|difficulty(1)|weapon_length(170)|spd_rtng(100)|shoot_speed(52)|thrust_damage(15, pierce), imodbits_bow],
["short_bow", "Short Bow", [("short_bow",0),("short_bow_carry",ixmesh_carry)], itp_type_bow|itp_primary|itp_two_handed|itp_cant_use_on_horseback, itcf_shoot_bow|itcf_carry_bow_back,
 304, weight(1)|difficulty(1)|weapon_length(145)|spd_rtng(97)|shoot_speed(55)|thrust_damage(18, pierce), imodbits_bow],
["nomad_bow", "Nomad Bow", [("nomad_bow",0),("nomad_bow_case",ixmesh_carry)], itp_type_bow|itp_primary|itp_two_handed|itp_cant_use_on_horseback, itcf_shoot_bow|itcf_carry_bowcase_left|itcf_show_holster_when_drawn,
 414, weight(1.25)|difficulty(2)|weapon_length(95)|spd_rtng(94)|shoot_speed(56)|thrust_damage(20, pierce), imodbits_bow],
["long_bow", "Long Bow", [("long_bow",0),("long_bow_carry",ixmesh_carry)], itp_type_bow|itp_primary|itp_two_handed|itp_cant_use_on_horseback, itcf_shoot_bow|itcf_carry_bow_back,
 545, weight(1.75)|difficulty(3)|weapon_length(250)|spd_rtng(86)|shoot_speed(56)|thrust_damage(22, pierce), imodbits_bow],
["khergit_bow", "Khergit Bow", [("khergit_bow",0),("khergit_bow_case",ixmesh_carry)], itp_type_bow|itp_primary|itp_two_handed|itp_cant_use_on_horseback, itcf_shoot_bow|itcf_carry_bowcase_left|itcf_show_holster_when_drawn,
 569, weight(1.25)|difficulty(3)|weapon_length(110)|spd_rtng(90)|shoot_speed(57)|thrust_damage(21, pierce), imodbits_bow],
["strong_bow", "Strong Bow", [("strong_bow",0),("strong_bow_case",ixmesh_carry)], itp_type_bow|itp_primary|itp_two_handed|itp_cant_use_on_horseback, itcf_shoot_bow|itcf_carry_bowcase_left|itcf_show_holster_when_drawn,
 837, weight(1.25)|difficulty(3)|weapon_length(110)|spd_rtng(88)|shoot_speed(58)|thrust_damage(23, pierce), imodbits_bow],
["war_bow", "War Bow", [("war_bow",0),("war_bow_carry",ixmesh_carry)], itp_type_bow|itp_primary|itp_two_handed|itp_cant_use_on_horseback, itcf_shoot_bow|itcf_carry_bow_back,
 1328, weight(1.5)|difficulty(4)|weapon_length(205)|spd_rtng(85)|shoot_speed(59)|thrust_damage(25, pierce), imodbits_bow],
["arrows", "Arrows", [("arrow_b", 0), ("flying_missile", ixmesh_flying_ammo), ("quiver", ixmesh_carry)], itp_type_arrows|itp_default_ammo, itcf_carry_quiver_back,
 72, weight(3)|weapon_length(95)|thrust_damage(1, pierce)|max_ammo(30), imodbits_missile],
["barbed_arrows", "Barbed Arrows", [("barbed_arrow",0),("flying_missile",ixmesh_flying_ammo),("quiver_d", ixmesh_carry)], itp_type_arrows, itcf_carry_quiver_back_right,
 124, weight(3)|weapon_length(95)|thrust_damage(2,pierce)|max_ammo(30), imodbits_missile],
["khergit_arrows", "Broadhead Arrows", [("arrow",0),("flying_missile",ixmesh_flying_ammo),("quiver_b", ixmesh_carry)], itp_type_arrows, itcf_carry_quiver_back_right,
 210, weight(3.5)|weapon_length(95)|thrust_damage(3,pierce)|max_ammo(30), imodbits_missile],
["bodkin_arrows", "Bodkin Arrows", [("piercing_arrow",0),("flying_missile",ixmesh_flying_ammo),("quiver_c", ixmesh_carry)], itp_type_arrows, itcf_carry_quiver_back_right,
 220, weight(3)|weapon_length(91)|thrust_damage(3,pierce)|max_ammo(30), imodbits_missile],
["hunting_crossbow", "Hunting Crossbow", [("crossbow_a",0)], itp_type_crossbow|itp_primary|itp_two_handed|itp_cant_use_on_horseback, itcf_shoot_crossbow|itcf_carry_crossbow_back,
 562, weight(2.25)|difficulty(6)|weapon_length(99)|spd_rtng(47)|shoot_speed(50)|thrust_damage(37, pierce)|max_ammo(1), imodbits_crossbow],
["light_crossbow", "Light Crossbow", [("crossbow_b",0)], itp_type_crossbow|itp_primary|itp_two_handed|itp_cant_use_on_horseback, itcf_shoot_crossbow|itcf_carry_crossbow_back,
 778, weight(2.5)|difficulty(8)|weapon_length(100)|spd_rtng(45)|shoot_speed(59)|thrust_damage(44, pierce)|max_ammo(1), imodbits_crossbow],
["crossbow", "Crossbow", [("crossbow_a",0)], itp_type_crossbow|itp_primary|itp_two_handed|itp_cant_use_on_horseback, itcf_shoot_crossbow|itcf_carry_crossbow_back,
 1182, weight(3)|difficulty(10)|weapon_length(100)|spd_rtng(42)|shoot_speed(66)|thrust_damage(49, pierce)|max_ammo(1), imodbits_crossbow],
["heavy_crossbow", "Heavy Crossbow", [("crossbow_c",0)], itp_type_crossbow|itp_primary|itp_two_handed|itp_cant_use_on_horseback, itcf_shoot_crossbow|itcf_carry_crossbow_back,
 1749, weight(3.5)|difficulty(12)|weapon_length(101)|spd_rtng(37)|shoot_speed(68)|thrust_damage(56, pierce)|max_ammo(1), imodbits_crossbow],
["sniper_crossbow", "Siege Crossbow", [("crossbow_c",0)], itp_type_crossbow|itp_primary|itp_two_handed|itp_cant_use_on_horseback, itcf_shoot_crossbow|itcf_carry_crossbow_back,
 3483, weight(3.75)|difficulty(14)|weapon_length(105)|spd_rtng(32)|shoot_speed(70)|thrust_damage(63, pierce)|max_ammo(1), imodbits_crossbow],
["bolts", "Bolts", [("bolt",0),("flying_missile",ixmesh_flying_ammo),("bolt_bag_b", ixmesh_carry)], itp_type_bolts|itp_default_ammo|itp_can_penetrate_shield, itcf_carry_quiver_right_vertical,
 95, weight(2.25)|weapon_length(63)|thrust_damage(1,pierce)|max_ammo(29), imodbits_missile],
["steel_bolts", "Steel Bolts", [("bolt",0),("flying_missile",ixmesh_flying_ammo),("bolt_bag_c", ixmesh_carry)], itp_type_bolts|itp_can_penetrate_shield, itcf_carry_quiver_right_vertical,
 190, weight(2.5)|weapon_length(63)|thrust_damage(2,pierce)|max_ammo(29), imodbits_missile],

["old_shield", "Old Shield", [("shield_heater_c",0)], itp_type_shield|itp_wooden_parry, itcf_carry_kite_shield,
 157, weight(3.5)|hit_points(210)|body_armor(2)|spd_rtng(70)|shield_width(50), imodbits_shield],
["practice_shield", "Practice Shield", [("tableau_shield_round_5",0)], itp_type_shield|itp_wooden_parry, itcf_carry_round_shield,
 76, weight(4)|hit_points(100)|body_armor(0)|spd_rtng(90)|shield_width(50), imodbits_shield, init_heraldic_item("tableau_round_shield_5")],
["tab_shield_round_b", "Plain Round Shield", [("tableau_shield_round_3",0)], itp_type_shield|itp_wooden_parry, itcf_carry_round_shield,
 265, weight(3)|hit_points(260)|body_armor(8)|spd_rtng(90)|shield_width(50), imodbits_shield, init_heraldic_item("tableau_round_shield_3")],
["tab_shield_round_c", "Round Shield", [("tableau_shield_round_2",0)], itp_type_shield|itp_wooden_parry, itcf_carry_round_shield,
 305, weight(3.5)|hit_points(310)|body_armor(12)|spd_rtng(87)|shield_width(50), imodbits_shield, init_heraldic_item("tableau_round_shield_2")],
["tab_shield_round_d", "Heavy Round Shield", [("tableau_shield_round_1",0)], itp_type_shield|itp_wooden_parry, itcf_carry_round_shield,
 410, weight(4)|hit_points(350)|body_armor(15)|spd_rtng(84)|shield_width(50), imodbits_shield, init_heraldic_item("tableau_round_shield_1")],
["tab_shield_round_e", "Huscarl's Round Shield", [("tableau_shield_round_4",0)], itp_type_shield|itp_cant_use_on_horseback|itp_wooden_parry, itcf_carry_round_shield,
 630 , weight(5)|hit_points(380)|body_armor(16)|spd_rtng(81)|shield_width(50), imodbits_shield, init_heraldic_item("tableau_round_shield_4")],
["tab_shield_kite_b", "Plain Kite Shield", [("tableau_shield_kite_3" ,0)], itp_type_shield|itp_wooden_parry, itcf_carry_kite_shield,
 270, weight(2.5)|hit_points(215)|body_armor(10)|spd_rtng(93)|shield_width(36)|shield_height(70), imodbits_shield, init_heraldic_item("tableau_kite_shield_3")],
["tab_shield_kite_c", "Kite Shield", [("tableau_shield_kite_2" ,0)], itp_type_shield|itp_wooden_parry, itcf_carry_kite_shield,
 356, weight(3)|hit_points(265)|body_armor(13)|spd_rtng(90)|shield_width(36)|shield_height(70), imodbits_shield, init_heraldic_item("tableau_kite_shield_2")],
["tab_shield_kite_d", "Heavy Kite Shield", [("tableau_shield_kite_2" ,0)], itp_type_shield|itp_wooden_parry, itcf_carry_kite_shield,
 420, weight(3.5)|hit_points(310)|body_armor(18)|spd_rtng(87)|shield_width(36)|shield_height(70), imodbits_shield, init_heraldic_item("tableau_kite_shield_2")],
["tab_shield_kite_cav_a", "Horseman's Kite Shield", [("tableau_shield_kite_4" ,0)], itp_type_shield|itp_wooden_parry, itcf_carry_kite_shield,
 405, weight(2)|hit_points(165)|body_armor(14)|spd_rtng(103)|shield_width(30)|shield_height(50), imodbits_shield, init_heraldic_item("tableau_kite_shield_4")],
["tab_shield_kite_cav_b", "Knightly Kite Shield", [("tableau_shield_kite_4" ,0)], itp_type_shield, itcf_carry_kite_shield,
 760, weight(2.5)|hit_points(225)|body_armor(23)|spd_rtng(100)|shield_width(30)|shield_height(50), imodbits_shield, init_heraldic_item("tableau_kite_shield_4")],
["tab_shield_heater_b", "Plain Heater Shield", [("tableau_shield_heater_1" ,0)], itp_type_shield|itp_wooden_parry, itcf_carry_kite_shield,
 274, weight(2.5)|hit_points(210)|body_armor(11)|spd_rtng(93)|shield_width(36)|shield_height(70), imodbits_shield, init_heraldic_item("tableau_heater_shield_1")],
["tab_shield_heater_c", "Heater Shield", [("tableau_shield_heater_1" ,0)], itp_type_shield|itp_wooden_parry, itcf_carry_kite_shield,
 360, weight(3)|hit_points(260)|body_armor(14)|spd_rtng(90)|shield_width(36)|shield_height(70), imodbits_shield, init_heraldic_item("tableau_heater_shield_1")],
["tab_shield_heater_d", "Heavy Heater Shield", [("tableau_shield_heater_1" ,0)], itp_type_shield|itp_wooden_parry, itcf_carry_kite_shield,
 432, weight(3.5)|hit_points(305)|body_armor(19)|spd_rtng(87)|shield_width(36)|shield_height(70), imodbits_shield, init_heraldic_item("tableau_heater_shield_1")],
["tab_shield_heater_cav_a", "Horseman's Heater Shield", [("tableau_shield_heater_2" ,0)], itp_type_shield|itp_wooden_parry, itcf_carry_kite_shield,
 429, weight(2)|hit_points(160)|body_armor(16)|spd_rtng(103)|shield_width(30)|shield_height(50), imodbits_shield, init_heraldic_item("tableau_heater_shield_2")],
["tab_shield_heater_cav_b", "Knightly Heater Shield", [("tableau_shield_heater_2" ,0)], itp_type_shield|itp_wooden_parry, itcf_carry_kite_shield,
 790, weight(2.5)|hit_points(220)|body_armor(23)|spd_rtng(100)|shield_width(30)|shield_height(50), imodbits_shield, init_heraldic_item("tableau_heater_shield_2")],
["tab_shield_pavise_b", "Plain Board Shield", [("tableau_shield_pavise_2" ,0)], itp_type_shield|itp_cant_use_on_horseback|itp_wooden_parry, itcf_carry_board_shield,
 414, weight(4)|hit_points(360)|body_armor(8)|spd_rtng(85)|shield_width(43)|shield_height(100), imodbits_shield, init_heraldic_item("tableau_pavise_shield_2")],
["tab_shield_pavise_c", "Board Shield", [("tableau_shield_pavise_1" ,0)], itp_type_shield|itp_cant_use_on_horseback|itp_wooden_parry, itcf_carry_board_shield,
 610, weight(4.5)|hit_points(430)|body_armor(10)|spd_rtng(81)|shield_width(43)|shield_height(100), imodbits_shield, init_heraldic_item("tableau_pavise_shield_1")],
["tab_shield_pavise_d", "Heavy Board Shield", [("tableau_shield_pavise_1" ,0)], itp_type_shield|itp_cant_use_on_horseback|itp_wooden_parry, itcf_carry_board_shield,
 870, weight(5)|hit_points(550)|body_armor(14)|spd_rtng(78)|shield_width(43)|shield_height(100), imodbits_shield, init_heraldic_item("tableau_pavise_shield_1")],
["tab_shield_small_round_a", "Plain Cavalry Shield", [("tableau_shield_small_round_3",0)], itp_type_shield|itp_wooden_parry, itcf_carry_round_shield,
 396, weight(2)|hit_points(160)|body_armor(8)|spd_rtng(105)|shield_width(40), imodbits_shield, init_heraldic_item("tableau_small_round_shield_3")],
["tab_shield_small_round_b", "Round Cavalry Shield", [("tableau_shield_small_round_1",0)], itp_type_shield|itp_wooden_parry, itcf_carry_round_shield,
 595, weight(2.5)|hit_points(200)|body_armor(14)|spd_rtng(103)|shield_width(40), imodbits_shield, init_heraldic_item("tableau_small_round_shield_1")],
["tab_shield_small_round_c", "Elite Cavalry Shield", [("tableau_shield_small_round_2",0)], itp_type_shield, itcf_carry_round_shield,
 870, weight(3)|hit_points(250)|body_armor(22)|spd_rtng(100)|shield_width(40), imodbits_shield, init_heraldic_item("tableau_small_round_shield_2")],
["hide_covered_round_shield", "Hide Covered Round Shield", [("shield_round_f",0)], itp_type_shield|itp_wooden_parry, itcf_carry_round_shield,
 140, weight(3.5)|hit_points(260)|body_armor(3)|spd_rtng(100)|shield_width(40), imodbits_shield],
["hide_covered_kite_shield",  "Hide Covered Kite Shield", [("shield_kite_m",0)], itp_type_shield|itp_wooden_parry, itcf_carry_kite_shield,
 327, weight(5.5)|hit_points(600)|body_armor(1)|spd_rtng(76)|shield_width(38)|shield_height(71), imodbits_shield],
["steel_shield", "Steel Shield", [("shield_dragon", 0)], itp_type_shield, itcf_carry_round_shield,
 2120, weight(4)|hit_points(700)|body_armor(17)|spd_rtng(61)|shield_width(40), imodbits_shield],

["sumpter_horse", "Sumpter Horse", [("sumpter_horse",0)], itp_type_horse, 0,
 504, hit_points(100)|body_armor(14)|difficulty(1)|horse_speed(37)|horse_maneuver(39)|horse_charge(9)|horse_scale(100), imodbits_none],
["cart_horse", "Cart Horse", [("sumpter_horse",0)], itp_type_horse, 0,
 1520, hit_points(150)|body_armor(10)|difficulty(1)|horse_speed(35)|horse_maneuver(20)|horse_charge(20)|horse_scale(115), imodbits_none],
["saddle_horse", "Saddle Horse", [("saddle_horse",0)], itp_type_horse, 0,
 1208, hit_points(100)|body_armor(8)|difficulty(1)|horse_speed(43)|horse_maneuver(44)|horse_charge(10)|horse_scale(104),imodbits_none],
["steppe_horse", "Steppe Horse", [("steppe_horse",0)], itp_type_horse, 0,
 1455, hit_points(120)|body_armor(10)|difficulty(2)|horse_speed(40)|horse_maneuver(51)|horse_charge(8)|horse_scale(98), imodbits_none],
["arabian_horse_a", "Desert Horse", [("arabian_horse_a",0)], itp_type_horse, 0,
 1760, hit_points(110)|body_armor(10)|difficulty(2)|horse_speed(42)|horse_maneuver(50)|horse_charge(12)|horse_scale(100), imodbits_none],
["arabian_horse_b", "Silver Horse", [("arabian_horse_b",0)], itp_type_horse, 0,
 2090, hit_points(120)|body_armor(10)|difficulty(3)|horse_speed(43)|horse_maneuver(54)|horse_charge(16)|horse_scale(100), imodbits_none],
["courser", "Courser", [("courser",0)], itp_type_horse, 0,
 3670, hit_points(110)|body_armor(12)|difficulty(3)|horse_speed(50)|horse_maneuver(44)|horse_charge(12)|horse_scale(106), imodbits_none],
["hunter", "Hunter", [("hunting_horse",0)], itp_type_horse, 0,
 4303, hit_points(160)|body_armor(18)|difficulty(3)|horse_speed(46)|horse_maneuver(44)|horse_charge(24)|horse_scale(108), imodbits_none],
["warhorse", "War Horse", [("warhorse_chain",0)], itp_type_horse, 0,
 5400, hit_points(165)|body_armor(40)|difficulty(4)|horse_speed(44)|horse_maneuver(41)|horse_charge(28)|horse_scale(110), imodbits_none],
["warhorse_steppe","Steppe War Horse", [("warhorse_steppe",0)], itp_type_horse, 0,
 5670, hit_points(150)|body_armor(40)|difficulty(4)|horse_speed(40)|horse_maneuver(50)|horse_charge(28)|horse_scale(112), imodbits_none],
["warhorse_sarranid", "Barded War Horse", [("warhorse_sarranid",0)], itp_type_horse, 0,
 8711, hit_points(165)|body_armor(58)|difficulty(4)|horse_speed(43)|horse_maneuver(44)|horse_charge(32)|horse_scale(112), imodbits_none],
["charger", "Charger", [("charger_new",0)], itp_type_horse, 0,
 8640, hit_points(165)|body_armor(58)|difficulty(4)|horse_speed(43)|horse_maneuver(44)|horse_charge(32)|horse_scale(112), imodbits_none],
["plated_charger", "Plated Charger", [("plated_charger",0)], itp_type_horse, 0,
 10340, hit_points(180)|body_armor(65)|difficulty(4)|horse_speed(40)|horse_maneuver(45)|horse_charge(40)|horse_scale(112), imodbits_none],

["deer", "Deer", [("pw_deer",0)], itp_type_horse, 0,
 1232, hit_points(60)|body_armor(5)|difficulty(11)|horse_speed(55)|horse_maneuver(75)|horse_charge(30)|horse_scale(100), imodbits_none,
 itm_herd_animal(child_item="itm_fawn", grow_age=10, max_in_herd=10, attack_reaction=animal_reaction_flee, meat=7, hide=5, wildness=5)],
["fawn", "Fawn", [("pw_deer",0)], itp_type_horse, 0,
 426, hit_points(25)|body_armor(2)|difficulty(11)|horse_speed(45)|horse_maneuver(70)|horse_charge(5)|horse_scale(60), imodbits_none],
["boar", "Boar", [("pw_boar",0)], itp_type_horse, 0,
 859, hit_points(70)|body_armor(20)|difficulty(11)|horse_speed(40)|horse_maneuver(70)|horse_charge(250)|horse_scale(70), imodbits_none,
 itm_herd_animal(child_item="itm_boarlet", grow_age=7, max_in_herd=20, attack_reaction=animal_reaction_charge, meat=8, hide=3, wildness=3)],
["boarlet", "Boarlet", [("pw_boar",0)], itp_type_horse, 0,
 315, hit_points(30)|body_armor(10)|difficulty(11)|horse_speed(30)|horse_maneuver(65)|horse_charge(10)|horse_scale(40), imodbits_none],
["cow", "Cow", [("pw_cow",0)], itp_type_horse, 0,
 1718, hit_points(85)|body_armor(15)|difficulty(11)|horse_speed(35)|horse_maneuver(65)|horse_charge(100)|horse_scale(100), imodbits_none,
 itm_herd_animal(child_item="itm_calf", grow_age=12, max_in_herd=16, attack_reaction=animal_reaction_flee, meat=15, hide=8, wildness=1)],
["calf", "Calf", [("pw_cow",0)], itp_type_horse, 0,
 723, hit_points(45)|body_armor(8)|difficulty(11)|horse_speed(37)|horse_maneuver(60)|horse_charge(30)|horse_scale(60), imodbits_none],

["stick", "Stick", [("wooden_stick",0),("pw_stick_carry",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_scimitar|itcf_carry_quiver_back,
 53, weight(3)|spd_rtng(90)|swing_damage(5,blunt)|weapon_length(63), imodbits_none, [itm_class(item_class_wood, 200)]],
["stick_melee", "Stick", [("wooden_stick",0),("pw_stick_carry",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_scimitar|itcf_carry_quiver_back,
 53, weight(3)|spd_rtng(90)|swing_damage(5,blunt)|weapon_length(63), imodbits_none, [itm_class(item_class_wood, 200)]],
["branch", "Branch", [("pw_branch_a",0),("pw_branch_b",imodbit_heavy),("pw_branch_c",imodbit_battered)], itp_type_polearm|itp_primary|itp_two_handed|itp_cant_use_on_horseback, itcf_thrust_polearm|itcf_overswing_polearm|itcf_carry_spear,
 124, weight(25)|spd_rtng(30)|weapon_length(250)|swing_damage(20,blunt)|thrust_damage(10,blunt), imodbit_cracked|imodbit_bent, [itm_class(item_class_wood, 1000)]],
["wood_pole_short", "Short Wooden Pole", [("pw_wood_pole_short",0)], itp_type_polearm|itp_primary|itp_two_handed|itp_cant_use_on_horseback, itc_poleaxe|itcf_carry_spear,
 108, weight(7)|spd_rtng(75)|weapon_length(92)|swing_damage(15,blunt)|thrust_damage(10,blunt), imodbits_none, [itm_class(item_class_wood, 400)]],
["wood_pole", "Wooden Pole", [("pw_wood_pole",0)], itp_type_polearm|itp_primary|itp_two_handed|itp_cant_use_on_horseback, itcf_thrust_polearm|itcf_overswing_polearm|itc_parry_polearm|itcf_carry_spear,
 221, weight(15)|spd_rtng(70)|weapon_length(150)|swing_damage(20,blunt)|thrust_damage(10,blunt), imodbits_none, [itm_class(item_class_wood, 800)]],
["wood_block", "Wood Block", [("pw_wood_block_a",0),("pw_wood_block_b",imodbit_heavy),("pw_wood_block_c",imodbit_battered)], itp_type_polearm|itp_two_handed|itp_primary, itcf_thrust_onehanded|itcf_carry_bow_back,
 142, weight(30)|spd_rtng(50)|weapon_length(32)|swing_damage(5,blunt)|thrust_damage(5,blunt), imodbits_none, [itm_class(item_class_wood, 1600)]],
["board", "Board", [("pw_board",0)], itp_type_one_handed_wpn|itp_primary, itc_dagger|itcf_carry_axe_back,
 210, weight(10)|spd_rtng(60)|weapon_length(50)|swing_damage(10,blunt)|thrust_damage(10,blunt), imodbits_none, [itm_class(item_class_wood, 400)]],
["iron_ore_small", "Small Iron Ore", [("pw_iron_ore_small",0)], itp_type_polearm|itp_two_handed|itp_primary, itcf_carry_bow_back,
 400, weight(30)|spd_rtng(60)|swing_damage(7,blunt)|thrust_damage(7,blunt)|weapon_length(50), imodbits_none, [itm_class(item_class_iron, 0)]],
["iron_ore", "Iron Ore", [("pw_iron_ore",0)], itp_type_polearm|itp_two_handed|itp_primary, itcf_carry_bow_back,
 850, weight(60)|spd_rtng(50)|swing_damage(10,blunt)|thrust_damage(10,blunt)|weapon_length(50), imodbits_none, [itm_class(item_class_iron, 0)]],
["iron_piece", "Iron Piece", [("pw_iron_piece",0)], itp_type_one_handed_wpn|itp_primary, itc_dagger|itcf_carry_bow_back,
 100, weight(5)|spd_rtng(80)|swing_damage(5,blunt)|thrust_damage(5,blunt)|weapon_length(20), imodbits_none, [itm_class(item_class_iron, 325)]],
["iron_bar_short", "Short Iron Bar", [("pw_iron_bar_short",0)], itp_type_one_handed_wpn|itp_primary, itc_dagger|itcf_carry_bow_back,
 220, weight(10)|spd_rtng(70)|swing_damage(10,blunt)|thrust_damage(10,blunt)|weapon_length(25), imodbits_none, [itm_class(item_class_iron, 750)]],
["iron_bar", "Iron Bar", [("pw_iron_bar",0)], itp_type_one_handed_wpn|itp_primary, itc_scimitar|itcf_carry_bow_back,
 450, weight(20)|spd_rtng(60)|swing_damage(15,blunt)|thrust_damage(10,blunt)|weapon_length(60), imodbits_none, [itm_class(item_class_iron, 1500)]],
["iron_bar_long", "Long Iron Bar", [("pw_iron_bar_long",0)], itp_type_polearm|itp_two_handed|itp_primary, itc_parry_polearm|itcf_carry_bow_back,
 1000, weight(40)|spd_rtng(50)|swing_damage(20,blunt)|thrust_damage(10,blunt)|weapon_length(100), imodbits_none, [itm_class(item_class_iron, 3000)]],
["gold_nugget", "Gold Nugget", [("pw_gold_nugget",0)], itp_type_one_handed_wpn|itp_primary, itc_dagger|itcf_carry_pistol_front_left,
 11000, weight(10)|spd_rtng(70)|swing_damage(5,blunt)|thrust_damage(5,blunt)|weapon_length(20), imodbits_none, [itm_class(item_class_precious, 0)]],
["gold_bar", "Gold Bar", [("pw_gold_bar",0)], itp_type_one_handed_wpn|itp_primary, itc_dagger|itcf_carry_revolver_right,
 70000, weight(30)|spd_rtng(60)|swing_damage(10,blunt)|thrust_damage(10,blunt)|weapon_length(20), imodbits_none, [itm_class(item_class_precious, 0)]],
["silver_nugget", "Silver Nugget", [("pw_silver_nugget",0)], itp_type_one_handed_wpn|itp_primary, itc_dagger|itcf_carry_pistol_front_left,
 6000, weight(7)|spd_rtng(70)|swing_damage(5,blunt)|thrust_damage(5,blunt)|weapon_length(20), imodbits_none, [itm_class(item_class_precious, 0)]],
["silver_bar", "Silver Bar", [("pw_silver_bar",0)], itp_type_one_handed_wpn|itp_primary, itc_dagger|itcf_carry_revolver_right,
 40000, weight(15)|spd_rtng(60)|swing_damage(8,blunt)|thrust_damage(8,blunt)|weapon_length(20), imodbits_none, [itm_class(item_class_precious, 0)]],
["flax_bundle", "Flax Bundle", [("pw_flax_bundle",0)], itp_type_one_handed_wpn|itp_two_handed|itp_primary|itp_no_parry, itcf_carry_bow_back,
 50, weight(4)|spd_rtng(20)|weapon_length(45), imodbits_none, [itm_class(item_class_cloth, 0)]],
["linen_thread", "Linen Thread", [("pw_linen_thread",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_dagger_front_right,
 91, weight(2)|spd_rtng(90)|weapon_length(45), imodbits_none, [itm_class(item_class_cloth, 0)]],
["linen_cloth", "Linen Cloth", [("pw_linen_cloth",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_axe_back,
 220, weight(5)|spd_rtng(60)|weapon_length(80), imodbits_none, [itm_class(item_class_cloth, 400)]],
["linen_cloth_small", "Small Linen Cloth", [("pw_linen_cloth_small",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_axe_back,
 55, weight(1)|spd_rtng(70)|weapon_length(60), imodbits_none, [itm_class(item_class_cloth, 100)]],
["raw_hide", "Raw Hide", [("pw_raw_hide",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itcf_carry_axe_back,
 257, weight(15)|spd_rtng(20)|weapon_length(60), imodbits_none, [itm_class(item_class_leather, 0)]],
["leather_roll", "Leather Roll", [("pw_leather_roll",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_bow_back,
 354, weight(5)|spd_rtng(20)|weapon_length(50)|swing_damage(4,blunt)|thrust_damage(4,blunt), imodbits_none, [itm_class(item_class_leather, 400)]],
["leather_piece", "Leather Piece", [("pw_leather_piece",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_axe_back,
 87, weight(1)|spd_rtng(20)|weapon_length(50)|swing_damage(2,blunt)|thrust_damage(2,blunt), imodbits_none, [itm_class(item_class_leather, 100)]],
["saddle", "Saddle", [("pw_saddle",0)], itp_type_polearm|itp_two_handed|itp_primary|itp_no_parry, itcf_carry_axe_back,
 745, weight(30)|weapon_length(100), imodbits_none],
["horse_armor", "Horse Armor", [("pw_horse_armor",0)], itp_type_polearm|itp_two_handed|itp_primary|itp_no_parry, itcf_carry_axe_back,
 2103, weight(50)|weapon_length(120), imodbits_none],

["hatchet", "Hatchet", [("pw_hatchet",0)], itp_type_one_handed_wpn|itp_primary|itp_wooden_parry, itc_scimitar|itcf_carry_axe_left_hip,
 40, weight(3)|spd_rtng(75)|weapon_length(50)|swing_damage(10,cut)|thrust_damage(0,pierce), imodbits_none, [itm_class(item_class_wood_cutting)]],
["small_mining_pick", "Small Mining Pick", [("pw_small_mining_pick",0),("pw_small_mining_pick_inv",ixmesh_inventory)], itp_type_one_handed_wpn|itp_primary|itp_unbalanced|itp_wooden_parry, itc_parry_polearm|itcf_overswing_polearm|itcf_carry_axe_back,
 193, weight(3)|spd_rtng(70)|weapon_length(70)|swing_damage(15,pierce)|thrust_damage(0,pierce), imodbits_none, [itm_class(item_class_mining)]],
["woodcutter_axe", "Woodcutter's Axe", [("pw_wood_axe",0)], itp_type_two_handed_wpn|itp_two_handed|itp_bonus_against_shield|itp_primary|itp_wooden_parry|itp_unbalanced|itp_cant_use_on_horseback, itc_nodachi|itcf_carry_axe_back,
 245, weight(4)|spd_rtng(80)|weapon_length(72)|swing_damage(20,cut)|thrust_damage(0,pierce), imodbits_none, [itm_class(item_class_wood_cutting)]],
["mining_pick", "Mining Pick", [("pw_mining_pick",0),("pw_mining_pick_inv",ixmesh_inventory)], itp_type_polearm|itp_two_handed|itp_primary|itp_unbalanced|itp_cant_use_on_horseback, itc_parry_polearm|itcf_overswing_polearm|itcf_carry_axe_back,
 423, weight(5)|spd_rtng(70)|weapon_length(93)|swing_damage(30,pierce)|thrust_damage(0,pierce), imodbits_none, [itm_class(item_class_mining)]],
["repair_hammer", "Repair Hammer", [("pw_repair_hammer",0)], itp_type_one_handed_wpn|itp_primary|itp_wooden_parry, itc_scimitar|itcf_carry_bow_back,
 634, weight(3)|spd_rtng(92)|weapon_length(65)|swing_damage(5,blunt)|thrust_damage(0,pierce), imodbits_none, [itm_class(item_class_repair)]],
["lock_pick", "Lock Pick", [("pw_lock_pick",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger,
 1260, weight(0.25)|spd_rtng(100)|weapon_length(23)|swing_damage(1,blunt)|thrust_damage(5,pierce), imodbits_none, [itm_class(item_class_lock_pick)]],
["admin_lock_pick", "Admin Lock Pick", [("pw_lock_pick",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger,
 0, weight(0.25)|difficulty(30)|spd_rtng(100)|weapon_length(23)|swing_damage(20,blunt)|thrust_damage(25,pierce), imodbits_none, [itm_class(item_class_lock_pick)]],
["bucket", "Bucket", [("pw_bucket",0),("pw_bucket_ground",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itcf_slashright_onehanded,
 240, weight(5)|spd_rtng(70)|weapon_length(100)|swing_damage(5,blunt), imodbits_none, [(ti_on_weapon_attack, [(store_trigger_param_1, ":agent_id"), (call_script, "script_cf_use_bucket", ":agent_id")])]],
["water_bucket", "Water Bucket", [("pw_bucket_water",0),("pw_bucket_water_ground",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itcf_slashright_onehanded,
 250, weight(40)|spd_rtng(50)|weapon_length(100)|swing_damage(10,blunt), imodbits_none],
["fishing_spear", "Fishing Spear", [("pw_fishing_spear",0)], itp_type_polearm|itp_primary|itp_two_handed|itp_cant_use_on_horseback|itp_wooden_parry, itc_spear|itcf_carry_spear,
 340, weight(2.25)|spd_rtng(55)|weapon_length(183)|swing_damage(0, cut)|thrust_damage(10, pierce), imodbits_none,
 [(ti_on_weapon_attack, [(position_move_y, pos1, 270), (store_trigger_param_1, ":agent_id"), (call_script, "script_cf_use_fishing_tool", ":agent_id")])]],
["fishing_net", "Fishing Net", [("pw_fishing_net_b",0),("pw_fishing_net_a",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary|itp_two_handed|itp_cant_use_on_horseback, itcf_slashright_onehanded,
 823, weight(5)|spd_rtng(40)|weapon_length(50)|swing_damage(0, cut)|thrust_damage(0, cut), imodbits_none,
 [(ti_on_weapon_attack, [(position_move_y, pos1, -50), (position_move_z, pos1, -200), (store_trigger_param_1, ":agent_id"), (call_script, "script_cf_use_fishing_tool", ":agent_id")])]],
["blunt_sickle", "Blunt Sickle", [("pw_sickle",0)], itp_type_one_handed_wpn|itp_primary|itp_cant_use_on_horseback|itp_no_parry, itcf_slashright_onehanded|itcf_carry_dagger_front_right,
 65, weight(0.75)|difficulty(0)|spd_rtng(75)|weapon_length(100)|swing_damage(6, cut)|thrust_damage(0, cut), imodbits_none, [itm_class(item_class_grain_harvesting)]],
["sickle", "Sickle", [("pw_sickle",0)], itp_type_one_handed_wpn|itp_primary|itp_cant_use_on_horseback|itp_no_parry, itcf_slashright_onehanded|itcf_carry_dagger_front_right,
 136, weight(0.5)|difficulty(0)|spd_rtng(80)|weapon_length(100)|swing_damage(10, cut)|thrust_damage(0, cut), imodbits_none, [itm_class(item_class_grain_harvesting)]],
["scythe", "Scythe", [("pw_scythe",0)], itp_type_polearm|itp_two_handed|itp_primary|itp_no_parry|itp_unbalanced|itp_cant_use_on_horseback, itcf_slashleft_polearm|itcf_carry_spear,
 549, weight(2)|difficulty(0)|spd_rtng(70)|weapon_length(160)|swing_damage(25, cut)|thrust_damage(0, cut), imodbits_polearm, [itm_class(item_class_grain_harvesting)]],
["kitchen_knife", "Kitchen Knife", [("pw_kitchen_knife",0)], itp_type_one_handed_wpn|itp_primary|itp_secondary|itp_no_parry, itc_dagger|itcf_carry_dagger_front_right,
 68, weight(0.25)|difficulty(0)|spd_rtng(100)|weapon_length(40)|swing_damage(10, cut)|thrust_damage(6, pierce), imodbits_sword, [itm_class(item_class_knife)]],
["cleaver", "Butchering Cleaver", [("cleaver_new",0)], itp_type_one_handed_wpn|itp_primary|itp_secondary|itp_no_parry, itc_cleaver|itcf_carry_dagger_front_right,
 247, weight(1.5)|difficulty(0)|spd_rtng(103)|weapon_length(48)|swing_damage(26, cut)|thrust_damage(0, pierce), imodbits_sword, [itm_class(item_class_knife), itm_butchering_knife()]],
["knife", "Knife", [("peasant_knife_new",0)], itp_type_one_handed_wpn|itp_primary|itp_secondary|itp_no_parry, itc_dagger|itcf_carry_dagger_front_right,
 306, weight(0.5)|difficulty(0)|spd_rtng(110)|weapon_length(55)|swing_damage(21, cut)|thrust_damage(13, pierce), imodbits_sword, [itm_class(item_class_knife)]],
["butchering_knife", "Butchering Knife", [("khyber_knife_new",0)], itp_type_one_handed_wpn|itp_primary|itp_secondary|itp_no_parry, itc_dagger|itcf_carry_dagger_front_left,
 473, weight(0.75)|difficulty(0)|spd_rtng(108)|weapon_length(70)|swing_damage(24, cut)|thrust_damage(17, pierce), imodbits_sword, [itm_class(item_class_knife), itm_butchering_knife()]],
["broom", "Broom", [("pw_broom",0),("pw_broom_inv",ixmesh_inventory)], itp_type_polearm|itp_primary|itp_two_handed|itp_cant_use_on_horseback|itp_no_parry, itc_staff|itcf_carry_spear,
 39, weight(2.5)|difficulty(0)|spd_rtng(60)|weapon_length(130)|swing_damage(3, blunt)|thrust_damage(1, blunt), imodbits_none],
["herding_crook", "Herding Crook", [("pw_herding_crook",0)], itp_type_two_handed_wpn|itp_two_handed|itp_primary|itp_wooden_parry|itp_wooden_attack|itp_unbalanced|itp_cant_use_on_horseback|itp_next_item_as_melee, itc_nodachi|itcf_carry_axe_back,
 120, weight(1.5)|difficulty(0)|spd_rtng(70)|weapon_length(108)|swing_damage(10, blunt), imodbits_polearm, [itm_class(item_class_herding_rouse)]],
["herding_crook_alt", "Herding Crook", [("pw_herding_crook",0)], itp_type_polearm|itp_two_handed|itp_primary|itp_wooden_parry|itp_wooden_attack|itp_unbalanced|itp_cant_use_on_horseback, itc_staff|itcf_carry_axe_back,
 120, weight(1.5)|difficulty(0)|spd_rtng(60)|weapon_length(108)|swing_damage(10, blunt)|thrust_damage(9, blunt), imodbits_polearm, [itm_class(item_class_herding_calm)]],

["fish", "Fish", [("pw_fish",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_dagger_front_right,
 68, weight(1)|spd_rtng(72)|weapon_length(45)|swing_damage(2,cut), imodbits_none, [itm_class(item_class_food, 6)]],
["cooked_fish", "Cooked Fish", [("pw_fish_cooked",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_dagger_front_right,
 114, weight(1)|spd_rtng(70)|weapon_length(45)|swing_damage(1,cut), imodbits_none, [itm_class(item_class_food, 40)]],
["salted_fish", "Salted Fish", [("pw_fish",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_dagger_front_right,
 140, weight(1)|spd_rtng(70)|weapon_length(45)|swing_damage(1,cut), imodbits_none, [itm_class(item_class_food, 20)]],
["wheat_sack", "Wheat Sack", [("pw_throwing_wheat",0),("pw_thrown_wheat",ixmesh_flying_ammo),("pw_wheat_sack",ixmesh_carry),("pw_wheat_sack",ixmesh_inventory)], itp_type_thrown|itp_primary|itp_cant_use_on_horseback, itcf_throw_stone|itcf_carry_quiver_right_vertical|itcf_show_holster_when_drawn,
 75, weight(0.25)|spd_rtng(90)|weapon_length(20)|shoot_speed(10)|max_ammo(10), imodbits_none, [itm_throw_wheat_trigger()]],
["wheat_sheaf", "Wheat Sheaf", [("pw_wheat_sheaf",0)], itp_type_one_handed_wpn|itp_two_handed|itp_primary|itp_no_parry, itcf_slashleft_onehanded|itcf_slashright_onehanded|itcf_carry_bow_back,
 80, weight(3)|spd_rtng(60)|weapon_length(45)|swing_damage(7,blunt), imodbits_none, [itm_class(item_class_food, 0)]],
["flour_sack", "Flour Sack", [("pw_flour_sack",0),("pw_flour_sack_carry",ixmesh_carry)], itp_type_polearm|itp_two_handed|itp_primary|itp_cant_use_on_horseback|itp_no_parry, itcf_carry_quiver_back,
 324, weight(25)|weapon_length(100), imodbits_none, [itm_class(item_class_food, 0)]],
["bread", "Bread", [("pw_bread_a",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_bowcase_left,
 136, weight(1)|spd_rtng(65)|weapon_length(20)|swing_damage(1,cut), imodbits_none, [itm_class(item_class_food, 50)]],
["beer_cask", "Beer Cask", [("pw_beer_cask",0),("pw_beer_cask_carry",ixmesh_carry)], itp_type_polearm|itp_two_handed|itp_primary|itp_cant_use_on_horseback|itp_no_parry, itcf_carry_bow_back,
 360, weight(18)|spd_rtng(20)|weapon_length(100), imodbits_none, [itm_class(item_class_food, 112)]],
["beer_jug", "Beer Jug", [("pw_beer_jug",0)], itp_type_one_handed_wpn|itp_two_handed|itp_primary|itp_no_parry, itc_dagger|itcf_carry_bowcase_left,
 90, weight(3)|spd_rtng(70)|weapon_length(40)|swing_damage(4,cut), imodbits_none, [itm_class(item_class_food, 28)]],
["grapes", "Grapes", [("pw_grape_bunch",0),("pw_grape_a",imodbit_old),("pw_grape_b",imodbit_fine)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_dagger_front_right,
 34, weight(0.25)|spd_rtng(90)|weapon_length(25)|swing_damage(0,cut), imodbits_none, [itm_class(item_class_food, 4)]],
["must_barrel", "Must Barrel", [("pw_must_barrel",0),("pw_must_barrel_carry",ixmesh_carry)], itp_type_polearm|itp_two_handed|itp_primary|itp_cant_use_on_horseback|itp_no_parry, itcf_carry_bow_back,
 160, weight(3)|spd_rtng(20)|weapon_length(100), imodbits_none, [itm_class(item_class_food, 44)]],
["wine_barrel", "Wine Barrel", [("pw_wine_barrel",0),("pw_wine_barrel_carry",ixmesh_carry)], itp_type_polearm|itp_two_handed|itp_primary|itp_cant_use_on_horseback|itp_no_parry, itcf_carry_bow_back,
 816, weight(20)|spd_rtng(20)|weapon_length(100), imodbits_none, [itm_class(item_class_food, 144)]],
["wine_jar", "Wine Jar", [("pw_wine_jar",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_bowcase_left,
 204, weight(5)|spd_rtng(65)|weapon_length(50)|swing_damage(4,cut), imodbits_none, [itm_class(item_class_food, 36)]],
["raw_meat", "Raw Meat", [("pw_meat_raw",0)], itp_type_polearm|itp_two_handed|itp_cant_use_on_horseback|itp_primary, itc_dagger|itcf_carry_bow_back,
 112, weight(25)|spd_rtng(65)|weapon_length(53)|swing_damage(10,blunt), imodbits_none, [itm_class(item_class_food, 10)]],
["cooked_meat", "Cooked Meat", [("pw_meat_cooked",0)], itp_type_polearm|itp_two_handed|itp_cant_use_on_horseback|itp_primary, itc_dagger|itcf_carry_bow_back,
 316, weight(25)|spd_rtng(60)|weapon_length(53)|swing_damage(8,blunt), imodbits_none, [itm_class(item_class_food, 65)]],
["salted_meat", "Salted Meat", [("pw_meat_salted",0)], itp_type_polearm|itp_two_handed|itp_cant_use_on_horseback|itp_primary, itc_dagger|itcf_carry_bow_back,
 386, weight(25)|spd_rtng(60)|weapon_length(53)|swing_damage(8,blunt), imodbits_none, [itm_class(item_class_food, 40)]],
["meat_pie", "Meat Pie", [("pw_meat_pie",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_bowcase_left,
 280, weight(4)|spd_rtng(65)|weapon_length(20)|swing_damage(1,cut), imodbits_none, [itm_class(item_class_food, 75)]],
["red_apple", "Red Apple", [("pw_apple_red",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_quiver_right_vertical,
 20, weight(0.25)|spd_rtng(90)|weapon_length(25)|swing_damage(0,cut), imodbits_none, [itm_class(item_class_food, 8)]],
["apple_pie", "Apple Pie", [("pw_apple_pie",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_bowcase_left,
 190, weight(4)|spd_rtng(65)|weapon_length(20)|swing_damage(1,cut), imodbits_none, [itm_class(item_class_food, 57)]],
["carrot", "Carrot", [("pw_carrot",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_dagger_front_right,
 30, weight(0.25)|spd_rtng(90)|weapon_length(25)|swing_damage(0,cut), imodbits_none, [itm_class(item_class_food, 8)]],
["salt_sack", "Salt Sack", [("pw_salt_sack",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_quiver_right_vertical,
 800, weight(2.0)|spd_rtng(60)|swing_damage(5,blunt)|thrust_damage(5,blunt)|weapon_length(20), imodbits_none, [itm_class(item_class_food, 0)]],
["salt", "Salt", [("pw_salt",0)], itp_type_one_handed_wpn|itp_primary, itc_dagger,
 100, weight(0.25)|spd_rtng(70)|swing_damage(5,blunt)|thrust_damage(5,blunt)|weapon_length(20), imodbits_none, [itm_class(item_class_food, 0)]],

["surgeon_scalpel", "Surgeon's Scalpel", [("dagger_b",0),("dagger_b_scabbard",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itcf_thrust_onehanded|itcf_carry_dagger_front_left|itcf_show_holster_when_drawn,
 730, weight(0.75)|difficulty(0)|spd_rtng(50)|weapon_length(36)|thrust_damage(15, pierce), imodbits_sword],
["admin_scalpel", "Admin Scalpel", [("dagger_b",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itcf_thrust_onehanded,
 0, weight(0.75)|difficulty(30)|spd_rtng(100)|weapon_length(50)|thrust_damage(15, pierce), imodbits_sword],
["healing_herb", "Herb", [("pw_herb_a",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itcf_thrust_onehanded|itcf_carry_dagger_front_left,
 240, weight(0.25)|difficulty(0)|spd_rtng(50)|weapon_length(40)|thrust_damage(1, cut), imodbits_none],
["poison_herb", "Herb", [("pw_herb_b",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itcf_thrust_onehanded|itcf_carry_dagger_front_left,
 325, weight(0.25)|difficulty(0)|spd_rtng(50)|weapon_length(40)|thrust_damage(1, cut), imodbits_none],

["dagger", "Dagger", [("dagger",0),("scab_dagger",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_dagger_front_left|itcf_show_holster_when_drawn,
 533, weight(0.75)|difficulty(0)|spd_rtng(105)|weapon_length(47)|swing_damage(18,cut)|thrust_damage(24,pierce), imodbits_sword],
["poisoned_dagger", "Poisoned Dagger", [("pw_dagger_poison",0),("scab_dagger",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_dagger_front_left|itcf_show_holster_when_drawn,
 1570, weight(0.75)|difficulty(0)|spd_rtng(105)|weapon_length(47)|swing_damage(18,cut)|thrust_damage(24,pierce), imodbits_sword],
["thin_lance", "Thin Lance", [("spear_d_2-8m",0)], itp_couchable|itp_type_polearm|itp_offset_lance|itp_primary|itp_penalty_with_shield|itp_wooden_parry, itc_spear|itcf_carry_spear,
 230, weight(3.0)|difficulty(14)|spd_rtng(80)|weapon_length(180)|swing_damage(16, blunt)|thrust_damage(26, pierce), imodbits_polearm],
["broken_lance", "Broken Lance", [("pw_broken_lance",0)], itp_type_polearm|itp_no_pick_up_from_ground, 0,
 0, weight(3.0)|difficulty(14)|spd_rtng(0)|weapon_length(180)|swing_damage(0, blunt)|thrust_damage(0, blunt), imodbits_polearm],

["money_bag", "Money Bag", [("pw_money_bag_hold",0),("pw_money_bag",ixmesh_carry),("pw_money_bag_inv",ixmesh_inventory)], itp_type_one_handed_wpn|itp_primary, itcf_carry_quiver_front_right|itcf_thrust_onehanded,
 0, weight(1)|spd_rtng(80), imodbits_none, [(ti_on_weapon_attack, [(store_trigger_param_1, ":agent_id"), (call_script, "script_cf_use_money_bag_item", ":agent_id")])]],

["torch", "Torch", [("pw_torch", 0),("pw_torch",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_scimitar|itcf_carry_spear,
 50, weight(2.5)|difficulty(0)|spd_rtng(95)|weapon_length(95)|swing_damage(5,blunt)|thrust_damage(0,pierce), imodbits_none,
 [(ti_on_init_item,
   [(set_position_delta, 0, 60, 0),
    (particle_system_add_new, "psys_torch_fire"),
    (particle_system_add_new, "psys_torch_smoke"),
    (set_current_color,150, 130, 70),
    (add_point_light, 10, 30),
    ])
  ]],

["book_a", "Book of Clothing", [("pw_book_a",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_scimitar|itcf_carry_revolver_right,
 3203, weight(2)|spd_rtng(80)|weapon_length(50), imodbits_none, [itm_read_book_trigger("str_book_of_clothing")]],
["book_b", "Book of Weapons", [("pw_book_b",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_scimitar|itcf_carry_revolver_right,
 7324, weight(2)|spd_rtng(80)|weapon_length(50), imodbits_none, [itm_read_book_trigger("str_book_of_weapons")]],
["book_c", "Book of Armor", [("pw_book_c",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_scimitar|itcf_carry_revolver_right,
 12030, weight(2)|spd_rtng(80)|weapon_length(50), imodbits_none, [itm_read_book_trigger("str_book_of_armor")]],
["book_d", "Book of Healing", [("pw_book_d",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_scimitar|itcf_carry_revolver_right,
 1076, weight(2.5)|spd_rtng(80)|weapon_length(50), imodbits_none, [itm_read_book_trigger("str_book_of_healing")]],
["book_e", "Book", [("pw_book_e",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_scimitar|itcf_carry_revolver_right,
 20634, weight(2.25)|spd_rtng(80)|weapon_length(50), imodbits_none],
["book_f", "Sacred Book", [("pw_book_f",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry|itp_next_item_as_melee, itcf_slashright_onehanded|itcf_carry_revolver_right,
 46400, weight(2)|spd_rtng(80)|weapon_length(50), imodbits_none, [itm_swap_item_trigger(this_item="itm_book_f", other_item="itm_book_f_open")]],
["book_f_open", "Sacred Book", [("pw_book_f_held",0),("pw_book_f_open",ixmesh_carry),("pw_book_f",ixmesh_inventory)], itp_type_two_handed_wpn|itp_two_handed|itp_primary|itp_no_parry, itcf_thrust_onehanded|itcf_carry_revolver_right,
 46400, weight(2)|spd_rtng(80)|weapon_length(50), imodbits_none, [itm_swap_item_trigger(this_item="itm_book_f_open", other_item="itm_book_f")]],

["lyre", "Lyre", [("pw_lyre",0),("pw_lyre_carry",ixmesh_carry)], itp_type_polearm|itp_two_handed|itp_primary|itp_cant_use_on_horseback|itp_no_parry, itcf_carry_axe_back,
 659, weight(1.75)|weapon_length(80), imodbits_none],
["lute", "Lute", [("pw_lute",0),("pw_lute_carry",ixmesh_carry)], itp_type_polearm|itp_two_handed|itp_primary|itp_cant_use_on_horseback|itp_no_parry, itcf_carry_axe_back,
 850, weight(2.5)|weapon_length(85), imodbits_none],
["dart", "Dart", [("pw_dart",0)], itp_type_thrown|itp_primary, itcf_throw_javelin|itcf_carry_quiver_right_vertical,
 35, weight(1)|difficulty(0)|spd_rtng(90)|shoot_speed(21)|thrust_damage(0, blunt)|max_ammo(3)|weapon_length(32), imodbits_thrown],
["die", "Die", [("pw_die",0),("pw_die_inv",ixmesh_inventory)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itcf_carry_pistol_front_left,
 120, weight(0.25)|weapon_length(30), imodbits_none],

itm_faction_banner("a01"),
itm_faction_banner("a02"),
itm_faction_banner("a03"),
itm_faction_banner("a04"),
itm_faction_banner("a05"),
itm_faction_banner("a06"),
itm_faction_banner("a07"),
itm_faction_banner("a08"),
itm_faction_banner("a09"),
itm_faction_banner("a10"),
itm_faction_banner("a11"),
itm_faction_banner("a12"),
itm_faction_banner("a13"),
itm_faction_banner("a14"),
itm_faction_banner("a15"),
itm_faction_banner("a16"),
itm_faction_banner("a17"),
itm_faction_banner("a18"),
itm_faction_banner("a19"),
itm_faction_banner("a20"),
itm_faction_banner("a21"),
itm_faction_banner("b01"),
itm_faction_banner("b02"),
itm_faction_banner("b03"),
itm_faction_banner("b04"),
itm_faction_banner("b05"),
itm_faction_banner("b06"),
itm_faction_banner("b07"),
itm_faction_banner("b08"),
itm_faction_banner("b09"),
itm_faction_banner("b10"),
itm_faction_banner("b11"),
itm_faction_banner("b12"),
itm_faction_banner("b13"),
itm_faction_banner("b14"),
itm_faction_banner("b15"),
itm_faction_banner("b16"),
itm_faction_banner("b17"),
itm_faction_banner("b18"),
itm_faction_banner("b19"),
itm_faction_banner("b20"),
itm_faction_banner("b21"),
itm_faction_banner("c01"),
itm_faction_banner("c02"),
itm_faction_banner("c03"),
itm_faction_banner("c04"),
itm_faction_banner("c05"),
itm_faction_banner("c06"),
itm_faction_banner("c07"),
itm_faction_banner("c08"),
itm_faction_banner("c09"),
itm_faction_banner("c10"),
itm_faction_banner("c11"),
itm_faction_banner("c12"),
itm_faction_banner("c13"),
itm_faction_banner("c14"),
itm_faction_banner("c15"),
itm_faction_banner("c16"),
itm_faction_banner("c17"),
itm_faction_banner("c18"),
itm_faction_banner("c19"),
itm_faction_banner("c20"),
itm_faction_banner("c21"),
itm_faction_banner("d01"),
itm_faction_banner("d02"),
itm_faction_banner("d03"),
itm_faction_banner("d04"),
itm_faction_banner("d05"),
itm_faction_banner("d06"),
itm_faction_banner("d07"),
itm_faction_banner("d08"),
itm_faction_banner("d09"),
itm_faction_banner("d10"),
itm_faction_banner("d11"),
itm_faction_banner("d12"),
itm_faction_banner("d13"),
itm_faction_banner("d14"),
itm_faction_banner("d15"),
itm_faction_banner("d16"),
itm_faction_banner("d17"),
itm_faction_banner("d18"),
itm_faction_banner("d19"),
itm_faction_banner("d20"),
itm_faction_banner("d21"),
itm_faction_banner("e01"),
itm_faction_banner("e02"),
itm_faction_banner("e03"),
itm_faction_banner("e04"),
itm_faction_banner("e05"),
itm_faction_banner("e06"),
itm_faction_banner("e07"),
itm_faction_banner("e08"),
itm_faction_banner("e09"),
itm_faction_banner("e10"),
itm_faction_banner("e11"),
itm_faction_banner("e12"),
itm_faction_banner("e13"),
itm_faction_banner("e14"),
itm_faction_banner("e15"),
itm_faction_banner("e16"),
itm_faction_banner("e17"),
itm_faction_banner("e18"),
itm_faction_banner("e19"),
itm_faction_banner("e20"),
itm_faction_banner("e21"),
itm_faction_banner("f01"),
itm_faction_banner("f02"),
itm_faction_banner("f03"),
itm_faction_banner("f04"),
itm_faction_banner("f05"),
itm_faction_banner("f06"),
itm_faction_banner("f07"),
itm_faction_banner("f08"),
itm_faction_banner("f09"),
itm_faction_banner("f10"),
itm_faction_banner("f11"),
itm_faction_banner("f12"),
itm_faction_banner("f13"),
itm_faction_banner("f14"),
itm_faction_banner("f15"),
itm_faction_banner("f16"),
itm_faction_banner("f17"),
itm_faction_banner("f18"),
itm_faction_banner("f19"),
itm_faction_banner("f20"),
itm_faction_banner("f21"),
itm_faction_banner("g01"),
itm_faction_banner("g02"),
itm_faction_banner("g03"),
itm_faction_banner("g04"),
itm_faction_banner("g05"),
itm_faction_banner("g06"),
itm_faction_banner("g07"),
itm_faction_banner("g08"),
itm_faction_banner("g09"),
itm_faction_banner("g10"),
itm_faction_banner("g11"),
itm_faction_banner("g12"),
itm_faction_banner("g13"),
itm_faction_banner("g14"),
itm_faction_banner("g15"),
itm_faction_banner("g16"),
itm_faction_banner("g17"),
itm_faction_banner("g18"),
itm_faction_banner("g19"),
itm_faction_banner("g20"),
itm_faction_banner("g21"),
itm_faction_banner("h01"),
itm_faction_banner("h02"),
itm_faction_banner("h03"),
itm_faction_banner("h04"),
itm_faction_banner("h05"),
itm_faction_banner("h06"),
itm_faction_banner("h07"),
itm_faction_banner("h08"),
itm_faction_banner("h09"),
itm_faction_banner("h10"),
itm_faction_banner("h11"),
itm_faction_banner("h12"),
itm_faction_banner("h13"),
itm_faction_banner("h14"),
itm_faction_banner("h15"),
itm_faction_banner("h16"),
itm_faction_banner("h17"),
itm_faction_banner("h18"),
itm_faction_banner("h19"),
itm_faction_banner("h20"),
itm_faction_banner("h21"),
itm_faction_banner("i01"),
itm_faction_banner("i02"),
itm_faction_banner("i03"),
itm_faction_banner("i04"),
itm_faction_banner("i05"),
itm_faction_banner("i06"),
itm_faction_banner("i07"),
itm_faction_banner("i08"),
itm_faction_banner("i09"),
itm_faction_banner("i10"),
itm_faction_banner("i11"),
itm_faction_banner("i12"),
itm_faction_banner("i13"),
itm_faction_banner("i14"),
itm_faction_banner("i15"),
itm_faction_banner("i16"),
itm_faction_banner("i17"),
itm_faction_banner("i18"),
itm_faction_banner("i19"),
itm_faction_banner("i20"),
itm_faction_banner("i21"),
itm_faction_banner("j01"),
itm_faction_banner("j02"),
itm_faction_banner("j03"),
itm_faction_banner("j04"),
itm_faction_banner("j05"),
itm_faction_banner("j06"),
itm_faction_banner("j07"),
itm_faction_banner("j08"),
itm_faction_banner("j09"),
itm_faction_banner("j10"),
itm_faction_banner("j11"),
itm_faction_banner("j12"),
itm_faction_banner("j13"),
itm_faction_banner("j14"),
itm_faction_banner("j15"),
itm_faction_banner("j16"),
itm_faction_banner("j17"),
itm_faction_banner("j18"),
itm_faction_banner("j19"),
itm_faction_banner("j20"),
itm_faction_banner("j21"),
itm_faction_banner("k01"),
itm_faction_banner("k02"),
itm_faction_banner("k03"),
itm_faction_banner("k04"),
itm_faction_banner("k05"),
itm_faction_banner("k06"),
itm_faction_banner("k07"),
itm_faction_banner("k08"),
itm_faction_banner("k09"),
itm_faction_banner("k10"),
itm_faction_banner("k11"),
itm_faction_banner("k12"),
itm_faction_banner("k13"),
itm_faction_banner("k14"),
itm_faction_banner("k15"),
itm_faction_banner("k16"),
itm_faction_banner("k17"),
itm_faction_banner("k18"),
itm_faction_banner("k19"),
itm_faction_banner("k20"),
itm_faction_banner("k21"),
itm_faction_banner("l01"),
itm_faction_banner("l02"),
itm_faction_banner("l03"),
itm_faction_banner("l04"),
itm_faction_banner("l05"),
itm_faction_banner("l06"),
itm_faction_banner("l07"),
itm_faction_banner("l08"),
itm_faction_banner("l09"),
itm_faction_banner("l10"),
itm_faction_banner("l11"),
itm_faction_banner("l12"),
itm_faction_banner("l13"),
itm_faction_banner("l14"),
itm_faction_banner("l15"),
itm_faction_banner("l16"),
itm_faction_banner("l17"),
itm_faction_banner("l18"),
itm_faction_banner("l19"),
itm_faction_banner("l20"),
itm_faction_banner("l21"),
itm_faction_banner("m01"),
itm_faction_banner("m02"),
itm_faction_banner("m03"),
itm_faction_banner("m04"),
itm_faction_banner("m05"),
itm_faction_banner("m06"),
itm_faction_banner("m07"),
itm_faction_banner("m08"),
itm_faction_banner("m09"),
itm_faction_banner("m10"),
itm_faction_banner("m11"),
itm_faction_banner("m12"),
itm_faction_banner("m13"),
itm_faction_banner("kingdom_a"),
itm_faction_banner("kingdom_b"),
itm_faction_banner("kingdom_c"),
itm_faction_banner("kingdom_d"),
itm_faction_banner("kingdom_e"),
itm_faction_banner("kingdom_f"),
itm_faction_banner("kingdom_g"),
itm_castle_banner("fac_1", "a"),
itm_castle_banner("fac_2", "a"),
itm_castle_banner("fac_3", "a"),
itm_castle_banner("fac_4", "a"),
itm_castle_banner("fac_5", "a"),
itm_castle_banner("fac_6", "a"),
itm_castle_banner("fac_7", "a"),
itm_castle_banner("fac_8", "a"),
itm_castle_banner("fac_1", "b"),
itm_castle_banner("fac_2", "b"),
itm_castle_banner("fac_3", "b"),
itm_castle_banner("fac_4", "b"),
itm_castle_banner("fac_5", "b"),
itm_castle_banner("fac_6", "b"),
itm_castle_banner("fac_7", "b"),
itm_castle_banner("fac_8", "b"),
itm_wall_banner("fac_1", "a"),
itm_wall_banner("fac_2", "a"),
itm_wall_banner("fac_3", "a"),
itm_wall_banner("fac_4", "a"),
itm_wall_banner("fac_5", "a"),
itm_wall_banner("fac_6", "a"),
itm_wall_banner("fac_7", "a"),
itm_wall_banner("fac_8", "a"),
itm_wall_banner("fac_1", "b"),
itm_wall_banner("fac_2", "b"),
itm_wall_banner("fac_3", "b"),
itm_wall_banner("fac_4", "b"),
itm_wall_banner("fac_5", "b"),
itm_wall_banner("fac_6", "b"),
itm_wall_banner("fac_7", "b"),
itm_wall_banner("fac_8", "b"),

["admin_horse", "Admin Horse", [("plated_charger_black",0)], itp_type_horse, 0,
 0, hit_points(500)|body_armor(100)|difficulty(0)|horse_speed(400)|horse_maneuver(100)|horse_charge(50)|horse_scale(130), imodbit_spirited],
["invisible_head", "Invisible Head", [("invisible",0)], itp_type_head_armor|itp_covers_head, 0,
 0, weight(1)|head_armor(80)|difficulty(30), imodbits_none],
["invisible_body", "Invisible Body", [("invisible",0)], itp_type_body_armor|itp_covers_legs, 0,
 0, weight(1)|body_armor(80)|leg_armor(30)|difficulty(30), imodbits_none],
["invisible_foot", "Invisible Foot", [("invisible",0)], itp_type_foot_armor|itp_attach_armature, 0,
 0, weight(1)|leg_armor(65)|difficulty(30), imodbits_none],
["invisible_hand", "Invisible Hand", [("invisible_L",0)], itp_type_hand_armor, 0,
 0, weight(1)|body_armor(20)|difficulty(30), imodbits_none],
["invisible_sword", "Invisible Sword", [("invisible",0)], itp_type_two_handed_wpn|itp_two_handed|itp_primary, itc_greatsword|itcf_carry_sword_back,
 0, weight(1)|difficulty(30)|spd_rtng(120)|weapon_length(120)|swing_damage(255, cut)|thrust_damage(255, pierce), imodbits_sword_high],

["all_items_end", "all_items_end", [("invisible",0)], itp_no_pick_up_from_ground, 0, 0, 0, 0],
["pointer_arrow", "pointer_arrow", [("pointer_arrow",0)], itp_no_pick_up_from_ground, 0, 0, 0, 0],
["animal_herd_manager", "animal_herd_manager", [("invisible",0)], itp_no_pick_up_from_ground, 0, 0, 0, 0],
["animal_carcass", "animal_carcass", [("pw_blood_a",0)], itp_no_pick_up_from_ground, 0, 0, 0, 0],
["agent_corpse", "agent_corpse", [("pw_blood_b",imodbit_plain),("pw_blood_c",imodbit_cracked),("pw_dropped_armor",imodbit_rusty)], itp_no_pick_up_from_ground, 0, 0, 0, 0],
]

item_lengths_list = []
item_difficulties_list = []
item_class_list = []
herd_animal_list = []

itm_weapons = frozenset([itp_type_one_handed_wpn, itp_type_two_handed_wpn, itp_type_polearm, itp_type_bow, itp_type_crossbow, itp_type_thrown])
itc_attack_capable = itcf_thrust_onehanded|itcf_overswing_onehanded|itcf_slashright_onehanded|itcf_slashleft_onehanded|\
  itcf_thrust_twohanded|itcf_overswing_twohanded|itcf_slashright_twohanded|itcf_slashleft_twohanded|\
  itcf_thrust_polearm|itcf_overswing_polearm|itcf_slashright_polearm|itcf_slashleft_polearm|\
  itcf_shoot_bow|itcf_shoot_javelin|itcf_shoot_crossbow|itcf_throw_stone|itcf_throw_knife|itcf_throw_axe|itcf_throw_javelin|itcf_shoot_pistol|itcf_shoot_musket|\
  itcf_horseback_thrust_onehanded|itcf_horseback_overswing_right_onehanded|itcf_horseback_overswing_left_onehanded|\
  itcf_horseback_slashright_onehanded|itcf_horseback_slashleft_onehanded|itcf_thrust_onehanded_lance|itcf_thrust_onehanded_lance_horseback|\
  itcf_horseback_slash_polearm|itcf_overswing_spear|itcf_overswing_musket|itcf_thrust_musket

def pre_process_items():
  for item_id, item in enumerate(items):
    item_length = get_weapon_length(item[6])
    item_lengths_list.append(item_length)
    item_difficulty = get_difficulty(item[6])
    item_difficulties_list.append(item_difficulty)
    item_type = item[3] & 0xff
    if item_type in (itp_type_bow, itp_type_crossbow):
      item[6] &= ~(ibf_10bit_mask << iwf_weapon_length_bits)
    if not item_type == itp_type_horse and not item_difficulty >= 30:
      item[6] &= ~(ibf_armor_mask << ibf_difficulty_bits)
    item_len = len(item)
    if item_type in itm_weapons and item_difficulty > 0 and item[4] & itc_attack_capable:
      check_can_attack = (ti_on_weapon_attack,
       [(store_trigger_param_1, ":agent_id"),
        (agent_slot_eq, ":agent_id", slot_agent_cannot_attack, 1),
        (agent_set_wielded_item, ":agent_id", -1)])
      if item_len <= 8:
        item.extend([0] * (8 - item_len) + [[check_can_attack]])
      else:
        item[8].append(check_can_attack)
    if item_len <= 8:
      continue
    trigger_list = item[8]
    triggers_to_pop = []
    for i, trigger in enumerate(trigger_list):
      if trigger[0] == tag_item_class:
        list_entry = [item_id]
        list_entry.extend(trigger[1:])
        item_class_list.append(list_entry)
        if trigger[1] == item_class_food and trigger[2] > 0:
          trigger_list[i] = (ti_on_weapon_attack,
           [(store_trigger_param_1, ":agent_id"),
            (call_script, "script_cf_eat_food", ":agent_id", item_id),
            ])
        else:
          triggers_to_pop.append(i)
      elif trigger[0] == tag_item_herd_animal:
        herd_animal_list.append([item_id] + trigger[1:])
        triggers_to_pop.append(i)
    for i in reversed(triggers_to_pop):
      trigger_list.pop(i)
pre_process_items()

from module_constants import *
from header_items import  *
from header_operations import *
from header_triggers import *
import header_debug as dbg
import header_lazy_evaluation as lazy

####################################################################################################################
#  Each item record contains the following fields:
#  1) Item id: used for referencing items in other files.
#     The prefix itm_ is automatically added before each item id.
#  2) Item name. Name of item as it'll appear in inventory window
#  3) List of meshes.  Each mesh record is a tuple containing the following fields:
#    3.1) Mesh name.
#    3.2) Modifier bits that this mesh matches.
#     Note that the first mesh record is the default.
#  4) Item flags. See header_items.py for a list of available flags.
#  5) Item capabilities. Used for which animations this item is used with. See header_items.py for a list of available flags.
#  6) Item value.
#  7) Item stats: Bitwise-or of various stats about the item such as:
#      weight, abundance, difficulty, head_armor, body_armor,leg_armor, etc...
#  8) Modifier bits: Modifiers that can be applied to this item.
#  9) [Optional] Triggers: List of simple triggers to be associated with the item.
#  10) [Optional] Factions: List of factions that item can be found as merchandise.
####################################################################################################################

# Some constants for ease of use.
imodbits_none = 0
imodbits_horse_basic = imodbit_swaybacked|imodbit_lame|imodbit_spirited|imodbit_heavy|imodbit_stubborn
imodbits_cloth = imodbit_tattered|imodbit_ragged|imodbit_sturdy|imodbit_thick|imodbit_hardened
imodbits_armor = imodbit_rusty|imodbit_battered|imodbit_crude|imodbit_thick|imodbit_reinforced|imodbit_lordly
imodbits_plate = imodbit_cracked|imodbit_rusty|imodbit_battered|imodbit_crude|imodbit_thick|imodbit_reinforced|imodbit_lordly
imodbits_polearm = imodbit_cracked|imodbit_bent|imodbit_balanced
imodbits_shield = imodbit_cracked|imodbit_battered|imodbit_thick|imodbit_reinforced
imodbits_sword = imodbit_rusty|imodbit_chipped|imodbit_balanced|imodbit_tempered
imodbits_sword_high = imodbit_rusty|imodbit_chipped|imodbit_balanced|imodbit_tempered|imodbit_masterwork
imodbits_axe = imodbit_rusty|imodbit_chipped|imodbit_heavy
imodbits_mace = imodbit_rusty|imodbit_chipped|imodbit_heavy
imodbits_pick = imodbit_rusty|imodbit_chipped|imodbit_balanced|imodbit_heavy
imodbits_bow = imodbit_cracked|imodbit_bent|imodbit_strong|imodbit_masterwork
imodbits_crossbow = imodbit_cracked|imodbit_bent|imodbit_masterwork
imodbits_missile = imodbit_bent|imodbit_large_bag
imodbits_thrown = imodbit_bent|imodbit_heavy|imodbit_balanced|imodbit_large_bag
imodbits_thrown_minus_heavy = imodbit_bent|imodbit_balanced|imodbit_large_bag

imodbits_horse_good = imodbit_spirited|imodbit_heavy
imodbits_good = imodbit_sturdy|imodbit_thick|imodbit_hardened|imodbit_reinforced
imodbits_bad = imodbit_rusty|imodbit_chipped|imodbit_tattered|imodbit_ragged|imodbit_cracked|imodbit_bent

imodbit_female = imodbit_meek

tag_item_class = -100.0
tag_item_herd_animal = -101.0

# Set a class for this item - listed in module_constants prefixed with item_class_ - with an optional associated value.
def itm_class(class_id, value=0):
  return (tag_item_class, class_id, value)

# Mark a horse item as a herd animal. Only use for the adult item, not the child.
def itm_herd_animal(child_item=-1, grow_age=10, max_in_herd=20, attack_reaction=animal_reaction_flee, death_sound="snd_cow_slaughter", meat=0, hide=0, wildness=1):
  return [[tag_item_herd_animal, child_item, grow_age, max_in_herd, attack_reaction, death_sound, meat, hide, wildness]]

# Display the agent's heraldic banner or color on special item meshes, specifying the appropriate entry from module_tableau_materials.
def init_heraldic_item(tableau):
  return [(ti_on_init_item,
   [(store_trigger_param_1, ":agent_id"),
    (store_trigger_param_2, ":troop_id"),
    (call_script, "script_item_set_banner", tableau, ":agent_id", ":troop_id"),
    ]),
  itm_class(item_class_heraldic)]

# Template for faction banner items.
# When adding a new banner texture, remember to add an entry to module_meshes in the correct place, and set an appropriate background color in module_scripts.
def itm_faction_banner(banner_id):
  return ["pw_banner_pole_" + banner_id, "Banner", [("pw_banner_pole",0)], itp_type_polearm|itp_two_handed|itp_primary|itp_wooden_parry, itc_parry_polearm|itcf_carry_spear,
   1200, weight(7.0)|difficulty(14)|spd_rtng(70)|weapon_length(250)|swing_damage(10, blunt)|thrust_damage(5, blunt), imodbits_none,
   [(ti_on_init_item, [(cur_item_set_tableau_material, "tableau_faction_banner_pole", "mesh_banner_" + banner_id)])]]

# Template for castle capture point banner items (display only, not allowing pickup).
def itm_castle_banner(faction, suffix):
  return ["pw_banner_castle_" + faction + suffix, "Castle Banner", [("pw_banner_castle",0)], itp_no_pick_up_from_ground, 0,
   0, 0, imodbits_none, [(ti_on_init_item, [(cur_item_set_tableau_material, "tableau_castle_banner_" + suffix, faction)])]]

# Template for castle wall banner items (display only, not allowing pickup).
def itm_wall_banner(faction, suffix):
  return ["pw_banner_wall_" + faction + suffix, "Wall Banner", [("pw_banner_wall",0)], itp_no_pick_up_from_ground, 0,
   0, 0, imodbits_none, [(ti_on_init_item, [(cur_item_set_tableau_material, "tableau_castle_banner_" + suffix, faction)])]]

def itm_throw_wheat_trigger():
  return (ti_on_weapon_attack,
   [(multiplayer_is_server),
    (position_move_x, pos1, -10),
    (position_move_y, pos1, 50),
    (position_move_z, pos1, -50),
    (position_rotate_x, pos1, -30),
    (position_rotate_y, pos1, -30),
    (particle_system_burst, "psys_throw_wheat", pos1, 50),
    ])

def itm_read_book_trigger(string_id):
  return (ti_on_weapon_attack,
   [(store_trigger_param_1, ":agent_id"),
    (call_script, "script_cf_read_book", string_id, ":agent_id"),
    ])

# Swap between different items when swinging, to change visual appearance.
def itm_swap_item_trigger(this_item, other_item):
  return (ti_on_weapon_attack,
   [(store_trigger_param_1, ":agent_id"),
    (assign, ":loop_end", ek_item_3 + 1),
    (try_for_range, ":equip_slot", ek_item_0, ":loop_end"),
      (agent_get_item_slot, ":equip_item_id", ":agent_id", ":equip_slot"),
      (eq, ":equip_item_id", this_item),
      (assign, ":loop_end", -1),
      (val_add, ":equip_slot", 1),
      (agent_unequip_item, ":agent_id", this_item, ":equip_slot"),
      (agent_equip_item, ":agent_id", other_item, ":equip_slot"),
      (agent_set_wielded_item, ":agent_id", other_item),
    (try_end),
    ])

# Attempt to process a nearby animal when swinging.
def itm_butchering_knife():
  return (ti_on_weapon_attack,
   [(multiplayer_is_server),
    (store_trigger_param_1, ":agent_id"),
    (agent_get_troop_id, ":troop_id", ":agent_id"),
    (store_skill_level, ":skill", "skl_herding", ":troop_id"),
    (gt, ":skill", 0),
    (call_script, "script_cf_use_butchering_knife", ":agent_id"),
    ])

items = [
["no_item", "INVALID ITEM", [("invalid_item", 0)], itp_type_one_handed_wpn|itp_primary|itp_secondary|itp_no_parry, itc_dagger,
 0, weight(1)|spd_rtng(1)|weapon_length(1)|swing_damage(1, blunt)|thrust_damage(1, blunt), imodbits_none],
["no_head", "INVALID HEAD", [("invalid_item", 0)], itp_type_head_armor, 0,
 0, weight(1)|head_armor(1)|difficulty(0), imodbits_none],
["no_body", "INVALID BODY", [("invalid_item", 0)], itp_type_body_armor, 0,
 0, weight(1)|body_armor(1)|difficulty(0), imodbits_none],
["no_foot", "INVALID FOOT", [("invalid_item", 0)], itp_type_foot_armor, 0,
 0, weight(1)|leg_armor(1)|difficulty(0), imodbits_none],
["no_hand", "INVALID HAND", [("invalid_item", 0)], itp_type_hand_armor, 0,
 0, weight(1)|body_armor(1)|difficulty(0), imodbits_none],
["no_horse", "INVALID HORSE", [("invalid_item", 0)], itp_type_horse, 0,
 0, hit_points(1)|body_armor(1)|difficulty(0)|horse_speed(10)|horse_maneuver(40)|horse_charge(1)|horse_scale(1), imodbits_none],

["tattered_headcloth", "Tattered Headcloth", [("headcloth_a_new", 0)], itp_type_head_armor, 0,
 14, weight(0.5)|head_armor(3)|difficulty(0), imodbits_cloth, init_heraldic_item("tableau_colored_helmets_new_d")],
["ragged_woolen_cap", "Ragged Woolen Cap", [("woolen_cap_new", 0)], itp_type_head_armor, 0,
 16, weight(1)|head_armor(4)|difficulty(0), imodbits_cloth, init_heraldic_item("tableau_colored_helmets_new_e")],
["stained_felt_hat_b", "Stained Felt Hat", [("felt_hat_b_new", 0)], itp_type_head_armor, 0,
 15, weight(1)|head_armor(4)|difficulty(0), imodbits_cloth, init_heraldic_item("tableau_colored_helmets_new_b")],

["straw_hat", "Straw Hat", [("straw_hat_new", 0)], itp_type_head_armor, 0,
 29, weight(1)|head_armor(2)|difficulty(0), imodbits_cloth],
["head_wrappings", "Head Wrapping", [("head_wrapping", 0)], itp_type_head_armor|itp_fit_to_head, 0,
 26, weight(0.25)|head_armor(3), imodbits_cloth],
["headcloth", "Headcloth", [("headcloth_a_new", 0)], itp_type_head_armor, 0,
 80, weight(0.5)|head_armor(4)|difficulty(0), imodbits_cloth, init_heraldic_item("tableau_colored_helmets_new_d")],
["woolen_cap", "Woolen Cap", [("woolen_cap_new", 0)], itp_type_head_armor, 0,
 62, weight(1)|head_armor(6)|difficulty(0), imodbits_cloth, init_heraldic_item("tableau_colored_helmets_new_e")],
["sarranid_felt_hat", "Felt Hat", [("sar_helmet3",0)], itp_type_head_armor, 0,
 55, weight(1)|head_armor(5)|difficulty(0), imodbits_cloth],
["sarranid_felt_head_cloth", "Head Cloth", [("common_tulbent",0)], itp_type_head_armor|itp_attach_armature, 0,
 221, weight(0.5)|head_armor(4)|difficulty(0), imodbits_cloth|imodbit_female],
["sarranid_felt_head_cloth_b", "Head Cloth", [("common_tulbent_b",0)], itp_type_head_armor|itp_attach_armature, 0,
 225, weight(0.5)|head_armor(4)|difficulty(0), imodbits_cloth|imodbit_female],
["bride_crown", "Crown of Flowers", [("bride_crown",0)], itp_type_head_armor|itp_doesnt_cover_hair|itp_attach_armature, 0,
 302, weight(0.5)|head_armor(0)|difficulty(0), imodbits_cloth|imodbit_female],
["khergit_lady_hat", "Blue Head Scarf", [("khergit_lady_hat",0)], itp_type_head_armor|itp_doesnt_cover_hair|itp_fit_to_head, 0,
 239, weight(0.5)|head_armor(1)|difficulty(0), imodbits_cloth|imodbit_female],
["khergit_lady_hat_b", "Leather Head Scarf", [("khergit_lady_hat_b",0)], itp_type_head_armor|itp_doesnt_cover_hair|itp_fit_to_head, 0,
 267, weight(0.5)|head_armor(4)|difficulty(0), imodbits_cloth|imodbit_female],
["sarranid_head_cloth", "Lady Head Cloth", [("tulbent",0)], itp_type_head_armor|itp_doesnt_cover_hair|itp_attach_armature, 0,
 321, weight(0.5)|head_armor(4)|difficulty(0), imodbits_cloth|imodbit_female],
["sarranid_head_cloth_b", "Lady Head Cloth", [("tulbent_b",0)], itp_type_head_armor|itp_doesnt_cover_hair|itp_attach_armature, 0,
 340, weight(0.5)|head_armor(4)|difficulty(0), imodbits_cloth|imodbit_female],
["wimple_a", "Wimple", [("wimple_a_new",0)], itp_type_head_armor|itp_fit_to_head, 0,
 230, weight(0.5)|head_armor(4)|difficulty(0), imodbits_cloth|imodbit_female],
["wimple_b", "Wimple", [("wimple_b_new",0)], itp_type_head_armor|itp_fit_to_head, 0,
 230, weight(0.5)|head_armor(4)|difficulty(0), imodbits_cloth|imodbit_female],
["barbette", "Barbette", [("barbette_new",0)], itp_type_head_armor|itp_fit_to_head, 0,
 403, weight(1.0)|head_armor(8)|difficulty(0), imodbits_cloth|imodbit_female],
["arming_cap", "Arming Cap", [("arming_cap_a_new", 0)], itp_type_head_armor, 0,
 78, weight(1)|head_armor(7)|difficulty(0), imodbits_cloth, init_heraldic_item("tableau_colored_helmets_new_d")],
["ladys_hood", "Woolen Hood", [("ladys_hood_new", 0)], itp_type_head_armor, 0,
 120, weight(1)|head_armor(8)|difficulty(0), imodbits_cloth],
["fur_hat", "Fur Hat", [("fur_hat_a_new", 0)], itp_type_head_armor, 0,
 110, weight(0.5)|head_armor(8)|difficulty(0), imodbits_cloth],
["felt_hat", "Felt Hat", [("felt_hat_a_new", 0)], itp_type_head_armor, 0,
 74, weight(1)|head_armor(8)|difficulty(0), imodbits_cloth, init_heraldic_item("tableau_colored_helmets_new_b")],
["felt_hat_b", "Felt Hat", [("felt_hat_b_new", 0)], itp_type_head_armor, 0,
 85, weight(1)|head_armor(8)|difficulty(0), imodbits_cloth, init_heraldic_item("tableau_colored_helmets_new_b")],
["leather_cap", "Leather Cap", [("leather_cap_a_new", 0)], itp_type_head_armor, 0,
 106, weight(1)|head_armor(10)|difficulty(0), imodbits_cloth],
["common_hood", "Hood", [("hood_new", 0)], itp_type_head_armor, 0,
 129, weight(1)|head_armor(10)|difficulty(0), imodbits_cloth, init_heraldic_item("tableau_colored_helmets_new_e")],
["hood_b", "Hood", [("hood_b", 0)], itp_type_head_armor, 0,
 116, weight(1)|head_armor(10)|difficulty(0), imodbits_cloth],
["hood_c", "Hood", [("hood_c", 0)], itp_type_head_armor, 0,
 124, weight(1)|head_armor(10)|difficulty(0), imodbits_cloth],
["hood_d", "Hood", [("hood_d", 0)], itp_type_head_armor, 0,
 131, weight(1)|head_armor(10)|difficulty(0), imodbits_cloth],
["nomad_cap", "Nomad Cap", [("nomad_cap_a_new", 0)], itp_type_head_armor, 0,
 272, weight(2.25)|head_armor(15)|difficulty(8), imodbits_cloth],
["nomad_cap_b", "Nomad Cap", [("nomad_cap_b_new",0)], itp_type_head_armor, 0,
 243, weight(0.75)|head_armor(13)|difficulty(0), imodbits_cloth],
["black_hood", "Black Hood", [("hood_black",0)], itp_type_head_armor, 0,
 143, weight(2)|head_armor(11)|difficulty(0), imodbits_cloth],
["surgeon_coif", "Surgeon's Coif", [("pw_surgeon_coif",0)], itp_type_head_armor, 0,
 182, weight(1.5)|head_armor(10)|difficulty(0), imodbits_cloth],
["pilgrim_hood", "Pilgrim Hood", [("pilgrim_hood",0)], itp_type_head_armor, 0,
 123, weight(1.25)|head_armor(11)|difficulty(0), imodbits_cloth],
["priest_coif", "Priestly Coif", [("pw_priest_coif",0)], itp_type_head_armor, 0,
 265, weight(1)|head_armor(10)|difficulty(0), imodbits_cloth],
["padded_coif", "Padded Coif", [("padded_coif_a_new", 0)], itp_type_head_armor, 0,
 116, weight(1)|head_armor(11)|difficulty(0), imodbits_cloth, init_heraldic_item("tableau_colored_helmets_new_b")],
["turban", "Turban", [("tuareg_open",0)], itp_type_head_armor, 0,
 143, weight(2)|head_armor(11)|difficulty(0), imodbits_cloth],
["leather_steppe_cap_a", "Steppe Cap", [("leather_steppe_cap_a_new",0)], itp_type_head_armor, 0,
 203, weight(1)|head_armor(12)|difficulty(7), imodbits_cloth],
["leather_steppe_cap_b", "Steppe Cap", [("tattered_steppe_cap_b_new",0)], itp_type_head_armor, 0,
 234, weight(1)|head_armor(14)|difficulty(7), imodbits_cloth],
["nordic_archer_helmet", "Leather Helmet", [("Helmet_A_vs2",0)], itp_type_head_armor, 0,
 240, weight(1.25)|head_armor(14)|difficulty(7), imodbits_plate],
["vaegir_fur_cap", "Cap with Fur", [("vaeg_helmet3",0)], itp_type_head_armor, 0,
 250, weight(2)|head_armor(15)|difficulty(7), imodbits_plate],
["steppe_cap", "Steppe Cap", [("steppe_cap_a_new", 0)], itp_type_head_armor, 0,
 276, weight(1)|head_armor(16)|difficulty(7), imodbits_cloth],
["leather_warrior_cap", "Leather Warrior Cap", [("skull_cap_new_b",0)], itp_type_head_armor, 0,
 340, weight(1)|head_armor(18)|difficulty(7), imodbits_cloth],
["sarranid_warrior_cap", "Turban with Warrior Cap", [("tuareg_helmet",0)], itp_type_head_armor|itp_covers_beard, 0,
 344, weight(2)|head_armor(19)|difficulty(7), imodbits_plate],
["nordic_veteran_archer_helmet", "Leather Helmet", [("Helmet_A",0)], itp_type_head_armor, 0,
 356, weight(1.5)|head_armor(20)|difficulty(7), imodbits_plate],
["skullcap", "Skullcap", [("skull_cap_new_a",0)], itp_type_head_armor, 0,
 376, weight(1.0)|head_armor(20)|difficulty(7), imodbits_plate],
["vaegir_fur_helmet", "Fur Helmet", [("vaeg_helmet2",0)], itp_type_head_armor, 0,
 395, weight(1.5)|head_armor(21)|difficulty(7), imodbits_plate],
["bishop_mitre", "Bishop's Mitre", [("pw_bishop_mitre",0)], itp_type_head_armor, 0,
 546, weight(1.5)|head_armor(13)|difficulty(8), imodbits_cloth],
["mail_coif", "Mail Coif", [("mail_coif_new",0)], itp_type_head_armor, 0,
 403, weight(1.25)|head_armor(22)|difficulty(9), imodbits_armor],
["footman_helmet", "Footman's Helmet", [("skull_cap_new",0)], itp_type_head_armor, 0,
 495, weight(1.5)|head_armor(24)|difficulty(9), imodbits_plate],
["sarranid_horseman_helmet", "Horseman Helmet", [("sar_helmet2",0)], itp_type_head_armor, 0,
 580, weight(2)|head_armor(25)|difficulty(9), imodbits_plate],
["nasal_helmet", "Nasal Helmet", [("nasal_helmet_b",0)], itp_type_head_armor, 0,
 605, weight(1.25)|head_armor(26)|difficulty(9), imodbits_plate],
["norman_helmet", "Helmet with Cap", [("norman_helmet_a",0)], itp_type_head_armor|itp_fit_to_head, 0,
 654, weight(1.25)|head_armor(28)|difficulty(9), imodbits_plate],
["nordic_footman_helmet", "Footman Helmet", [("Helmet_B_vs2",0)], itp_type_head_armor|itp_fit_to_head, 0,
 670, weight(1.75)|head_armor(30)|difficulty(9), imodbits_plate],
["khergit_war_helmet", "War Helmet", [("tattered_steppe_cap_a_new",0)], itp_type_head_armor, 0,
 710, weight(2)|head_armor(31)|difficulty(9), imodbits_plate],
["segmented_helmet", "Segmented Helmet", [("segmented_helm_new",0)], itp_type_head_armor, 0,
 724, weight(1.25)|head_armor(31)|difficulty(9), imodbits_plate],
["vaegir_spiked_helmet", "Spiked Cap", [("vaeg_helmet1",0)], itp_type_head_armor, 0,
 823, weight(2)|head_armor(32)|difficulty(9), imodbits_plate],
["helmet_with_neckguard", "Helmet with Neckguard", [("neckguard_helm_new",0)], itp_type_head_armor, 0,
 840, weight(1.5)|head_armor(33)|difficulty(10), imodbits_plate],
["flat_topped_helmet", "Flat Topped Helmet", [("flattop_helmet_new",0)], itp_type_head_armor, 0,
 869, weight(1.75)|head_armor(33)|difficulty(10), imodbits_plate],
["nordic_fighter_helmet", "Fighter Helmet", [("Helmet_B",0)], itp_type_head_armor|itp_fit_to_head, 0,
 912, weight(2)|head_armor(34)|difficulty(10), imodbits_plate],
["kettle_hat", "Kettle Hat", [("kettle_hat_new",0)], itp_type_head_armor, 0,
 940, weight(1.75)|head_armor(35)|difficulty(10), imodbits_plate],
["sarranid_helmet1", "Keffiyeh Helmet", [("sar_helmet1",0)], itp_type_head_armor, 0,
 923, weight(2)|head_armor(35)|difficulty(11), imodbits_plate],
["vaegir_lamellar_helmet", "Helmet with Lamellar Guard", [("vaeg_helmet4",0)], itp_type_head_armor, 0,
 960, weight(2)|head_armor(38)|difficulty(11), imodbits_plate],
["spiked_helmet", "Spiked Helmet", [("spiked_helmet_new",0)], itp_type_head_armor, 0,
 1078, weight(2)|head_armor(38)|difficulty(11), imodbits_plate],
["sarranid_mail_coif", "Mail Coif", [("tuareg_helmet2",0)], itp_type_head_armor, 0,
 1230, weight(2)|head_armor(39)|difficulty(13), imodbits_plate],
["nordic_huscarl_helmet", "Huscarl's Helmet", [("Helmet_C_vs2",0)], itp_type_head_armor, 0,
 1420, weight(2)|head_armor(40)|difficulty(14), imodbits_plate],
["bascinet", "Bascinet", [("bascinet_avt_new",0)], itp_type_head_armor, 0,
 1579, weight(2)|head_armor(42)|difficulty(14), imodbits_plate],
["bascinet_2", "Bascinet with Aventail", [("bascinet_new_a",0)], itp_type_head_armor, 0,
 1654, weight(2.25)|head_armor(44)|difficulty(14), imodbits_plate],
["bascinet_3", "Bascinet with Nose Guard", [("bascinet_new_b",0)], itp_type_head_armor, 0,
 1683, weight(2.5)|head_armor(45)|difficulty(14), imodbits_plate],
["vaegir_noble_helmet", "Nobleman Helmet", [("vaeg_helmet7",0)], itp_type_head_armor, 0,
 1710, weight(2)|head_armor(45)|difficulty(14), imodbits_plate],
["guard_helmet", "Guard Helmet", [("reinf_helmet_new",0)], itp_type_head_armor, 0,
 2355, weight(2.5)|head_armor(47)|difficulty(15), imodbits_plate],
["sarranid_veiled_helmet", "Veiled Helmet", [("sar_helmet4",0)], itp_type_head_armor|itp_covers_beard, 0,
 2341, weight(3)|head_armor(47)|difficulty(15), imodbits_plate],
["vaegir_war_helmet", "War Helmet", [("vaeg_helmet6",0)], itp_type_head_armor, 0,
 2420, weight(2.25)|head_armor(47)|difficulty(15), imodbits_plate],
["nordic_warlord_helmet", "Warlord Helmet", [("Helmet_C",0)], itp_type_head_armor, 0,
 3180, weight(2.25)|head_armor(48)|difficulty(15), imodbits_plate],
["bishop_helm", "Bishop's Helm", [("pw_bishop_helm",0)], itp_type_head_armor|itp_covers_head, 0,
 6034, weight(3.0)|head_armor(49)|difficulty(15), imodbits_plate],
["full_helm", "Full Helm", [("great_helmet_new_b",0)], itp_type_head_armor|itp_covers_head, 0,
 5121, weight(2.5)|head_armor(51)|difficulty(15), imodbits_plate],
["vaegir_mask", "War Mask", [("vaeg_helmet8",0)], itp_type_head_armor, 0,
 6950, weight(2.5)|head_armor(50)|difficulty(15), imodbits_plate],
["vaegir_mask_b", "War Mask", [("vaeg_helmet9",0)], itp_type_head_armor|itp_covers_beard, 0,
 7012, weight(2.75)|head_armor(52)|difficulty(15), imodbits_plate],
["great_helmet", "Great Helmet", [("great_helmet_new",0)], itp_type_head_armor|itp_covers_head, 0,
 7380, weight(2.75)|head_armor(53)|difficulty(15), imodbits_plate],
["winged_great_helmet", "Winged Great Helmet", [("maciejowski_helmet_new",0)], itp_type_head_armor|itp_covers_head, 0,
 9240, weight(2.75)|head_armor(55)|difficulty(15), imodbits_plate],
["black_helmet", "Black Helmet", [("black_helm",0)], itp_type_head_armor, 0,
 9638, weight(2.75)|head_armor(55)|difficulty(15), imodbits_plate],

["ragged_shirt", "Ragged Shirt", [("shirt", 0)], itp_type_body_armor|itp_covers_legs, 0,
 2, weight(1)|body_armor(2)|difficulty(0), imodbits_cloth],
["old_coarse_tunic", "Old Coarse Tunic", [("coarse_tunic", 0)], itp_type_body_armor|itp_covers_legs, 0,
 23, weight(2)|body_armor(7)|leg_armor(4)|difficulty(0), imodbits_cloth],
["old_linen_tunic", "Old Linen Tunic", [("linen_tunic", 0)], itp_type_body_armor|itp_covers_legs, 0,
 10, weight(1)|body_armor(4)|leg_armor(1)|difficulty(0), imodbits_cloth],
["ragged_leather_apron", "Ragged Leather Apron", [("leather_apron", 0)], itp_type_body_armor|itp_covers_legs, 0,
 27, weight(2.5)|body_armor(6)|leg_armor(5)|difficulty(0), imodbits_cloth],
["old_tabard", "Old Tabard", [("tabard_a", 0)], itp_type_body_armor|itp_covers_legs, 0,
 31, weight(3)|body_armor(8)|leg_armor(4)|difficulty(0), imodbits_cloth],

["shirt", "Shirt", [("shirt", 0)], itp_type_body_armor|itp_covers_legs, 0,
 45, weight(1)|body_armor(5)|difficulty(0), imodbits_cloth],
["linen_tunic", "Linen Tunic", [("shirt_a", 0)], itp_type_body_armor|itp_covers_legs, 0,
 60, weight(1)|body_armor(6)|leg_armor(1)|difficulty(0), imodbits_cloth],
["black_robe", "Black Robe", [("robe",0)], itp_type_body_armor|itp_covers_legs, 0,
 43, weight(3.5)|body_armor(8)|leg_armor(6)|difficulty(0), imodbits_cloth],
["dress", "Dress", [("dress",0)], itp_type_body_armor|itp_covers_legs, 0,
 60, weight(3)|body_armor(6)|leg_armor(2)|difficulty(0), imodbits_cloth|imodbit_female],
["blue_dress", "Blue Dress", [("blue_dress_new",0)], itp_type_body_armor|itp_covers_legs, 0,
 76, weight(3)|body_armor(6)|leg_armor(2)|difficulty(0), imodbits_cloth|imodbit_female],
["peasant_dress", "Peasant Dress", [("peasant_dress_b_new",0)], itp_type_body_armor|itp_covers_legs, 0,
 83, weight(3)|body_armor(6)|leg_armor(2)|difficulty(0), imodbits_cloth|imodbit_female],
["woolen_dress", "Woolen Dress", [("woolen_dress",0)], itp_type_body_armor|itp_covers_legs, 0,
 100, weight(3.75)|body_armor(8)|leg_armor(2)|difficulty(0), imodbits_cloth|imodbit_female],
["sarranid_common_dress", "Gray Dress", [("sarranid_common_dress",0)], itp_type_body_armor|itp_covers_legs, 0,
 80, weight(5)|body_armor(5)|leg_armor(5)|difficulty(0), imodbits_cloth|imodbit_female],
["sarranid_common_dress_b", "Brown Dress", [("sarranid_common_dress_b",0)], itp_type_body_armor|itp_covers_legs, 0,
 102, weight(5)|body_armor(6)|leg_armor(5)|difficulty(0), imodbits_cloth|imodbit_female],
["lady_dress_ruby", "Red Dress", [("lady_dress_r",0)], itp_type_body_armor|itp_covers_legs, 0,
 200, weight(3)|body_armor(10)|leg_armor(10)|difficulty(0), imodbits_cloth|imodbit_female],
["lady_dress_green", "Green Dress", [("lady_dress_g",0)], itp_type_body_armor|itp_covers_legs, 0,
 200, weight(3)|body_armor(10)|leg_armor(10)|difficulty(0), imodbits_cloth|imodbit_female],
["lady_dress_blue", "Blue Dress", [("lady_dress_b",0)], itp_type_body_armor|itp_covers_legs, 0,
 200, weight(3)|body_armor(10)|leg_armor(10)|difficulty(0), imodbits_cloth|imodbit_female],
["court_dress", "Red Pattern Dress", [("court_dress",0)], itp_type_body_armor|itp_covers_legs, 0,
 200, weight(3)|body_armor(10)|leg_armor(10)|difficulty(0), imodbits_cloth|imodbit_female],
["red_dress", "Red Dress", [("red_dress",0)], itp_type_body_armor|itp_covers_legs, 0,
 200, weight(3)|body_armor(10)|leg_armor(10)|difficulty(0), imodbits_cloth|imodbit_female],
["brown_dress", "Brown Dress", [("brown_dress",0)], itp_type_body_armor|itp_covers_legs, 0,
 200, weight(3)|body_armor(10)|leg_armor(10)|difficulty(0), imodbits_cloth|imodbit_female],
["green_dress", "Green Dress", [("green_dress",0)], itp_type_body_armor|itp_covers_legs, 0,
 200, weight(3)|body_armor(10)|leg_armor(10)|difficulty(0), imodbits_cloth|imodbit_female],
["sarranid_lady_dress", "Purple Dress", [("sarranid_lady_dress",0)], itp_type_body_armor|itp_covers_legs, 0,
 200, weight(3)|body_armor(10)|leg_armor(10)|difficulty(0), imodbits_cloth|imodbit_female],
["sarranid_lady_dress_b", "Orange Dress", [("sarranid_lady_dress_b",0)], itp_type_body_armor|itp_covers_legs, 0,
 200, weight(3)|body_armor(10)|leg_armor(10)|difficulty(0), imodbits_cloth|imodbit_female],
["khergit_lady_dress", "Blue Dress", [("khergit_lady_dress",0)], itp_type_body_armor|itp_covers_legs, 0,
 200, weight(3)|body_armor(10)|leg_armor(10)|difficulty(0), imodbits_cloth|imodbit_female],
["khergit_lady_dress_b", "Leather Dress", [("khergit_lady_dress_b",0)], itp_type_body_armor|itp_covers_legs, 0,
 500, weight(3)|body_armor(15)|leg_armor(20)|difficulty(8), imodbits_cloth|imodbit_female],
["bride_dress", "Bride Dress", [("bride_dress",0)], itp_type_body_armor|itp_covers_legs, 0,
 2500, weight(3)|body_armor(3)|leg_armor(1)|difficulty(0), imodbits_cloth|imodbit_female],
["tunic_with_green_cape", "Tunic with Green Cape", [("peasant_man_a",0)], itp_type_body_armor|itp_covers_legs, 0,
 220, weight(1)|body_armor(12)|leg_armor(4)|difficulty(0), imodbits_cloth],
["rough_tunic", "Rough Tunic", [("pw_rough_tunic",0)], itp_type_body_armor|itp_covers_legs, 0,
 134, weight(1)|body_armor(7)|leg_armor(1)|difficulty(0), imodbits_cloth],
["red_shirt", "Red Shirt", [("rich_tunic_a",0)], itp_type_body_armor|itp_covers_legs, 0,
 150, weight(1)|body_armor(7)|leg_armor(1)|difficulty(0), imodbits_cloth],
["pelt_coat", "Pelt Coat", [("thick_coat_a",0)], itp_type_body_armor|itp_covers_legs, 0,
 193, weight(2)|body_armor(11)|leg_armor(3)|difficulty(0), imodbits_cloth],
["sarranid_cloth_robe", "Worn Robe", [("sar_robe",0)], itp_type_body_armor|itp_covers_legs, 0,
 233, weight(4)|body_armor(9)|leg_armor(9)|difficulty(0), imodbits_cloth],
["sarranid_cloth_robe_b", "Worn Robe", [("sar_robe_b",0)], itp_type_body_armor|itp_covers_legs, 0,
 237, weight(4)|body_armor(9)|leg_armor(9)|difficulty(0), imodbits_cloth],
["rawhide_coat", "Rawhide Coat", [("coat_of_plates_b", 0)], itp_type_body_armor|itp_covers_legs, 0,
 220, weight(5)|body_armor(13)|difficulty(0), imodbits_cloth],
["coarse_tunic", "Tunic with Vest", [("coarse_tunic_a", 0)], itp_type_body_armor|itp_covers_legs, 0,
 87, weight(2)|body_armor(11)|leg_armor(6)|difficulty(0), imodbits_cloth],
["leather_apron", "<NAME>", [("leather_apron", 0)], itp_type_body_armor|itp_covers_legs, 0,
 125, weight(3)|body_armor(12)|leg_armor(7)|difficulty(0), imodbits_cloth],
["fur_coat", "Fur Coat", [("fur_coat", 0)], itp_type_body_armor|itp_covers_legs, 0,
 257, weight(6)|body_armor(13)|leg_armor(6)|difficulty(0), imodbits_armor],
["friar_robe", "Friar's Robe", [("pw_friar_robe", 0)], itp_type_body_armor|itp_covers_legs, 0,
 342, weight(8)|body_armor(14)|leg_armor(12)|difficulty(0), imodbits_cloth],
["skirmisher_armor", "Skirmisher Armor", [("skirmisher_armor",0)], itp_type_body_armor|itp_covers_legs, 0,
 374, weight(3)|body_armor(15)|leg_armor(7)|difficulty(6), imodbits_cloth],
["rich_outfit", "<NAME>", [("merchant_outf",0)], itp_type_body_armor|itp_covers_legs, 0,
 348, weight(4)|body_armor(16)|leg_armor(4)|difficulty(0), imodbits_cloth],
["tabard", "Tabard", [("tabard_b", 0)], itp_type_body_armor|itp_covers_legs, 0,
 230, weight(3)|body_armor(14)|leg_armor(6)|difficulty(6), imodbits_cloth, init_heraldic_item("tableau_heraldic_tabard_b")],
["khergit_armor", "Tribesman Armor", [("khergit_armor_new", 0)], itp_type_body_armor|itp_covers_legs, 0,
 380, weight(2)|body_armor(14)|difficulty(7), imodbits_cloth],
["leather_vest_plain", "Leather Vest", [("leather_vest_a", 0)], itp_type_body_armor|itp_covers_legs, 0,
 370, weight(4)|body_armor(15)|leg_armor(7)|difficulty(7), imodbits_cloth],
["leather_vest", "Heraldic Leather Vest", [("leather_vest_a", 0)], itp_type_body_armor|itp_covers_legs, 0,
 377, weight(4)|body_armor(15)|leg_armor(7)|difficulty(7), imodbits_cloth, init_heraldic_item("tableau_heraldic_leather_vest_a")],
["leather_jacket", "Leather Jacket", [("leather_jacket_new", 0)], itp_type_body_armor|itp_covers_legs, 0,
 400, weight(3)|body_armor(15)|difficulty(8), imodbits_cloth],
["priest_robe", "<NAME>", [("pw_priest_robe", 0)], itp_type_body_armor|itp_covers_legs, 0,
 453, weight(10)|body_armor(17)|leg_armor(13)|difficulty(8), imodbits_cloth],
["arena_tunic", "Arena Tunic", [("arena_tunicW_new",0)], itp_type_body_armor|itp_covers_legs, 0,
 473, weight(4)|body_armor(16)|leg_armor(6)|difficulty(8), imodbits_cloth, init_heraldic_item("tableau_colored_arena_tunic")],
["steppe_armor", "Leather Breastplate", [("lamellar_leather",0)], itp_type_body_armor|itp_covers_legs, 0,
 430, weight(5)|body_armor(16)|leg_armor(8)|difficulty(8), imodbits_cloth, init_heraldic_item("tableau_colored_lamellar_leather")],
["leather_armor", "Leather Armor", [("tattered_leather_armor_a",0)], itp_type_body_armor|itp_covers_legs, 0,
 450, weight(7)|body_armor(18)|difficulty(8), imodbits_cloth],
["pilgrim_disguise", "Pilgrim Disguise", [("pilgrim_outfit",0)], itp_type_body_armor|itp_covers_legs, 0,
 710, weight(2)|body_armor(19)|leg_armor(8)|difficulty(8), imodbits_cloth],
["red_gambeson", "Red Gambeson", [("red_gambeson_a",0)], itp_type_body_armor|itp_covers_legs, 0,
 461, weight(5)|body_armor(21)|leg_armor(5)|difficulty(9), imodbits_cloth],
["padded_cloth", "Aketon", [("padded_cloth_a",0)], itp_type_body_armor|itp_covers_legs, 0,
 430, weight(11)|body_armor(22)|leg_armor(6)|difficulty(9), imodbits_cloth, init_heraldic_item("tableau_heraldic_padded_cloth_a")],
["aketon_green", "Padded Cloth", [("padded_cloth_b",0)], itp_type_body_armor|itp_covers_legs, 0,
 454, weight(11)|body_armor(23)|leg_armor(6)|difficulty(9), imodbits_cloth, init_heraldic_item("tableau_heraldic_padded_cloth_b")],
["archers_vest", "Archer's Padded Vest", [("archers_vest",0)], itp_type_body_armor|itp_covers_legs, 0,
 460, weight(8)|body_armor(23)|leg_armor(10)|difficulty(9), imodbits_cloth],
["nomad_vest", "Nomad Vest", [("nomad_vest_new", 0)], itp_type_body_armor|itp_covers_legs, 0,
 490, weight(7)|body_armor(22)|leg_armor(8)|difficulty(8), imodbits_cloth],
["ragged_outfit", "Ragged Outfit", [("ragged_outfit_a_new",0)], itp_type_body_armor|itp_covers_legs, 0,
 521, weight(7)|body_armor(23)|leg_armor(9)|difficulty(8), imodbits_cloth],
["surgeon_coat", "Surgeon's Coat", [("pw_surgeon_coat", 0)], itp_type_body_armor|itp_covers_legs, 0,
 732, weight(11)|body_armor(24)|leg_armor(9)|difficulty(8), imodbits_cloth],
["nomad_armor", "Nomad Armor", [("nomad_armor_new", 0)], itp_type_body_armor|itp_covers_legs, 0,
 550, weight(3)|body_armor(24)|difficulty(8), imodbits_cloth],
["nomad_robe", "Nomad Robe", [("nomad_robe_a",0)], itp_type_body_armor|itp_covers_legs, 0,
 670, weight(10)|body_armor(25)|leg_armor(8)|difficulty(8), imodbits_cloth],
["light_leather", "Light Leather", [("light_leather",0)], itp_type_body_armor|itp_covers_legs, 0,
 594, weight(5)|body_armor(26)|leg_armor(7)|difficulty(8), imodbits_armor],
["leather_jerkin", "<NAME>", [("ragged_leather_jerkin",0)], itp_type_body_armor|itp_covers_legs, 0,
 540, weight(6)|body_armor(25)|leg_armor(6)|difficulty(10), imodbits_cloth],
["padded_leather", "Padded Leather", [("leather_armor_b",0)], itp_type_body_armor|itp_covers_legs, 0,
 623, weight(12)|body_armor(27)|leg_armor(7)|difficulty(9), imodbits_cloth],
["arena_armor", "Arena Armor", [("arena_armorW_new",0)], itp_type_body_armor|itp_covers_legs, 0,
 650, weight(16)|body_armor(29)|leg_armor(13)|difficulty(9), imodbits_armor, init_heraldic_item("tableau_colored_arena_armor")],
["tribal_warrior_outfit", "Tribal Warrior Outfit", [("tribal_warrior_outfit_a_new", 0)], itp_type_body_armor|itp_covers_legs, 0,
 720, weight(14)|body_armor(30)|leg_armor(10)|difficulty(9), imodbits_cloth],
["sarranid_leather_armor", "Leather Armor", [("sarranid_leather_armor",0)], itp_type_body_armor|itp_covers_legs, 0,
 1020, weight(9)|body_armor(32)|leg_armor(12)|difficulty(9), imodbits_armor],
["courtly_outfit", "Courtly Outfit", [("nobleman_outf", 0)], itp_type_body_armor|itp_covers_legs, 0,
 1320, weight(4)|body_armor(24)|leg_armor(10)|difficulty(9), imodbits_cloth],
["nobleman_outfit", "Nobleman Outfit", [("nobleman_outfit_b_new", 0)], itp_type_body_armor|itp_covers_legs, 0,
 1348, weight(4)|body_armor(25)|leg_armor(12)|difficulty(9), imodbits_cloth],
["sarranid_cavalry_robe", "Brown Mail Shirt", [("arabian_armor_a",0)], itp_type_body_armor|itp_covers_legs, 0,
 1220, weight(15)|body_armor(36)|leg_armor(8)|difficulty(9), imodbits_armor],
["studded_leather_coat", "Studded Leather Coat", [("leather_armor_a",0)], itp_type_body_armor|itp_covers_legs, 0,
 1320, weight(14)|body_armor(36)|leg_armor(10)|difficulty(10), imodbits_armor],
["byrnie", "Byrnie", [("byrnie_a_new",0)], itp_type_body_armor|itp_covers_legs, 0,
 2101, weight(17)|body_armor(39)|leg_armor(6)|difficulty(10), imodbits_armor],
["haubergeon", "Haubergeon", [("haubergeon_c",0)], itp_type_body_armor|itp_covers_legs, 0,
 2330, weight(18)|body_armor(41)|leg_armor(6)|difficulty(11), imodbits_armor],
["arabian_armor_b", "Guard Armor", [("arabian_armor_b",0)], itp_type_body_armor|itp_covers_legs, 0,
 2010, weight(19)|body_armor(38)|leg_armor(8)|difficulty(11), imodbits_armor],
["lamellar_vest", "Lamellar Vest", [("lamellar_vest_a",0)], itp_type_body_armor|itp_covers_legs, 0,
 2595, weight(18)|body_armor(40)|leg_armor(8)|difficulty(11), imodbits_cloth],
["lamellar_vest_khergit", "Lamellar Vest", [("lamellar_vest_b",0)], itp_type_body_armor|itp_covers_legs, 0,
 2500, weight(18)|body_armor(40)|leg_armor(8)|difficulty(11), imodbits_cloth, init_heraldic_item("tableau_colored_lamellar_vest_b")],
["mail_shirt", "Mail Shirt", [("mail_shirt_a",0)], itp_type_body_armor|itp_covers_legs, 0,
 2740, weight(19)|body_armor(39)|leg_armor(12)|difficulty(11), imodbits_armor],
["mail_hauberk", "Mail Hauberk", [("hauberk_a_new",0)], itp_type_body_armor|itp_covers_legs, 0,
 3320, weight(19)|body_armor(42)|leg_armor(12)|difficulty(11), imodbits_armor],
["sarranid_mail_shirt", "Orange Mail Shirt", [("sarranian_mail_shirt",0)], itp_type_body_armor|itp_covers_legs, 0,
 4400, weight(19)|body_armor(40)|leg_armor(14)|difficulty(12), imodbits_armor],
["bishop_armor", "Bishop's Armor", [("pw_bishop_armor", 0)], itp_type_body_armor|itp_covers_legs, 0,
 6345, weight(23)|body_armor(41)|leg_armor(13)|difficulty(14), imodbits_armor],
["mail_with_surcoat", "Surcoat over Mail", [("mail_long_surcoat_new",0)], itp_type_body_armor|itp_covers_legs, 0,
 5544, weight(22)|body_armor(42)|leg_armor(14)|difficulty(13), imodbits_armor, init_heraldic_item("tableau_heraldic_mail_long_surcoat")],
["surcoat_over_mail", "Surcoat over Mail", [("surcoat_over_mail_new",0)], itp_type_body_armor|itp_covers_legs, 0,
 5620, weight(22)|body_armor(43)|leg_armor(14)|difficulty(13), imodbits_armor, init_heraldic_item("tableau_heraldic_surcoat_over_mail")],
["brigandine_red", "Brigandine", [("brigandine_b",0)], itp_type_body_armor|itp_covers_legs, 0,
 5830, weight(19)|body_armor(45)|leg_armor(12)|difficulty(15), imodbits_armor, init_heraldic_item("tableau_heraldic_brigandine_b")],
["mamluke_mail", "Mail Robe", [("sarranid_elite_cavalary",0)], itp_type_body_armor|itp_covers_legs, 0,
 7900, weight(24)|body_armor(46)|leg_armor(16)|difficulty(15), imodbits_armor],
["lamellar_armor", "Lamellar Armor", [("lamellar_armor_b",0)], itp_type_body_armor|itp_covers_legs, 0,
 7410, weight(25)|body_armor(46)|leg_armor(13)|difficulty(15), imodbits_armor],
["scale_armor", "Scale Armor", [("lamellar_armor_e",0)], itp_type_body_armor|itp_covers_legs, 0,
 9558, weight(25)|body_armor(47)|leg_armor(13)|difficulty(15), imodbits_armor],
["banded_armor", "Banded Armor", [("banded_armor_a",0)], itp_type_body_armor|itp_covers_legs, 0,
 9710, weight(23)|body_armor(46)|leg_armor(14)|difficulty(15), imodbits_armor],
["cuir_bouilli", "<NAME>", [("cuir_bouilli_a",0)], itp_type_body_armor|itp_covers_legs, 0,
 9100, weight(24)|body_armor(45)|leg_armor(15)|difficulty(15), imodbits_armor],
["coat_of_plates", "Coat of Plates", [("coat_of_plates_a",0)], itp_type_body_armor|itp_covers_legs, 0,
 12828, weight(25)|body_armor(47)|leg_armor(16)|difficulty(15), imodbits_armor],
["coat_of_plates_red", "Heraldic Coat of Plates", [("coat_of_plates_red",0)], itp_type_body_armor|itp_covers_legs, 0,
 12828, weight(25)|body_armor(47)|leg_armor(16)|difficulty(15), imodbits_armor, init_heraldic_item("tableau_heraldic_coat_of_plates")],
["khergit_elite_armor", "Heraldic Elite Armor", [("lamellar_armor_d",0)], itp_type_body_armor|itp_covers_legs, 0,
 15802, weight(25)|body_armor(48)|leg_armor(16)|difficulty(15), imodbits_armor, init_heraldic_item("tableau_heraldic_lamellar_armor_d")],
["vaegir_elite_armor", "Elite Armor", [("lamellar_armor_c",0)], itp_type_body_armor|itp_covers_legs, 0,
 15230, weight(25)|body_armor(48)|leg_armor(16)|difficulty(15), imodbits_armor],
["sarranid_elite_armor", "Elite Armor", [("tunic_armor_a",0)], itp_type_body_armor|itp_covers_legs, 0,
 15605, weight(25)|body_armor(48)|leg_armor(16)|difficulty(15), imodbits_armor ],
["plate_armor", "Plate Armor", [("full_plate_armor",0)], itp_type_body_armor|itp_covers_legs, 0,
 35030, weight(30)|body_armor(55)|leg_armor(17)|difficulty(15), imodbits_plate],
["black_armor", "Black Armor", [("black_armor",0)], itp_type_body_armor|itp_covers_legs, 0,
 55200, weight(31)|body_armor(57)|leg_armor(18)|difficulty(15), imodbits_plate],
["light_heraldic_mail", "Light Heraldic Mail", [("heraldic_armor_new_c",0)], itp_type_body_armor|itp_covers_legs, 0,
 1313, weight(12)|body_armor(30)|leg_armor(5)|difficulty(9), imodbits_armor, init_heraldic_item("tableau_heraldic_armor_c")],
["heraldic_mail_with_tunic", "Heraldic Mail with Tunic", [("heraldic_armor_new_b",0)], itp_type_body_armor|itp_covers_legs, 0,
 2045, weight(15)|body_armor(35)|leg_armor(8)|difficulty(10), imodbits_armor, init_heraldic_item("tableau_heraldic_armor_b")],
["heraldic_mail_with_tabard", "Heraldic Mail with Tabard", [("heraldic_armor_new_d",0)], itp_type_body_armor|itp_covers_legs, 0,
 2970, weight(20)|body_armor(40)|leg_armor(10)|difficulty(12), imodbits_armor, init_heraldic_item("tableau_heraldic_armor_d")],
["heraldic_mail_with_surcoat", "Heraldic Mail with Surcoat", [("heraldic_armor_new_a",0)], itp_type_body_armor|itp_covers_legs, 0,
 7800, weight(25)|body_armor(44)|leg_armor(15)|difficulty(15), imodbits_armor, init_heraldic_item("tableau_heraldic_armor_a")],

["tattered_wrapping_boots", "Tattered Wrapping Boots", [("shoe_fur", 0)], itp_type_foot_armor|itp_attach_armature, 0,
 8, weight(1)|leg_armor(2)|difficulty(0), imodbits_cloth],
["ripped_woolen_hose", "Ripped Woolen Hose", [("woolen_hose", 0)], itp_type_foot_armor|itp_attach_armature, 0,
 6, weight(1)|leg_armor(1)|difficulty(0), imodbits_cloth],
["old_hide_boots", "Old Hide Boots", [("boot_nomad_b", 0)], itp_type_foot_armor|itp_attach_armature, 0,
 13, weight(1)|leg_armor(4)|difficulty(0), imodbits_cloth],

["wrapping_boots", "Wrapping Boots", [("wrapping_boots_a", 0)], itp_type_foot_armor|itp_attach_armature, 0,
 30, weight(1)|leg_armor(3)|difficulty(0), imodbits_cloth],
["woolen_hose", "Woolen Hose", [("woolen_hose_a", 0)], itp_type_foot_armor|itp_attach_armature, 0,
 60, weight(1)|leg_armor(4)|difficulty(0), imodbits_cloth],
["friar_sandals", "Friar's Sandals", [("pw_friar_sandals", 0)], itp_type_foot_armor|itp_attach_armature, 0,
 87, weight(1)|leg_armor(4)|difficulty(0), imodbits_cloth],
["blue_hose", "Blue Hose", [("blue_hose_a", 0)], itp_type_foot_armor|itp_attach_armature, 0,
 110, weight(1)|leg_armor(5)|difficulty(0), imodbits_cloth],
["bride_shoes", "Bride Shoes", [("bride_shoes",0)], itp_type_foot_armor|itp_attach_armature, 0,
 565, weight(1)|leg_armor(1)|difficulty(0), imodbits_cloth|imodbit_female],
["priest_leggings", "Priestly Leggings", [("pw_priest_leggings", 0)], itp_type_foot_armor|itp_attach_armature, 0,
 230, weight(1)|leg_armor(8)|difficulty(0), imodbits_cloth],
["sarranid_boots_a", "Pointed Shoes", [("sarranid_shoes",0)], itp_type_foot_armor|itp_attach_armature ,0,
 150, weight(1)|leg_armor(8)|difficulty(0) ,imodbits_cloth ],
["hunter_boots", "Hunter Boots", [("hunter_boots_a", 0)], itp_type_foot_armor|itp_attach_armature, 0,
 190, weight(1.25)|leg_armor(9)|difficulty(0), imodbits_cloth],
["hide_boots", "Hide Boots", [("hide_boots_a", 0)], itp_type_foot_armor|itp_attach_armature, 0,
 240, weight(1)|leg_armor(10)|difficulty(0), imodbits_cloth],
["ankle_boots", "Ankle Boots", [("ankle_boots_a_new", 0)], itp_type_foot_armor|itp_attach_armature, 0,
 270, weight(1)|leg_armor(12)|difficulty(0), imodbits_cloth],
["nomad_boots", "Nomad Boots", [("nomad_boots_a", 0)], itp_type_foot_armor|itp_attach_armature, 0,
 310, weight(1.25)|leg_armor(14)|difficulty(0), imodbits_cloth],
["light_leather_boots", "Light Leather Boots", [("light_leather_boots",0)], itp_type_foot_armor|itp_attach_armature, 0,
 366, weight(1)|leg_armor(15)|difficulty(6), imodbits_cloth],
["leather_boots", "Leather Boots", [("leather_boots_a", 0)], itp_type_foot_armor|itp_attach_armature, 0,
 400, weight(1.25)|leg_armor(16)|difficulty(6), imodbits_cloth],
["sarranid_boots_b", "Pointed Leather Boots", [("sarranid_boots",0)], itp_type_foot_armor|itp_attach_armature, 0,
 440, weight(1.25)|leg_armor(17)|difficulty(6), imodbits_cloth],
["khergit_leather_boots", "Black Leather Boots", [("khergit_leather_boots",0)], itp_type_foot_armor|itp_attach_armature, 0,
 465, weight(1.5)|leg_armor(18)|difficulty(8), imodbits_cloth],
["sarranid_boots_c", "Plated Boots", [("sarranid_camel_boots",0)], itp_type_foot_armor|itp_attach_armature, 0,
 532, weight(2.5)|leg_armor(20)|difficulty(9) ,imodbits_plate ],
["splinted_leather_greaves", "Splinted Leather Greaves", [("leather_greaves_a",0)], itp_type_foot_armor|itp_attach_armature, 0,
 612, weight(3)|leg_armor(21)|difficulty(9), imodbits_armor],
["bishop_chausses", "Bishop's Chausses", [("pw_bishop_chausses", 0)], itp_type_foot_armor|itp_attach_armature, 0,
 886, weight(3)|leg_armor(22)|difficulty(10), imodbits_armor],
["mail_chausses", "Mail Chausses", [("mail_chausses_a",0)], itp_type_foot_armor|itp_attach_armature, 0,
 930, weight(3)|leg_armor(24)|difficulty(10), imodbits_armor],
["splinted_greaves", "Splinted Greaves", [("splinted_greaves_a",0)], itp_type_foot_armor|itp_attach_armature, 0,
 1353, weight(3.5)|leg_armor(28)|difficulty(12), imodbits_armor],
["sarranid_boots_d", "Mail Boots", [("sarranid_mail_chausses",0)], itp_type_foot_armor|itp_attach_armature, 0,
 1420 , weight(2.5)|leg_armor(30)|difficulty(12), imodbits_armor],
["mail_boots", "Mail Boots", [("mail_boots_a",0)], itp_type_foot_armor|itp_attach_armature, 0,
 1750, weight(3)|leg_armor(31)|difficulty(14), imodbits_armor],
["iron_greaves", "Iron Greaves", [("iron_greaves_a",0)], itp_type_foot_armor|itp_attach_armature, 0,
 2470, weight(3.5)|leg_armor(33)|difficulty(15), imodbits_armor],
["plate_boots", "Plate Boots", [("plate_boots",0)], itp_type_foot_armor|itp_attach_armature, 0,
 2864, weight(3.5)|leg_armor(34)|difficulty(15), imodbits_plate],
["black_greaves", "Black Greaves", [("black_greaves",0)], itp_type_foot_armor|itp_attach_armature, 0,
 5661, weight(3.5)|leg_armor(35)|difficulty(15), imodbits_plate],

["leather_gloves", "Leather Gloves", [("leather_gloves_L",0)], itp_type_hand_armor, 0,
 545, weight(0.25)|body_armor(2)|difficulty(0), imodbits_cloth],
["bishop_gloves", "Bishop's Gloves", [("pw_bishop_glove_L",0)], itp_type_hand_armor, 0,
 1293, weight(0.5)|body_armor(3)|difficulty(8), imodbits_cloth],
["mail_mittens", "Mail Mittens", [("mail_mittens_L",0)], itp_type_hand_armor, 0,
 1350, weight(0.5)|body_armor(4)|difficulty(9), imodbits_armor],
["lamellar_gauntlets", "Lamellar Gauntlets", [("scale_gauntlets_a_L",0)], itp_type_hand_armor, 0,
 2320, weight(0.75)|body_armor(5)|difficulty(11), imodbits_armor],
["scale_gauntlets", "Scale Gauntlets", [("scale_gauntlets_b_L",0)], itp_type_hand_armor, 0,
 2503, weight(0.75)|body_armor(6)|difficulty(12), imodbits_armor],
["gauntlets", "Gauntlets", [("gauntlets_L",0)], itp_type_hand_armor, 0,
 3042, weight(1.0)|body_armor(7)|difficulty(14), imodbits_armor],

["club", "Club", [("club",0)], itp_type_one_handed_wpn|itp_primary|itp_wooden_parry|itp_wooden_attack, itc_scimitar|itcf_carry_mace_left_hip,
 35, weight(2.5)|difficulty(5)|spd_rtng(92)|weapon_length(70)|swing_damage(10, blunt)|thrust_damage(0, pierce), imodbits_none],
["spiked_club", "Spiked Club", [("spiked_club",0)], itp_type_one_handed_wpn|itp_primary|itp_wooden_parry, itc_longsword|itcf_carry_mace_left_hip,
 383, weight(3.0)|difficulty(10)|spd_rtng(90)|weapon_length(80)|swing_damage(15, pierce)|thrust_damage(17, pierce), imodbits_mace],
["old_knife", "Old Knife", [("peasant_knife",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_dagger_front_left,
 78, weight(0.5)|difficulty(0)|spd_rtng(100)|weapon_length(43)|swing_damage(11, cut)|thrust_damage(7, pierce), imodbits_sword, [itm_class(item_class_knife)]],
["crude_spear", "Crude Spear", [("spear_g_1-9m",0)], itp_type_polearm|itp_primary|itp_wooden_parry, itc_staff|itcf_carry_spear,
 374, weight(2.0)|difficulty(6)|spd_rtng(92)|weapon_length(120)|swing_damage(6, cut)|thrust_damage(18, pierce), imodbits_polearm],
["blunt_falchion", "Blunt Falchion", [("falchion",0)], itp_type_one_handed_wpn|itp_primary, itc_scimitar|itcf_carry_sword_left_hip,
 217, weight(1.0)|difficulty(5)|spd_rtng(91)|weapon_length(72)|swing_damage(12, cut)|thrust_damage(0, pierce), imodbits_sword],
["chipped_falchion", "Chipped Falchion", [("falchion",0)], itp_type_one_handed_wpn|itp_primary, itc_scimitar|itcf_carry_sword_left_hip,
 314, weight(2.5)|difficulty(5)|spd_rtng(95)|weapon_length(72)|swing_damage(16, cut)|thrust_damage(0, pierce), imodbits_sword],
["rusty_sword", "Rusty Sword", [("sword_rusty_a",0),("sword_rusty_a_scabbard",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_longsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 321, weight(1.5)|difficulty(9)|spd_rtng(97)|weapon_length(95)|swing_damage(15, cut)|thrust_damage(12, pierce), imodbits_sword],
["worn_sword", "Worn Sword", [("sword_norman_rusty",0),("sword_norman_rusty_scabbard",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_longsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 355, weight(1.25)|difficulty(9)|spd_rtng(98)|weapon_length(91)|swing_damage(16, cut)|thrust_damage(13, pierce), imodbits_sword],
["bent_lance", "Bent Lance", [("spear",0)], itp_type_polearm|itp_offset_lance|itp_primary|itp_penalty_with_shield|itp_wooden_parry, itc_spear|itcf_carry_spear,
 364, weight(4.5)|difficulty(8)|spd_rtng(87)|weapon_length(156)|swing_damage(0, cut)|thrust_damage(16, pierce), imodbits_polearm],
["practice_sword","Practice Sword", [("pw_practice_sword",0)], itp_type_one_handed_wpn|itp_primary|itp_wooden_parry|itp_wooden_attack, itc_longsword|itcf_carry_sword_left_hip,
 103, weight(2.0)|difficulty(8)|spd_rtng(94)|weapon_length(100)|swing_damage(6, cut)|thrust_damage(6, cut), imodbits_none],
["heavy_practice_sword","Heavy Practice Sword", [("pw_heavy_practice_sword",0)], itp_type_two_handed_wpn|itp_two_handed|itp_primary|itp_wooden_parry|itp_wooden_attack, itc_greatsword|itcf_carry_sword_back,
 174, weight(3.0)|difficulty(14)|spd_rtng(90)|weapon_length(117)|swing_damage(6, cut)|thrust_damage(6, cut), imodbits_none],

["winged_mace", "Flanged Mace", [("flanged_mace",0)], itp_type_one_handed_wpn|itp_can_knock_down|itp_primary|itp_wooden_parry, itc_scimitar|itcf_carry_mace_left_hip,
 322, weight(3.0)|difficulty(7)|spd_rtng(100)|weapon_length(70)|swing_damage(26, blunt)|thrust_damage(0, pierce), imodbits_mace],
["spiked_mace", "Spiked Mace", [("spiked_mace_new",0)], itp_type_one_handed_wpn|itp_can_knock_down|itp_primary|itp_wooden_parry, itc_scimitar|itcf_carry_mace_left_hip,
 380, weight(3.5)|difficulty(8)|spd_rtng(97)|weapon_length(70)|swing_damage(30, blunt)|thrust_damage(0, pierce), imodbits_pick],
["mace_2", "Knobbed Mace", [("mace_a",0)], itp_type_one_handed_wpn|itp_can_knock_down|itp_primary|itp_wooden_parry, itc_scimitar|itcf_carry_mace_left_hip,
 198, weight(2.5)|difficulty(5)|spd_rtng(98)|weapon_length(70)|swing_damage(21, blunt)|thrust_damage(0, pierce), imodbits_mace],
["mace_4", "Winged Mace", [("mace_b",0)], itp_type_one_handed_wpn|itp_can_knock_down|itp_primary|itp_wooden_parry, itc_scimitar|itcf_carry_mace_left_hip,
 312, weight(2.5)|difficulty(5)|spd_rtng(98)|weapon_length(70)|swing_damage(24, blunt)|thrust_damage(0, pierce), imodbits_mace],
["club_with_spike_head", "Spiked Staff", [("mace_e",0)], itp_type_two_handed_wpn|itp_can_knock_down|itp_primary|itp_wooden_parry, itc_bastardsword|itcf_carry_axe_back,
 600, weight(3.5)|difficulty(12)|spd_rtng(95)|weapon_length(117)|swing_damage(24, blunt)|thrust_damage(20, pierce), imodbits_mace],
["long_spiked_club", "Long Spiked Club", [("mace_long_c",0)], itp_type_polearm|itp_can_knock_down|itp_primary|itp_wooden_parry, itc_staff|itcf_carry_axe_back,
 764, weight(3.0)|difficulty(14)|spd_rtng(96)|weapon_length(126)|swing_damage(23, pierce)|thrust_damage(20, blunt), imodbits_mace],
["long_hafted_spiked_mace", "Long Hafted Spiked Mace", [("mace_long_b",0)], itp_type_polearm|itp_can_knock_down|itp_primary|itp_wooden_parry, itc_staff|itcf_carry_axe_back,
 810, weight(4.0)|difficulty(14)|spd_rtng(94)|weapon_length(138)|swing_damage(28, blunt)|thrust_damage(26, blunt), imodbits_mace],
["fighting_pick", "Fighting Pick", [("fighting_pick_new",0)], itp_type_one_handed_wpn|itp_primary|itp_wooden_parry, itc_scimitar|itcf_carry_axe_left_hip,
 408, weight(1.0)|difficulty(8)|spd_rtng(98)|weapon_length(68)|swing_damage(24, pierce)|thrust_damage(0, pierce), imodbits_pick],
["military_pick", "Military Pick", [("steel_pick_new",0)], itp_type_one_handed_wpn|itp_primary|itp_wooden_parry, itc_scimitar|itcf_carry_axe_left_hip,
 680, weight(1.5)|difficulty(9)|spd_rtng(97)|weapon_length(68)|swing_damage(31, pierce)|thrust_damage(0, pierce), imodbits_pick],
["military_sickle", "Military Sickle", [("military_sickle_a",0)], itp_type_one_handed_wpn|itp_primary|itp_wooden_parry, itc_scimitar|itcf_carry_axe_left_hip,
 585, weight(1.0)|difficulty(8)|spd_rtng(98)|weapon_length(75)|swing_damage(27, pierce)|thrust_damage(0, pierce), imodbits_axe],
["military_hammer", "Military Hammer", [("military_hammer",0)], itp_type_one_handed_wpn|itp_can_knock_down|itp_primary|itp_wooden_parry, itc_scimitar|itcf_carry_axe_left_hip,
 543, weight(2.0)|difficulty(9)|spd_rtng(95)|weapon_length(70)|swing_damage(31, blunt)|thrust_damage(0, pierce), imodbits_mace],
["morningstar", "Morningstar", [("mace_morningstar_new",0)], itp_crush_through|itp_type_two_handed_wpn|itp_primary|itp_wooden_parry|itp_unbalanced, itc_morningstar|itcf_carry_axe_left_hip,
 1305, weight(4.5)|difficulty(15)|spd_rtng(95)|weapon_length(85)|swing_damage(38, pierce)|thrust_damage(0, pierce), imodbits_mace],
["falchion", "Falchion", [("falchion_new",0)], itp_type_one_handed_wpn|itp_primary, itc_scimitar|itcf_carry_sword_left_hip,
 335, weight(2.5)|difficulty(5)|spd_rtng(96)|weapon_length(73)|swing_damage(30, cut)|thrust_damage(0, pierce), imodbits_sword],
["curved_sword", "Curved Sword", [("khergit_sword",0),("khergit_sword_scabbard",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_longsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 654, weight(1.25)|difficulty(9)|spd_rtng(98)|weapon_length(99)|swing_damage(25, cut)|thrust_damage(14, pierce), imodbits_sword],
["sword_medieval_a", "Sword", [("sword_medieval_a",0),("sword_medieval_a_scabbard",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_longsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 663, weight(1.5)|difficulty(9)|spd_rtng(99)|weapon_length(95)|swing_damage(27, cut)|thrust_damage(22, pierce), imodbits_sword_high],
["sword_medieval_b_small", "Short Sword", [("sword_medieval_b_small",0),("sword_medieval_b_small_scabbard",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_longsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 558, weight(1.25)|difficulty(9)|spd_rtng(103)|weapon_length(82)|swing_damage(26, cut)|thrust_damage(24, pierce), imodbits_sword_high],
["sword_medieval_c_long", "Arming Sword", [("sword_medieval_c_long",0),("sword_medieval_c_long_scabbard",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_longsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 880, weight(1.5)|difficulty(10)|spd_rtng(98)|weapon_length(102)|swing_damage(27, cut)|thrust_damage(27, pierce), imodbits_sword_high],
["sword_medieval_d_long", "Knightly Sword", [("sword_medieval_d_long",0),("sword_medieval_d_long_scabbard", ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_longsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 950, weight(1.5)|difficulty(12)|spd_rtng(97)|weapon_length(102)|swing_damage(33, cut)|thrust_damage(25, pierce), imodbits_sword],
["sword_viking_c", "Nordic Sword", [("sword_viking_c",0),("sword_viking_c_scabbard",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_longsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 647, weight(1.5)|difficulty(9)|spd_rtng(99)|weapon_length(95)|swing_damage(28, cut)|thrust_damage(20, pierce), imodbits_sword_high],
["sword_viking_b_small", "Nordic Short Sword", [("sword_viking_b_small",0),("sword_viking_b_small_scabbard",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_longsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 572, weight(1.25)|difficulty(9)|spd_rtng(102)|weapon_length(82)|swing_damage(27, cut)|thrust_damage(22, pierce), imodbits_sword_high],
["sword_viking_a_long", "Nordic Long Sword", [("sword_viking_a_long",0),("sword_viking_a_long_scabbard",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_longsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 842, weight(1.5)|difficulty(10)|spd_rtng(97)|weapon_length(101)|swing_damage(29, cut)|thrust_damage(19, pierce), imodbits_sword],
["arabian_sword_a", "Arabian Sword", [("arabian_sword_a",0),("scab_arabian_sword_a",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_longsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 612, weight(1.5)|difficulty(9)|spd_rtng(99)|weapon_length(100)|swing_damage(26, cut)|thrust_damage(19, pierce), imodbits_sword_high],
["arabian_sword_b", "Arabian Arming Sword", [("arabian_sword_b",0),("scab_arabian_sword_b",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_longsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 832, weight(1.75)|difficulty(11)|spd_rtng(99)|weapon_length(100)|swing_damage(28, cut)|thrust_damage(19, pierce), imodbits_sword_high],
["arabian_sword_c", "Arabian Cavalry Sword", [("arabian_sword_c",0),("scab_arabian_sword_c",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_longsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 945, weight(2.0)|difficulty(12)|spd_rtng(97)|weapon_length(106)|swing_damage(28, cut)|thrust_damage(19, pierce), imodbits_sword_high],
["arabian_sword_d", "Arabian Guard Sword", [("arabian_sword_d",0),("scab_arabian_sword_d",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_longsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 893, weight(1.5)|difficulty(10)|spd_rtng(98)|weapon_length(100)|swing_damage(30, cut)|thrust_damage(20, pierce), imodbits_sword_high],
["scimitar", "Scimitar", [("scimitar_a",0),("scab_scimeter_a", ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_scimitar|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 750, weight(1.5)|difficulty(9)|spd_rtng(101)|weapon_length(97)|swing_damage(30, cut)|thrust_damage(0, pierce), imodbits_sword_high],
["scimitar_b", "Elite Scimitar", [("scimitar_b",0),("scab_scimeter_b", ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_scimitar|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 890, weight(1.5)|difficulty(10)|spd_rtng(100)|weapon_length(100)|swing_damage(32, cut)|thrust_damage(0, pierce), imodbits_sword_high],
["khergit_sword_c", "Sabre", [("khergit_sword_c",0),("khergit_sword_c_scabbard", ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_scimitar|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 580, weight(1.5)|difficulty(9)|spd_rtng(101)|weapon_length(88)|swing_damage(31, cut), imodbits_sword_high],
["khergit_sword_d", "Heavy Sabre", [("khergit_sword_d",0),("khergit_sword_d_scabbard", ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_scimitar|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 734, weight(1.75)|difficulty(12)|spd_rtng(98)|weapon_length(88)|swing_damage(34, cut), imodbits_sword_high],
["khergit_sword_two_handed_a", "Two Handed Sabre", [("khergit_sword_two_handed_a",0)], itp_type_two_handed_wpn|itp_two_handed|itp_primary, itc_nodachi|itcf_carry_sword_back,
 2523, weight(2.75)|difficulty(15)|spd_rtng(96)|weapon_length(113)|swing_damage(40, cut)|thrust_damage(0, pierce), imodbits_sword_high],
["two_handed_cleaver", "War Cleaver", [("military_cleaver_a",0)], itp_type_two_handed_wpn|itp_two_handed|itp_primary, itc_nodachi|itcf_carry_sword_back,
 2440, weight(2.75)|difficulty(15)|spd_rtng(93)|weapon_length(120)|swing_damage(45, cut)|thrust_damage(0, cut), imodbits_sword_high],
["military_cleaver_b", "Soldier's Cleaver", [("military_cleaver_b",0)], itp_type_one_handed_wpn|itp_primary, itc_scimitar|itcf_carry_sword_left_hip,
 693, weight(1.5)|difficulty(10)|spd_rtng(95)|weapon_length(91)|swing_damage(31, cut)|thrust_damage(0, pierce), imodbits_sword_high],
["military_cleaver_c", "Military Cleaver", [("military_cleaver_c",0)], itp_type_one_handed_wpn|itp_primary, itc_scimitar|itcf_carry_sword_left_hip,
 763, weight(1.5)|difficulty(12)|spd_rtng(95)|weapon_length(91)|swing_damage(35, cut)|thrust_damage(0, pierce), imodbits_sword_high],
["bastard_sword_a", "Bastard Sword", [("bastard_sword_a",0),("bastard_sword_a_scabbard", ixmesh_carry)], itp_type_two_handed_wpn|itp_primary, itc_bastardsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 1294, weight(2.0)|difficulty(15)|spd_rtng(98)|weapon_length(98)|swing_damage(35, cut)|thrust_damage(26, pierce), imodbits_sword_high],
["bastard_sword_b", "Heavy Bastard Sword", [("bastard_sword_b",0),("bastard_sword_b_scabbard", ixmesh_carry)], itp_type_two_handed_wpn|itp_primary, itc_bastardsword|itcf_carry_sword_left_hip|itcf_show_holster_when_drawn,
 1526, weight(2.25)|difficulty(15)|spd_rtng(97)|weapon_length(105)|swing_damage(37, cut)|thrust_damage(27, pierce), imodbits_sword_high],
["sword_two_handed_b", "Two Handed Sword", [("sword_two_handed_b",0)], itp_type_two_handed_wpn|itp_two_handed|itp_primary, itc_greatsword|itcf_carry_sword_back,
 1970, weight(2.75)|difficulty(15)|spd_rtng(97)|weapon_length(109)|swing_damage(40, cut)|thrust_damage(28, pierce), imodbits_sword_high ],
["sword_two_handed_a", "Great Sword", [("sword_two_handed_a", 0)], itp_type_two_handed_wpn|itp_two_handed|itp_primary, itc_greatsword|itcf_carry_sword_back,
 4134, weight(2.75)|difficulty(15)|spd_rtng(96)|weapon_length(119)|swing_damage(42, cut)|thrust_damage(29, pierce), imodbits_sword_high],
["one_handed_war_axe_b", "One Handed War Axe", [("one_handed_war_axe_b",0)], itp_type_one_handed_wpn|itp_primary|itp_bonus_against_shield|itp_wooden_parry, itc_scimitar|itcf_carry_axe_left_hip,
 490, weight(1.5)|difficulty(12)|spd_rtng(94)|weapon_length(71)|swing_damage(31, cut)|thrust_damage(0, pierce), imodbits_axe],
["one_handed_battle_axe_a", "One Handed Axe", [("one_handed_battle_axe_a",0)], itp_type_one_handed_wpn|itp_primary|itp_bonus_against_shield|itp_wooden_parry, itc_scimitar|itcf_carry_axe_left_hip,
 521, weight(1.5)|difficulty(12)|spd_rtng(95)|weapon_length(73)|swing_damage(29, cut)|thrust_damage(0, pierce), imodbits_axe],
["one_handed_battle_axe_b", "One Handed Battle Axe", [("one_handed_battle_axe_b",0)], itp_type_one_handed_wpn|itp_primary|itp_bonus_against_shield|itp_wooden_parry, itc_scimitar|itcf_carry_axe_left_hip,
 830, weight(1.75)|difficulty(14)|spd_rtng(97)|weapon_length(76)|swing_damage(36, cut)|thrust_damage(0, pierce), imodbits_axe],
["one_handed_battle_axe_c", "Spiked One Handed Battle Axe", [("one_handed_battle_axe_c",0)], itp_type_one_handed_wpn|itp_primary|itp_bonus_against_shield|itp_wooden_parry, itc_scimitar|itcf_carry_axe_left_hip,
 750, weight(2.0)|difficulty(14)|spd_rtng(97)|weapon_length(73)|swing_damage(37, cut)|thrust_damage(0, pierce), imodbits_axe],
["sarranid_axe_a", "Iron Battle Axe", [("one_handed_battle_axe_g",0)], itp_type_one_handed_wpn|itp_primary|itp_bonus_against_shield|itp_wooden_parry, itc_scimitar|itcf_carry_axe_left_hip,
 1150, weight(1.75)|difficulty(12)|spd_rtng(97)|weapon_length(71)|swing_damage(35, cut)|thrust_damage(0, pierce), imodbits_axe],
["sarranid_axe_b", "Iron War Axe", [("one_handed_battle_axe_h",0)], itp_type_one_handed_wpn|itp_primary|itp_bonus_against_shield|itp_wooden_parry, itc_scimitar|itcf_carry_axe_left_hip,
 1360, weight(1.75)|difficulty(12)|spd_rtng(97)|weapon_length(69)|swing_damage(38, cut)|thrust_damage(0, pierce), imodbits_axe],
["two_handed_axe", "Two Handed Axe", [("two_handed_battle_axe_a",0)], itp_type_two_handed_wpn|itp_two_handed|itp_primary|itp_bonus_against_shield|itp_wooden_parry|itp_unbalanced, itc_nodachi|itcf_carry_axe_back,
 1490, weight(4.5)|difficulty(15)|spd_rtng(96)|weapon_length(89)|swing_damage(38, cut)|thrust_damage(0, pierce), imodbits_axe],
["two_handed_battle_axe", "Two Handed War Axe", [("two_handed_battle_axe_b",0)], itp_type_two_handed_wpn|itp_two_handed|itp_primary|itp_bonus_against_shield|itp_wooden_parry|itp_unbalanced, itc_nodachi|itcf_carry_axe_back,
 2025, weight(4.5)|difficulty(15)|spd_rtng(96)|weapon_length(90)|swing_damage(44, cut)|thrust_damage(0, pierce), imodbits_axe],
["shortened_voulge", "Shortened Voulge", [("two_handed_battle_axe_c",0)], itp_type_two_handed_wpn|itp_two_handed|itp_primary|itp_bonus_against_shield|itp_wooden_parry|itp_unbalanced, itc_nodachi|itcf_carry_axe_back,
 2328, weight(5.0)|difficulty(15)|spd_rtng(92)|weapon_length(99)|swing_damage(45, cut)|thrust_damage(0, pierce), imodbits_axe],
["bardiche", "Bardiche", [("two_handed_battle_axe_d",0)], itp_type_two_handed_wpn|itp_two_handed|itp_primary|itp_bonus_against_shield|itp_wooden_parry|itp_unbalanced, itc_nodachi|itcf_carry_axe_back,
 2901, weight(5.5)|difficulty(15)|spd_rtng(91)|weapon_length(101)|swing_damage(47, cut)|thrust_damage(0, pierce), imodbits_axe],
["shortened_military_scythe", "Shortened Military Scythe", [("two_handed_battle_scythe_a",0)], itp_type_two_handed_wpn|itp_two_handed|itp_primary, itc_nodachi|itcf_carry_sword_back,
 1640, weight(2.0)|difficulty(14)|spd_rtng(90)|weapon_length(114)|swing_damage(38, cut)|thrust_damage(0, pierce), imodbits_sword_high],
["sarranid_two_handed_axe_a", "Two Handed Iron Axe", [("two_handed_battle_axe_g",0)], itp_type_two_handed_wpn|itp_two_handed|itp_primary|itp_bonus_against_shield|itp_unbalanced, itc_nodachi|itcf_carry_axe_back,
 2350, weight(5.0)|difficulty(15)|spd_rtng(89)|weapon_length(95)|swing_damage(45, cut)|thrust_damage(0, pierce), imodbits_axe],
["sarranid_two_handed_axe_b", "Two Handed Iron Axe", [("two_handed_battle_axe_h",0)], itp_type_two_handed_wpn|itp_two_handed|itp_primary|itp_bonus_against_shield|itp_unbalanced, itc_nodachi|itcf_carry_axe_back,
 2870, weight(5.5)|difficulty(15)|spd_rtng(92)|weapon_length(89)|swing_damage(47, cut)|thrust_damage(0, pierce), imodbits_axe],
["long_axe_a", "Long Axe", [("long_axe_a",0)], itp_type_polearm|itp_two_handed|itp_primary|itp_bonus_against_shield|itp_wooden_parry, itc_staff|itcf_carry_axe_back,
 3120, weight(4.5)|difficulty(15)|spd_rtng(91)|weapon_length(113)|swing_damage(46, cut)|thrust_damage(15, blunt), imodbits_axe],
["glaive", "Glaive", [("glaive_b",0)], itp_type_polearm|itp_cant_use_on_horseback|itp_primary|itp_two_handed|itp_wooden_parry, itc_staff|itcf_carry_spear,
 1752, weight(2.5)|difficulty(14)|spd_rtng(90)|weapon_length(157)|swing_damage(39, cut)|thrust_damage(21, pierce), imodbits_polearm],
["staff", "Staff", [("wooden_staff",0)], itp_type_polearm|itp_offset_lance|itp_primary|itp_penalty_with_shield|itp_wooden_parry|itp_wooden_attack, itc_staff|itcf_carry_sword_back,
 160, weight(1.5)|difficulty(8)|spd_rtng(98)|weapon_length(128)|swing_damage(15, blunt)|thrust_damage(12, blunt), imodbits_polearm],
["quarter_staff", "Quarter Staff", [("quarter_staff",0)], itp_type_polearm|itp_offset_lance|itp_primary|itp_wooden_parry|itp_wooden_attack, itc_staff|itcf_carry_sword_back,
 220, weight(2.0)|difficulty(8)|spd_rtng(97)|weapon_length(137)|swing_damage(18, blunt)|thrust_damage(13, blunt), imodbits_polearm],
["iron_staff", "Iron Staff", [("iron_staff",0)], itp_type_polearm|itp_offset_lance|itp_primary, itc_staff|itcf_carry_sword_back,
 575, weight(4.0)|difficulty(12)|spd_rtng(93)|weapon_length(128)|swing_damage(25, blunt)|thrust_damage(26, blunt), imodbits_polearm],
["shortened_spear", "Shortened Spear", [("spear_g_1-9m",0)], itp_type_polearm|itp_offset_lance|itp_primary|itp_wooden_parry, itc_staff|itcf_carry_spear,
 353, weight(2.0)|difficulty(9)|spd_rtng(102)|weapon_length(120)|swing_damage(18, blunt)|thrust_damage(24, pierce), imodbits_polearm],
["spear", "Spear", [("spear_h_2-15m",0)], itp_type_polearm|itp_offset_lance|itp_primary|itp_wooden_parry, itc_staff|itcf_carry_spear,
 485, weight(2.25)|difficulty(9)|spd_rtng(98)|weapon_length(135)|swing_damage(20, blunt)|thrust_damage(26, pierce), imodbits_polearm],
["bamboo_spear", "Bamboo Spear", [("arabian_spear_a_3m",0)], itp_type_polearm|itp_offset_lance|itp_primary|itp_penalty_with_shield|itp_wooden_parry, itc_staff|itcf_carry_spear,
 580, weight(3.0)|difficulty(14)|spd_rtng(88)|weapon_length(200)|swing_damage(15, blunt)|thrust_damage(20, pierce), imodbits_polearm],
["war_spear", "War Spear", [("spear_i_2-3m",0)], itp_type_polearm|itp_offset_lance|itp_primary|itp_wooden_parry, itc_staff|itcf_carry_spear,
 640, weight(2.5)|difficulty(10)|spd_rtng(95)|weapon_length(150)|swing_damage(20, blunt)|thrust_damage(27, pierce), imodbits_polearm],
["light_lance", "Light Lance", [("spear_b_2-75m",0)], itp_couchable|itp_type_polearm|itp_offset_lance|itp_primary|itp_penalty_with_shield|itp_wooden_parry, itc_spear|itcf_carry_spear,
 580, weight(2.5)|difficulty(12)|spd_rtng(85)|weapon_length(175)|swing_damage(16, blunt)|thrust_damage(27, pierce), imodbits_polearm],
["lance", "Lance", [("spear_d_2-8m",0)], itp_couchable|itp_type_polearm|itp_offset_lance|itp_primary|itp_penalty_with_shield|itp_wooden_parry, itc_spear|itcf_carry_spear,
 670, weight(3.0)|difficulty(14)|spd_rtng(80)|weapon_length(180)|swing_damage(16, blunt)|thrust_damage(26, pierce), imodbits_polearm],
["heavy_lance", "Heavy Lance", [("spear_f_2-9m",0)], itp_couchable|itp_type_polearm|itp_offset_lance|itp_primary|itp_penalty_with_shield|itp_wooden_parry, itc_spear|itcf_carry_spear,
 960, weight(3.5)|difficulty(14)|spd_rtng(75)|weapon_length(190)|swing_damage(16, blunt)|thrust_damage(26, pierce), imodbits_polearm],
["great_lance", "Great Lance", [("pw_great_lance",0)], itp_couchable|itp_type_polearm|itp_primary|itp_penalty_with_shield|itp_wooden_parry, itcf_carry_spear,
 1410, weight(5.0)|difficulty(14)|spd_rtng(70)|weapon_length(227)|swing_damage(0, cut)|thrust_damage(21, pierce), imodbits_polearm],
["jousting_lance", "Jousting Lance", [("pw_jousting_lance",0)], itp_couchable|itp_type_polearm|itp_primary|itp_penalty_with_shield|itp_wooden_parry, itcf_carry_spear,
 1258, weight(5.0)|difficulty(14)|spd_rtng(70)|weapon_length(226)|swing_damage(0, cut)|thrust_damage(15, blunt), imodbits_polearm],
["awlpike", "Awlpike", [("awl_pike_b",0)], itp_type_polearm|itp_cant_use_on_horseback|itp_primary|itp_penalty_with_shield|itp_wooden_parry|itp_is_pike, itc_spear|itcf_carry_spear,
 745, weight(2.25)|difficulty(14)|spd_rtng(92)|weapon_length(165)|swing_damage(20, blunt)|thrust_damage(33, pierce), imodbits_polearm],
["awlpike_long", "Long Awlpike", [("awl_pike_a",0)], itp_type_polearm|itp_cant_use_on_horseback|itp_primary|itp_penalty_with_shield|itp_wooden_parry|itp_is_pike, itc_spear|itcf_carry_spear,
 1085, weight(2.5)|difficulty(15)|spd_rtng(89)|weapon_length(185)|swing_damage(20, blunt)|thrust_damage(32, pierce), imodbits_polearm],
["pike", "Pike", [("spear_a_3m",0)], itp_type_polearm|itp_cant_use_on_horseback|itp_primary|itp_penalty_with_shield|itp_wooden_parry|itp_two_handed|itp_is_pike, itc_spear|itcf_carry_spear,
 1250, weight(3.0)|difficulty(15)|spd_rtng(81)|weapon_length(245)|swing_damage(16, blunt)|thrust_damage(26, pierce), imodbits_polearm],
["bec_de_corbin_a",  "War Hammer", [("bec_de_corbin_a",0)], itp_type_polearm|itp_cant_use_on_horseback|itp_primary|itp_penalty_with_shield|itp_wooden_parry|itp_two_handed, itc_staff|itcf_carry_spear,
 1350, weight(3.0)|difficulty(15)|spd_rtng(87)|weapon_length(120)|swing_damage(28, blunt)|thrust_damage(30, pierce), imodbits_polearm],
["bishop_crosier", "Bishop's Crosier", [("pw_bishop_crosier", 0)], itp_type_two_handed_wpn|itp_two_handed|itp_primary, itcf_thrust_onehanded|itcf_carry_bow_back,
 15238, weight(4.0)|difficulty(10)|spd_rtng(70)|weapon_length(125)|swing_damage(0, blunt)|thrust_damage(0, cut), imodbits_polearm],

["crude_bow", "Crude Bow", [("hunting_bow",0),("hunting_bow_carry",ixmesh_carry)], itp_type_bow|itp_primary|itp_two_handed|itp_cant_use_on_horseback, itcf_shoot_bow|itcf_carry_bow_back,
 260, weight(1)|difficulty(1)|weapon_length(170)|spd_rtng(82)|shoot_speed(42)|thrust_damage(9, pierce), imodbits_bow],
["bent_arrows", "Bent Arrows", [("arrow",0),("flying_missile",ixmesh_flying_ammo),("quiver",ixmesh_carry)], itp_type_arrows|itp_default_ammo, itcf_carry_quiver_back,
 61, weight(3)|weapon_length(95)|thrust_damage(0, pierce)|max_ammo(10), imodbits_missile],
["flimsy_crossbow", "Flimsy Crossbow", [("light_crossbow",0)], itp_type_crossbow|itp_primary|itp_two_handed|itp_cant_use_on_horseback, itcf_shoot_crossbow|itcf_carry_crossbow_back,
 284, weight(3)|difficulty(9)|weapon_length(85)|spd_rtng(35)|shoot_speed(57)|thrust_damage(18, pierce)|max_ammo(1), imodbits_crossbow],
["crude_bolts","Crude Bolts", [("bolt",0),("flying_missile",ixmesh_flying_ammo),("bolt_bag",ixmesh_carry)], itp_type_bolts, itcf_carry_quiver_right_vertical,
 47, weight(2.25)|weapon_length(55)|max_ammo(8), imodbits_missile],

["hunting_bow", "Hunting Bow", [("hunting_bow", 0), ("hunting_bow_carry",ixmesh_carry)], itp_type_bow|itp_primary|itp_two_handed|itp_cant_use_on_horseback, itcf_shoot_bow|itcf_carry_bow_back,
 260, weight(1)|difficulty(1)|weapon_length(170)|spd_rtng(100)|shoot_speed(52)|thrust_damage(15, pierce), imodbits_bow],
["short_bow", "Short Bow", [("short_bow",0),("short_bow_carry",ixmesh_carry)], itp_type_bow|itp_primary|itp_two_handed|itp_cant_use_on_horseback, itcf_shoot_bow|itcf_carry_bow_back,
 304, weight(1)|difficulty(1)|weapon_length(145)|spd_rtng(97)|shoot_speed(55)|thrust_damage(18, pierce), imodbits_bow],
["nomad_bow", "Nomad Bow", [("nomad_bow",0),("nomad_bow_case",ixmesh_carry)], itp_type_bow|itp_primary|itp_two_handed|itp_cant_use_on_horseback, itcf_shoot_bow|itcf_carry_bowcase_left|itcf_show_holster_when_drawn,
 414, weight(1.25)|difficulty(2)|weapon_length(95)|spd_rtng(94)|shoot_speed(56)|thrust_damage(20, pierce), imodbits_bow],
["long_bow", "Long Bow", [("long_bow",0),("long_bow_carry",ixmesh_carry)], itp_type_bow|itp_primary|itp_two_handed|itp_cant_use_on_horseback, itcf_shoot_bow|itcf_carry_bow_back,
 545, weight(1.75)|difficulty(3)|weapon_length(250)|spd_rtng(86)|shoot_speed(56)|thrust_damage(22, pierce), imodbits_bow],
["khergit_bow", "Khergit Bow", [("khergit_bow",0),("khergit_bow_case",ixmesh_carry)], itp_type_bow|itp_primary|itp_two_handed|itp_cant_use_on_horseback, itcf_shoot_bow|itcf_carry_bowcase_left|itcf_show_holster_when_drawn,
 569, weight(1.25)|difficulty(3)|weapon_length(110)|spd_rtng(90)|shoot_speed(57)|thrust_damage(21, pierce), imodbits_bow],
["strong_bow", "Strong Bow", [("strong_bow",0),("strong_bow_case",ixmesh_carry)], itp_type_bow|itp_primary|itp_two_handed|itp_cant_use_on_horseback, itcf_shoot_bow|itcf_carry_bowcase_left|itcf_show_holster_when_drawn,
 837, weight(1.25)|difficulty(3)|weapon_length(110)|spd_rtng(88)|shoot_speed(58)|thrust_damage(23, pierce), imodbits_bow],
["war_bow", "War Bow", [("war_bow",0),("war_bow_carry",ixmesh_carry)], itp_type_bow|itp_primary|itp_two_handed|itp_cant_use_on_horseback, itcf_shoot_bow|itcf_carry_bow_back,
 1328, weight(1.5)|difficulty(4)|weapon_length(205)|spd_rtng(85)|shoot_speed(59)|thrust_damage(25, pierce), imodbits_bow],
["arrows", "Arrows", [("arrow_b", 0), ("flying_missile", ixmesh_flying_ammo), ("quiver", ixmesh_carry)], itp_type_arrows|itp_default_ammo, itcf_carry_quiver_back,
 72, weight(3)|weapon_length(95)|thrust_damage(1, pierce)|max_ammo(30), imodbits_missile],
["barbed_arrows", "Barbed Arrows", [("barbed_arrow",0),("flying_missile",ixmesh_flying_ammo),("quiver_d", ixmesh_carry)], itp_type_arrows, itcf_carry_quiver_back_right,
 124, weight(3)|weapon_length(95)|thrust_damage(2,pierce)|max_ammo(30), imodbits_missile],
["khergit_arrows", "Broadhead Arrows", [("arrow",0),("flying_missile",ixmesh_flying_ammo),("quiver_b", ixmesh_carry)], itp_type_arrows, itcf_carry_quiver_back_right,
 210, weight(3.5)|weapon_length(95)|thrust_damage(3,pierce)|max_ammo(30), imodbits_missile],
["bodkin_arrows", "Bodkin Arrows", [("piercing_arrow",0),("flying_missile",ixmesh_flying_ammo),("quiver_c", ixmesh_carry)], itp_type_arrows, itcf_carry_quiver_back_right,
 220, weight(3)|weapon_length(91)|thrust_damage(3,pierce)|max_ammo(30), imodbits_missile],
["hunting_crossbow", "Hunting Crossbow", [("crossbow_a",0)], itp_type_crossbow|itp_primary|itp_two_handed|itp_cant_use_on_horseback, itcf_shoot_crossbow|itcf_carry_crossbow_back,
 562, weight(2.25)|difficulty(6)|weapon_length(99)|spd_rtng(47)|shoot_speed(50)|thrust_damage(37, pierce)|max_ammo(1), imodbits_crossbow],
["light_crossbow", "Light Crossbow", [("crossbow_b",0)], itp_type_crossbow|itp_primary|itp_two_handed|itp_cant_use_on_horseback, itcf_shoot_crossbow|itcf_carry_crossbow_back,
 778, weight(2.5)|difficulty(8)|weapon_length(100)|spd_rtng(45)|shoot_speed(59)|thrust_damage(44, pierce)|max_ammo(1), imodbits_crossbow],
["crossbow", "Crossbow", [("crossbow_a",0)], itp_type_crossbow|itp_primary|itp_two_handed|itp_cant_use_on_horseback, itcf_shoot_crossbow|itcf_carry_crossbow_back,
 1182, weight(3)|difficulty(10)|weapon_length(100)|spd_rtng(42)|shoot_speed(66)|thrust_damage(49, pierce)|max_ammo(1), imodbits_crossbow],
["heavy_crossbow", "Heavy Crossbow", [("crossbow_c",0)], itp_type_crossbow|itp_primary|itp_two_handed|itp_cant_use_on_horseback, itcf_shoot_crossbow|itcf_carry_crossbow_back,
 1749, weight(3.5)|difficulty(12)|weapon_length(101)|spd_rtng(37)|shoot_speed(68)|thrust_damage(56, pierce)|max_ammo(1), imodbits_crossbow],
["sniper_crossbow", "Siege Crossbow", [("crossbow_c",0)], itp_type_crossbow|itp_primary|itp_two_handed|itp_cant_use_on_horseback, itcf_shoot_crossbow|itcf_carry_crossbow_back,
 3483, weight(3.75)|difficulty(14)|weapon_length(105)|spd_rtng(32)|shoot_speed(70)|thrust_damage(63, pierce)|max_ammo(1), imodbits_crossbow],
["bolts", "Bolts", [("bolt",0),("flying_missile",ixmesh_flying_ammo),("bolt_bag_b", ixmesh_carry)], itp_type_bolts|itp_default_ammo|itp_can_penetrate_shield, itcf_carry_quiver_right_vertical,
 95, weight(2.25)|weapon_length(63)|thrust_damage(1,pierce)|max_ammo(29), imodbits_missile],
["steel_bolts", "Steel Bolts", [("bolt",0),("flying_missile",ixmesh_flying_ammo),("bolt_bag_c", ixmesh_carry)], itp_type_bolts|itp_can_penetrate_shield, itcf_carry_quiver_right_vertical,
 190, weight(2.5)|weapon_length(63)|thrust_damage(2,pierce)|max_ammo(29), imodbits_missile],

["old_shield", "Old Shield", [("shield_heater_c",0)], itp_type_shield|itp_wooden_parry, itcf_carry_kite_shield,
 157, weight(3.5)|hit_points(210)|body_armor(2)|spd_rtng(70)|shield_width(50), imodbits_shield],
["practice_shield", "Practice Shield", [("tableau_shield_round_5",0)], itp_type_shield|itp_wooden_parry, itcf_carry_round_shield,
 76, weight(4)|hit_points(100)|body_armor(0)|spd_rtng(90)|shield_width(50), imodbits_shield, init_heraldic_item("tableau_round_shield_5")],
["tab_shield_round_b", "Plain Round Shield", [("tableau_shield_round_3",0)], itp_type_shield|itp_wooden_parry, itcf_carry_round_shield,
 265, weight(3)|hit_points(260)|body_armor(8)|spd_rtng(90)|shield_width(50), imodbits_shield, init_heraldic_item("tableau_round_shield_3")],
["tab_shield_round_c", "Round Shield", [("tableau_shield_round_2",0)], itp_type_shield|itp_wooden_parry, itcf_carry_round_shield,
 305, weight(3.5)|hit_points(310)|body_armor(12)|spd_rtng(87)|shield_width(50), imodbits_shield, init_heraldic_item("tableau_round_shield_2")],
["tab_shield_round_d", "Heavy Round Shield", [("tableau_shield_round_1",0)], itp_type_shield|itp_wooden_parry, itcf_carry_round_shield,
 410, weight(4)|hit_points(350)|body_armor(15)|spd_rtng(84)|shield_width(50), imodbits_shield, init_heraldic_item("tableau_round_shield_1")],
["tab_shield_round_e", "Huscarl's Round Shield", [("tableau_shield_round_4",0)], itp_type_shield|itp_cant_use_on_horseback|itp_wooden_parry, itcf_carry_round_shield,
 630 , weight(5)|hit_points(380)|body_armor(16)|spd_rtng(81)|shield_width(50), imodbits_shield, init_heraldic_item("tableau_round_shield_4")],
["tab_shield_kite_b", "Plain Kite Shield", [("tableau_shield_kite_3" ,0)], itp_type_shield|itp_wooden_parry, itcf_carry_kite_shield,
 270, weight(2.5)|hit_points(215)|body_armor(10)|spd_rtng(93)|shield_width(36)|shield_height(70), imodbits_shield, init_heraldic_item("tableau_kite_shield_3")],
["tab_shield_kite_c", "Kite Shield", [("tableau_shield_kite_2" ,0)], itp_type_shield|itp_wooden_parry, itcf_carry_kite_shield,
 356, weight(3)|hit_points(265)|body_armor(13)|spd_rtng(90)|shield_width(36)|shield_height(70), imodbits_shield, init_heraldic_item("tableau_kite_shield_2")],
["tab_shield_kite_d", "Heavy Kite Shield", [("tableau_shield_kite_2" ,0)], itp_type_shield|itp_wooden_parry, itcf_carry_kite_shield,
 420, weight(3.5)|hit_points(310)|body_armor(18)|spd_rtng(87)|shield_width(36)|shield_height(70), imodbits_shield, init_heraldic_item("tableau_kite_shield_2")],
["tab_shield_kite_cav_a", "Horseman's Kite Shield", [("tableau_shield_kite_4" ,0)], itp_type_shield|itp_wooden_parry, itcf_carry_kite_shield,
 405, weight(2)|hit_points(165)|body_armor(14)|spd_rtng(103)|shield_width(30)|shield_height(50), imodbits_shield, init_heraldic_item("tableau_kite_shield_4")],
["tab_shield_kite_cav_b", "Knightly Kite Shield", [("tableau_shield_kite_4" ,0)], itp_type_shield, itcf_carry_kite_shield,
 760, weight(2.5)|hit_points(225)|body_armor(23)|spd_rtng(100)|shield_width(30)|shield_height(50), imodbits_shield, init_heraldic_item("tableau_kite_shield_4")],
["tab_shield_heater_b", "Plain Heater Shield", [("tableau_shield_heater_1" ,0)], itp_type_shield|itp_wooden_parry, itcf_carry_kite_shield,
 274, weight(2.5)|hit_points(210)|body_armor(11)|spd_rtng(93)|shield_width(36)|shield_height(70), imodbits_shield, init_heraldic_item("tableau_heater_shield_1")],
["tab_shield_heater_c", "Heater Shield", [("tableau_shield_heater_1" ,0)], itp_type_shield|itp_wooden_parry, itcf_carry_kite_shield,
 360, weight(3)|hit_points(260)|body_armor(14)|spd_rtng(90)|shield_width(36)|shield_height(70), imodbits_shield, init_heraldic_item("tableau_heater_shield_1")],
["tab_shield_heater_d", "Heavy Heater Shield", [("tableau_shield_heater_1" ,0)], itp_type_shield|itp_wooden_parry, itcf_carry_kite_shield,
 432, weight(3.5)|hit_points(305)|body_armor(19)|spd_rtng(87)|shield_width(36)|shield_height(70), imodbits_shield, init_heraldic_item("tableau_heater_shield_1")],
["tab_shield_heater_cav_a", "Horseman's Heater Shield", [("tableau_shield_heater_2" ,0)], itp_type_shield|itp_wooden_parry, itcf_carry_kite_shield,
 429, weight(2)|hit_points(160)|body_armor(16)|spd_rtng(103)|shield_width(30)|shield_height(50), imodbits_shield, init_heraldic_item("tableau_heater_shield_2")],
["tab_shield_heater_cav_b", "Knightly Heater Shield", [("tableau_shield_heater_2" ,0)], itp_type_shield|itp_wooden_parry, itcf_carry_kite_shield,
 790, weight(2.5)|hit_points(220)|body_armor(23)|spd_rtng(100)|shield_width(30)|shield_height(50), imodbits_shield, init_heraldic_item("tableau_heater_shield_2")],
["tab_shield_pavise_b", "Plain Board Shield", [("tableau_shield_pavise_2" ,0)], itp_type_shield|itp_cant_use_on_horseback|itp_wooden_parry, itcf_carry_board_shield,
 414, weight(4)|hit_points(360)|body_armor(8)|spd_rtng(85)|shield_width(43)|shield_height(100), imodbits_shield, init_heraldic_item("tableau_pavise_shield_2")],
["tab_shield_pavise_c", "Board Shield", [("tableau_shield_pavise_1" ,0)], itp_type_shield|itp_cant_use_on_horseback|itp_wooden_parry, itcf_carry_board_shield,
 610, weight(4.5)|hit_points(430)|body_armor(10)|spd_rtng(81)|shield_width(43)|shield_height(100), imodbits_shield, init_heraldic_item("tableau_pavise_shield_1")],
["tab_shield_pavise_d", "Heavy Board Shield", [("tableau_shield_pavise_1" ,0)], itp_type_shield|itp_cant_use_on_horseback|itp_wooden_parry, itcf_carry_board_shield,
 870, weight(5)|hit_points(550)|body_armor(14)|spd_rtng(78)|shield_width(43)|shield_height(100), imodbits_shield, init_heraldic_item("tableau_pavise_shield_1")],
["tab_shield_small_round_a", "Plain Cavalry Shield", [("tableau_shield_small_round_3",0)], itp_type_shield|itp_wooden_parry, itcf_carry_round_shield,
 396, weight(2)|hit_points(160)|body_armor(8)|spd_rtng(105)|shield_width(40), imodbits_shield, init_heraldic_item("tableau_small_round_shield_3")],
["tab_shield_small_round_b", "Round Cavalry Shield", [("tableau_shield_small_round_1",0)], itp_type_shield|itp_wooden_parry, itcf_carry_round_shield,
 595, weight(2.5)|hit_points(200)|body_armor(14)|spd_rtng(103)|shield_width(40), imodbits_shield, init_heraldic_item("tableau_small_round_shield_1")],
["tab_shield_small_round_c", "Elite Cavalry Shield", [("tableau_shield_small_round_2",0)], itp_type_shield, itcf_carry_round_shield,
 870, weight(3)|hit_points(250)|body_armor(22)|spd_rtng(100)|shield_width(40), imodbits_shield, init_heraldic_item("tableau_small_round_shield_2")],
["hide_covered_round_shield", "Hide Covered Round Shield", [("shield_round_f",0)], itp_type_shield|itp_wooden_parry, itcf_carry_round_shield,
 140, weight(3.5)|hit_points(260)|body_armor(3)|spd_rtng(100)|shield_width(40), imodbits_shield],
["hide_covered_kite_shield",  "Hide Covered Kite Shield", [("shield_kite_m",0)], itp_type_shield|itp_wooden_parry, itcf_carry_kite_shield,
 327, weight(5.5)|hit_points(600)|body_armor(1)|spd_rtng(76)|shield_width(38)|shield_height(71), imodbits_shield],
["steel_shield", "Steel Shield", [("shield_dragon", 0)], itp_type_shield, itcf_carry_round_shield,
 2120, weight(4)|hit_points(700)|body_armor(17)|spd_rtng(61)|shield_width(40), imodbits_shield],

["sumpter_horse", "Sumpter Horse", [("sumpter_horse",0)], itp_type_horse, 0,
 504, hit_points(100)|body_armor(14)|difficulty(1)|horse_speed(37)|horse_maneuver(39)|horse_charge(9)|horse_scale(100), imodbits_none],
["cart_horse", "Cart Horse", [("sumpter_horse",0)], itp_type_horse, 0,
 1520, hit_points(150)|body_armor(10)|difficulty(1)|horse_speed(35)|horse_maneuver(20)|horse_charge(20)|horse_scale(115), imodbits_none],
["saddle_horse", "Saddle Horse", [("saddle_horse",0)], itp_type_horse, 0,
 1208, hit_points(100)|body_armor(8)|difficulty(1)|horse_speed(43)|horse_maneuver(44)|horse_charge(10)|horse_scale(104),imodbits_none],
["steppe_horse", "Steppe Horse", [("steppe_horse",0)], itp_type_horse, 0,
 1455, hit_points(120)|body_armor(10)|difficulty(2)|horse_speed(40)|horse_maneuver(51)|horse_charge(8)|horse_scale(98), imodbits_none],
["arabian_horse_a", "Desert Horse", [("arabian_horse_a",0)], itp_type_horse, 0,
 1760, hit_points(110)|body_armor(10)|difficulty(2)|horse_speed(42)|horse_maneuver(50)|horse_charge(12)|horse_scale(100), imodbits_none],
["arabian_horse_b", "Silver Horse", [("arabian_horse_b",0)], itp_type_horse, 0,
 2090, hit_points(120)|body_armor(10)|difficulty(3)|horse_speed(43)|horse_maneuver(54)|horse_charge(16)|horse_scale(100), imodbits_none],
["courser", "Courser", [("courser",0)], itp_type_horse, 0,
 3670, hit_points(110)|body_armor(12)|difficulty(3)|horse_speed(50)|horse_maneuver(44)|horse_charge(12)|horse_scale(106), imodbits_none],
["hunter", "Hunter", [("hunting_horse",0)], itp_type_horse, 0,
 4303, hit_points(160)|body_armor(18)|difficulty(3)|horse_speed(46)|horse_maneuver(44)|horse_charge(24)|horse_scale(108), imodbits_none],
["warhorse", "War Horse", [("warhorse_chain",0)], itp_type_horse, 0,
 5400, hit_points(165)|body_armor(40)|difficulty(4)|horse_speed(44)|horse_maneuver(41)|horse_charge(28)|horse_scale(110), imodbits_none],
["warhorse_steppe","Steppe War Horse", [("warhorse_steppe",0)], itp_type_horse, 0,
 5670, hit_points(150)|body_armor(40)|difficulty(4)|horse_speed(40)|horse_maneuver(50)|horse_charge(28)|horse_scale(112), imodbits_none],
["warhorse_sarranid", "Barded War Horse", [("warhorse_sarranid",0)], itp_type_horse, 0,
 8711, hit_points(165)|body_armor(58)|difficulty(4)|horse_speed(43)|horse_maneuver(44)|horse_charge(32)|horse_scale(112), imodbits_none],
["charger", "Charger", [("charger_new",0)], itp_type_horse, 0,
 8640, hit_points(165)|body_armor(58)|difficulty(4)|horse_speed(43)|horse_maneuver(44)|horse_charge(32)|horse_scale(112), imodbits_none],
["plated_charger", "Plated Charger", [("plated_charger",0)], itp_type_horse, 0,
 10340, hit_points(180)|body_armor(65)|difficulty(4)|horse_speed(40)|horse_maneuver(45)|horse_charge(40)|horse_scale(112), imodbits_none],

["deer", "Deer", [("pw_deer",0)], itp_type_horse, 0,
 1232, hit_points(60)|body_armor(5)|difficulty(11)|horse_speed(55)|horse_maneuver(75)|horse_charge(30)|horse_scale(100), imodbits_none,
 itm_herd_animal(child_item="itm_fawn", grow_age=10, max_in_herd=10, attack_reaction=animal_reaction_flee, meat=7, hide=5, wildness=5)],
["fawn", "Fawn", [("pw_deer",0)], itp_type_horse, 0,
 426, hit_points(25)|body_armor(2)|difficulty(11)|horse_speed(45)|horse_maneuver(70)|horse_charge(5)|horse_scale(60), imodbits_none],
["boar", "Boar", [("pw_boar",0)], itp_type_horse, 0,
 859, hit_points(70)|body_armor(20)|difficulty(11)|horse_speed(40)|horse_maneuver(70)|horse_charge(250)|horse_scale(70), imodbits_none,
 itm_herd_animal(child_item="itm_boarlet", grow_age=7, max_in_herd=20, attack_reaction=animal_reaction_charge, meat=8, hide=3, wildness=3)],
["boarlet", "Boarlet", [("pw_boar",0)], itp_type_horse, 0,
 315, hit_points(30)|body_armor(10)|difficulty(11)|horse_speed(30)|horse_maneuver(65)|horse_charge(10)|horse_scale(40), imodbits_none],
["cow", "Cow", [("pw_cow",0)], itp_type_horse, 0,
 1718, hit_points(85)|body_armor(15)|difficulty(11)|horse_speed(35)|horse_maneuver(65)|horse_charge(100)|horse_scale(100), imodbits_none,
 itm_herd_animal(child_item="itm_calf", grow_age=12, max_in_herd=16, attack_reaction=animal_reaction_flee, meat=15, hide=8, wildness=1)],
["calf", "Calf", [("pw_cow",0)], itp_type_horse, 0,
 723, hit_points(45)|body_armor(8)|difficulty(11)|horse_speed(37)|horse_maneuver(60)|horse_charge(30)|horse_scale(60), imodbits_none],

["stick", "Stick", [("wooden_stick",0),("pw_stick_carry",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_scimitar|itcf_carry_quiver_back,
 53, weight(3)|spd_rtng(90)|swing_damage(5,blunt)|weapon_length(63), imodbits_none, [itm_class(item_class_wood, 200)]],
["stick_melee", "Stick", [("wooden_stick",0),("pw_stick_carry",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_scimitar|itcf_carry_quiver_back,
 53, weight(3)|spd_rtng(90)|swing_damage(5,blunt)|weapon_length(63), imodbits_none, [itm_class(item_class_wood, 200)]],
["branch", "Branch", [("pw_branch_a",0),("pw_branch_b",imodbit_heavy),("pw_branch_c",imodbit_battered)], itp_type_polearm|itp_primary|itp_two_handed|itp_cant_use_on_horseback, itcf_thrust_polearm|itcf_overswing_polearm|itcf_carry_spear,
 124, weight(25)|spd_rtng(30)|weapon_length(250)|swing_damage(20,blunt)|thrust_damage(10,blunt), imodbit_cracked|imodbit_bent, [itm_class(item_class_wood, 1000)]],
["wood_pole_short", "Short Wooden Pole", [("pw_wood_pole_short",0)], itp_type_polearm|itp_primary|itp_two_handed|itp_cant_use_on_horseback, itc_poleaxe|itcf_carry_spear,
 108, weight(7)|spd_rtng(75)|weapon_length(92)|swing_damage(15,blunt)|thrust_damage(10,blunt), imodbits_none, [itm_class(item_class_wood, 400)]],
["wood_pole", "Wooden Pole", [("pw_wood_pole",0)], itp_type_polearm|itp_primary|itp_two_handed|itp_cant_use_on_horseback, itcf_thrust_polearm|itcf_overswing_polearm|itc_parry_polearm|itcf_carry_spear,
 221, weight(15)|spd_rtng(70)|weapon_length(150)|swing_damage(20,blunt)|thrust_damage(10,blunt), imodbits_none, [itm_class(item_class_wood, 800)]],
["wood_block", "Wood Block", [("pw_wood_block_a",0),("pw_wood_block_b",imodbit_heavy),("pw_wood_block_c",imodbit_battered)], itp_type_polearm|itp_two_handed|itp_primary, itcf_thrust_onehanded|itcf_carry_bow_back,
 142, weight(30)|spd_rtng(50)|weapon_length(32)|swing_damage(5,blunt)|thrust_damage(5,blunt), imodbits_none, [itm_class(item_class_wood, 1600)]],
["board", "Board", [("pw_board",0)], itp_type_one_handed_wpn|itp_primary, itc_dagger|itcf_carry_axe_back,
 210, weight(10)|spd_rtng(60)|weapon_length(50)|swing_damage(10,blunt)|thrust_damage(10,blunt), imodbits_none, [itm_class(item_class_wood, 400)]],
["iron_ore_small", "Small Iron Ore", [("pw_iron_ore_small",0)], itp_type_polearm|itp_two_handed|itp_primary, itcf_carry_bow_back,
 400, weight(30)|spd_rtng(60)|swing_damage(7,blunt)|thrust_damage(7,blunt)|weapon_length(50), imodbits_none, [itm_class(item_class_iron, 0)]],
["iron_ore", "Iron Ore", [("pw_iron_ore",0)], itp_type_polearm|itp_two_handed|itp_primary, itcf_carry_bow_back,
 850, weight(60)|spd_rtng(50)|swing_damage(10,blunt)|thrust_damage(10,blunt)|weapon_length(50), imodbits_none, [itm_class(item_class_iron, 0)]],
["iron_piece", "Iron Piece", [("pw_iron_piece",0)], itp_type_one_handed_wpn|itp_primary, itc_dagger|itcf_carry_bow_back,
 100, weight(5)|spd_rtng(80)|swing_damage(5,blunt)|thrust_damage(5,blunt)|weapon_length(20), imodbits_none, [itm_class(item_class_iron, 325)]],
["iron_bar_short", "Short Iron Bar", [("pw_iron_bar_short",0)], itp_type_one_handed_wpn|itp_primary, itc_dagger|itcf_carry_bow_back,
 220, weight(10)|spd_rtng(70)|swing_damage(10,blunt)|thrust_damage(10,blunt)|weapon_length(25), imodbits_none, [itm_class(item_class_iron, 750)]],
["iron_bar", "Iron Bar", [("pw_iron_bar",0)], itp_type_one_handed_wpn|itp_primary, itc_scimitar|itcf_carry_bow_back,
 450, weight(20)|spd_rtng(60)|swing_damage(15,blunt)|thrust_damage(10,blunt)|weapon_length(60), imodbits_none, [itm_class(item_class_iron, 1500)]],
["iron_bar_long", "Long Iron Bar", [("pw_iron_bar_long",0)], itp_type_polearm|itp_two_handed|itp_primary, itc_parry_polearm|itcf_carry_bow_back,
 1000, weight(40)|spd_rtng(50)|swing_damage(20,blunt)|thrust_damage(10,blunt)|weapon_length(100), imodbits_none, [itm_class(item_class_iron, 3000)]],
["gold_nugget", "Gold Nugget", [("pw_gold_nugget",0)], itp_type_one_handed_wpn|itp_primary, itc_dagger|itcf_carry_pistol_front_left,
 11000, weight(10)|spd_rtng(70)|swing_damage(5,blunt)|thrust_damage(5,blunt)|weapon_length(20), imodbits_none, [itm_class(item_class_precious, 0)]],
["gold_bar", "Gold Bar", [("pw_gold_bar",0)], itp_type_one_handed_wpn|itp_primary, itc_dagger|itcf_carry_revolver_right,
 70000, weight(30)|spd_rtng(60)|swing_damage(10,blunt)|thrust_damage(10,blunt)|weapon_length(20), imodbits_none, [itm_class(item_class_precious, 0)]],
["silver_nugget", "Silver Nugget", [("pw_silver_nugget",0)], itp_type_one_handed_wpn|itp_primary, itc_dagger|itcf_carry_pistol_front_left,
 6000, weight(7)|spd_rtng(70)|swing_damage(5,blunt)|thrust_damage(5,blunt)|weapon_length(20), imodbits_none, [itm_class(item_class_precious, 0)]],
["silver_bar", "Silver Bar", [("pw_silver_bar",0)], itp_type_one_handed_wpn|itp_primary, itc_dagger|itcf_carry_revolver_right,
 40000, weight(15)|spd_rtng(60)|swing_damage(8,blunt)|thrust_damage(8,blunt)|weapon_length(20), imodbits_none, [itm_class(item_class_precious, 0)]],
["flax_bundle", "Flax Bundle", [("pw_flax_bundle",0)], itp_type_one_handed_wpn|itp_two_handed|itp_primary|itp_no_parry, itcf_carry_bow_back,
 50, weight(4)|spd_rtng(20)|weapon_length(45), imodbits_none, [itm_class(item_class_cloth, 0)]],
["linen_thread", "Linen Thread", [("pw_linen_thread",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_dagger_front_right,
 91, weight(2)|spd_rtng(90)|weapon_length(45), imodbits_none, [itm_class(item_class_cloth, 0)]],
["linen_cloth", "Linen Cloth", [("pw_linen_cloth",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_axe_back,
 220, weight(5)|spd_rtng(60)|weapon_length(80), imodbits_none, [itm_class(item_class_cloth, 400)]],
["linen_cloth_small", "Small Linen Cloth", [("pw_linen_cloth_small",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_axe_back,
 55, weight(1)|spd_rtng(70)|weapon_length(60), imodbits_none, [itm_class(item_class_cloth, 100)]],
["raw_hide", "Raw Hide", [("pw_raw_hide",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itcf_carry_axe_back,
 257, weight(15)|spd_rtng(20)|weapon_length(60), imodbits_none, [itm_class(item_class_leather, 0)]],
["leather_roll", "Leather Roll", [("pw_leather_roll",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_bow_back,
 354, weight(5)|spd_rtng(20)|weapon_length(50)|swing_damage(4,blunt)|thrust_damage(4,blunt), imodbits_none, [itm_class(item_class_leather, 400)]],
["leather_piece", "Leather Piece", [("pw_leather_piece",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_axe_back,
 87, weight(1)|spd_rtng(20)|weapon_length(50)|swing_damage(2,blunt)|thrust_damage(2,blunt), imodbits_none, [itm_class(item_class_leather, 100)]],
["saddle", "Saddle", [("pw_saddle",0)], itp_type_polearm|itp_two_handed|itp_primary|itp_no_parry, itcf_carry_axe_back,
 745, weight(30)|weapon_length(100), imodbits_none],
["horse_armor", "Horse Armor", [("pw_horse_armor",0)], itp_type_polearm|itp_two_handed|itp_primary|itp_no_parry, itcf_carry_axe_back,
 2103, weight(50)|weapon_length(120), imodbits_none],

["hatchet", "Hatchet", [("pw_hatchet",0)], itp_type_one_handed_wpn|itp_primary|itp_wooden_parry, itc_scimitar|itcf_carry_axe_left_hip,
 40, weight(3)|spd_rtng(75)|weapon_length(50)|swing_damage(10,cut)|thrust_damage(0,pierce), imodbits_none, [itm_class(item_class_wood_cutting)]],
["small_mining_pick", "Small Mining Pick", [("pw_small_mining_pick",0),("pw_small_mining_pick_inv",ixmesh_inventory)], itp_type_one_handed_wpn|itp_primary|itp_unbalanced|itp_wooden_parry, itc_parry_polearm|itcf_overswing_polearm|itcf_carry_axe_back,
 193, weight(3)|spd_rtng(70)|weapon_length(70)|swing_damage(15,pierce)|thrust_damage(0,pierce), imodbits_none, [itm_class(item_class_mining)]],
["woodcutter_axe", "Woodcutter's Axe", [("pw_wood_axe",0)], itp_type_two_handed_wpn|itp_two_handed|itp_bonus_against_shield|itp_primary|itp_wooden_parry|itp_unbalanced|itp_cant_use_on_horseback, itc_nodachi|itcf_carry_axe_back,
 245, weight(4)|spd_rtng(80)|weapon_length(72)|swing_damage(20,cut)|thrust_damage(0,pierce), imodbits_none, [itm_class(item_class_wood_cutting)]],
["mining_pick", "Mining Pick", [("pw_mining_pick",0),("pw_mining_pick_inv",ixmesh_inventory)], itp_type_polearm|itp_two_handed|itp_primary|itp_unbalanced|itp_cant_use_on_horseback, itc_parry_polearm|itcf_overswing_polearm|itcf_carry_axe_back,
 423, weight(5)|spd_rtng(70)|weapon_length(93)|swing_damage(30,pierce)|thrust_damage(0,pierce), imodbits_none, [itm_class(item_class_mining)]],
["repair_hammer", "Repair Hammer", [("pw_repair_hammer",0)], itp_type_one_handed_wpn|itp_primary|itp_wooden_parry, itc_scimitar|itcf_carry_bow_back,
 634, weight(3)|spd_rtng(92)|weapon_length(65)|swing_damage(5,blunt)|thrust_damage(0,pierce), imodbits_none, [itm_class(item_class_repair)]],
["lock_pick", "Lock Pick", [("pw_lock_pick",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger,
 1260, weight(0.25)|spd_rtng(100)|weapon_length(23)|swing_damage(1,blunt)|thrust_damage(5,pierce), imodbits_none, [itm_class(item_class_lock_pick)]],
["admin_lock_pick", "Admin Lock Pick", [("pw_lock_pick",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger,
 0, weight(0.25)|difficulty(30)|spd_rtng(100)|weapon_length(23)|swing_damage(20,blunt)|thrust_damage(25,pierce), imodbits_none, [itm_class(item_class_lock_pick)]],
["bucket", "Bucket", [("pw_bucket",0),("pw_bucket_ground",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itcf_slashright_onehanded,
 240, weight(5)|spd_rtng(70)|weapon_length(100)|swing_damage(5,blunt), imodbits_none, [(ti_on_weapon_attack, [(store_trigger_param_1, ":agent_id"), (call_script, "script_cf_use_bucket", ":agent_id")])]],
["water_bucket", "Water Bucket", [("pw_bucket_water",0),("pw_bucket_water_ground",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itcf_slashright_onehanded,
 250, weight(40)|spd_rtng(50)|weapon_length(100)|swing_damage(10,blunt), imodbits_none],
["fishing_spear", "Fishing Spear", [("pw_fishing_spear",0)], itp_type_polearm|itp_primary|itp_two_handed|itp_cant_use_on_horseback|itp_wooden_parry, itc_spear|itcf_carry_spear,
 340, weight(2.25)|spd_rtng(55)|weapon_length(183)|swing_damage(0, cut)|thrust_damage(10, pierce), imodbits_none,
 [(ti_on_weapon_attack, [(position_move_y, pos1, 270), (store_trigger_param_1, ":agent_id"), (call_script, "script_cf_use_fishing_tool", ":agent_id")])]],
["fishing_net", "Fishing Net", [("pw_fishing_net_b",0),("pw_fishing_net_a",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary|itp_two_handed|itp_cant_use_on_horseback, itcf_slashright_onehanded,
 823, weight(5)|spd_rtng(40)|weapon_length(50)|swing_damage(0, cut)|thrust_damage(0, cut), imodbits_none,
 [(ti_on_weapon_attack, [(position_move_y, pos1, -50), (position_move_z, pos1, -200), (store_trigger_param_1, ":agent_id"), (call_script, "script_cf_use_fishing_tool", ":agent_id")])]],
["blunt_sickle", "Blunt Sickle", [("pw_sickle",0)], itp_type_one_handed_wpn|itp_primary|itp_cant_use_on_horseback|itp_no_parry, itcf_slashright_onehanded|itcf_carry_dagger_front_right,
 65, weight(0.75)|difficulty(0)|spd_rtng(75)|weapon_length(100)|swing_damage(6, cut)|thrust_damage(0, cut), imodbits_none, [itm_class(item_class_grain_harvesting)]],
["sickle", "Sickle", [("pw_sickle",0)], itp_type_one_handed_wpn|itp_primary|itp_cant_use_on_horseback|itp_no_parry, itcf_slashright_onehanded|itcf_carry_dagger_front_right,
 136, weight(0.5)|difficulty(0)|spd_rtng(80)|weapon_length(100)|swing_damage(10, cut)|thrust_damage(0, cut), imodbits_none, [itm_class(item_class_grain_harvesting)]],
["scythe", "Scythe", [("pw_scythe",0)], itp_type_polearm|itp_two_handed|itp_primary|itp_no_parry|itp_unbalanced|itp_cant_use_on_horseback, itcf_slashleft_polearm|itcf_carry_spear,
 549, weight(2)|difficulty(0)|spd_rtng(70)|weapon_length(160)|swing_damage(25, cut)|thrust_damage(0, cut), imodbits_polearm, [itm_class(item_class_grain_harvesting)]],
["kitchen_knife", "Kitchen Knife", [("pw_kitchen_knife",0)], itp_type_one_handed_wpn|itp_primary|itp_secondary|itp_no_parry, itc_dagger|itcf_carry_dagger_front_right,
 68, weight(0.25)|difficulty(0)|spd_rtng(100)|weapon_length(40)|swing_damage(10, cut)|thrust_damage(6, pierce), imodbits_sword, [itm_class(item_class_knife)]],
["cleaver", "Butchering Cleaver", [("cleaver_new",0)], itp_type_one_handed_wpn|itp_primary|itp_secondary|itp_no_parry, itc_cleaver|itcf_carry_dagger_front_right,
 247, weight(1.5)|difficulty(0)|spd_rtng(103)|weapon_length(48)|swing_damage(26, cut)|thrust_damage(0, pierce), imodbits_sword, [itm_class(item_class_knife), itm_butchering_knife()]],
["knife", "Knife", [("peasant_knife_new",0)], itp_type_one_handed_wpn|itp_primary|itp_secondary|itp_no_parry, itc_dagger|itcf_carry_dagger_front_right,
 306, weight(0.5)|difficulty(0)|spd_rtng(110)|weapon_length(55)|swing_damage(21, cut)|thrust_damage(13, pierce), imodbits_sword, [itm_class(item_class_knife)]],
["butchering_knife", "Butchering Knife", [("khyber_knife_new",0)], itp_type_one_handed_wpn|itp_primary|itp_secondary|itp_no_parry, itc_dagger|itcf_carry_dagger_front_left,
 473, weight(0.75)|difficulty(0)|spd_rtng(108)|weapon_length(70)|swing_damage(24, cut)|thrust_damage(17, pierce), imodbits_sword, [itm_class(item_class_knife), itm_butchering_knife()]],
["broom", "Broom", [("pw_broom",0),("pw_broom_inv",ixmesh_inventory)], itp_type_polearm|itp_primary|itp_two_handed|itp_cant_use_on_horseback|itp_no_parry, itc_staff|itcf_carry_spear,
 39, weight(2.5)|difficulty(0)|spd_rtng(60)|weapon_length(130)|swing_damage(3, blunt)|thrust_damage(1, blunt), imodbits_none],
["herding_crook", "Herding Crook", [("pw_herding_crook",0)], itp_type_two_handed_wpn|itp_two_handed|itp_primary|itp_wooden_parry|itp_wooden_attack|itp_unbalanced|itp_cant_use_on_horseback|itp_next_item_as_melee, itc_nodachi|itcf_carry_axe_back,
 120, weight(1.5)|difficulty(0)|spd_rtng(70)|weapon_length(108)|swing_damage(10, blunt), imodbits_polearm, [itm_class(item_class_herding_rouse)]],
["herding_crook_alt", "Herding Crook", [("pw_herding_crook",0)], itp_type_polearm|itp_two_handed|itp_primary|itp_wooden_parry|itp_wooden_attack|itp_unbalanced|itp_cant_use_on_horseback, itc_staff|itcf_carry_axe_back,
 120, weight(1.5)|difficulty(0)|spd_rtng(60)|weapon_length(108)|swing_damage(10, blunt)|thrust_damage(9, blunt), imodbits_polearm, [itm_class(item_class_herding_calm)]],

["fish", "Fish", [("pw_fish",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_dagger_front_right,
 68, weight(1)|spd_rtng(72)|weapon_length(45)|swing_damage(2,cut), imodbits_none, [itm_class(item_class_food, 6)]],
["cooked_fish", "Cooked Fish", [("pw_fish_cooked",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_dagger_front_right,
 114, weight(1)|spd_rtng(70)|weapon_length(45)|swing_damage(1,cut), imodbits_none, [itm_class(item_class_food, 40)]],
["salted_fish", "Salted Fish", [("pw_fish",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_dagger_front_right,
 140, weight(1)|spd_rtng(70)|weapon_length(45)|swing_damage(1,cut), imodbits_none, [itm_class(item_class_food, 20)]],
["wheat_sack", "Wheat Sack", [("pw_throwing_wheat",0),("pw_thrown_wheat",ixmesh_flying_ammo),("pw_wheat_sack",ixmesh_carry),("pw_wheat_sack",ixmesh_inventory)], itp_type_thrown|itp_primary|itp_cant_use_on_horseback, itcf_throw_stone|itcf_carry_quiver_right_vertical|itcf_show_holster_when_drawn,
 75, weight(0.25)|spd_rtng(90)|weapon_length(20)|shoot_speed(10)|max_ammo(10), imodbits_none, [itm_throw_wheat_trigger()]],
["wheat_sheaf", "Wheat Sheaf", [("pw_wheat_sheaf",0)], itp_type_one_handed_wpn|itp_two_handed|itp_primary|itp_no_parry, itcf_slashleft_onehanded|itcf_slashright_onehanded|itcf_carry_bow_back,
 80, weight(3)|spd_rtng(60)|weapon_length(45)|swing_damage(7,blunt), imodbits_none, [itm_class(item_class_food, 0)]],
["flour_sack", "Flour Sack", [("pw_flour_sack",0),("pw_flour_sack_carry",ixmesh_carry)], itp_type_polearm|itp_two_handed|itp_primary|itp_cant_use_on_horseback|itp_no_parry, itcf_carry_quiver_back,
 324, weight(25)|weapon_length(100), imodbits_none, [itm_class(item_class_food, 0)]],
["bread", "Bread", [("pw_bread_a",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_bowcase_left,
 136, weight(1)|spd_rtng(65)|weapon_length(20)|swing_damage(1,cut), imodbits_none, [itm_class(item_class_food, 50)]],
["beer_cask", "Beer Cask", [("pw_beer_cask",0),("pw_beer_cask_carry",ixmesh_carry)], itp_type_polearm|itp_two_handed|itp_primary|itp_cant_use_on_horseback|itp_no_parry, itcf_carry_bow_back,
 360, weight(18)|spd_rtng(20)|weapon_length(100), imodbits_none, [itm_class(item_class_food, 112)]],
["beer_jug", "Beer Jug", [("pw_beer_jug",0)], itp_type_one_handed_wpn|itp_two_handed|itp_primary|itp_no_parry, itc_dagger|itcf_carry_bowcase_left,
 90, weight(3)|spd_rtng(70)|weapon_length(40)|swing_damage(4,cut), imodbits_none, [itm_class(item_class_food, 28)]],
["grapes", "Grapes", [("pw_grape_bunch",0),("pw_grape_a",imodbit_old),("pw_grape_b",imodbit_fine)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_dagger_front_right,
 34, weight(0.25)|spd_rtng(90)|weapon_length(25)|swing_damage(0,cut), imodbits_none, [itm_class(item_class_food, 4)]],
["must_barrel", "Must Barrel", [("pw_must_barrel",0),("pw_must_barrel_carry",ixmesh_carry)], itp_type_polearm|itp_two_handed|itp_primary|itp_cant_use_on_horseback|itp_no_parry, itcf_carry_bow_back,
 160, weight(3)|spd_rtng(20)|weapon_length(100), imodbits_none, [itm_class(item_class_food, 44)]],
["wine_barrel", "Wine Barrel", [("pw_wine_barrel",0),("pw_wine_barrel_carry",ixmesh_carry)], itp_type_polearm|itp_two_handed|itp_primary|itp_cant_use_on_horseback|itp_no_parry, itcf_carry_bow_back,
 816, weight(20)|spd_rtng(20)|weapon_length(100), imodbits_none, [itm_class(item_class_food, 144)]],
["wine_jar", "Wine Jar", [("pw_wine_jar",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_bowcase_left,
 204, weight(5)|spd_rtng(65)|weapon_length(50)|swing_damage(4,cut), imodbits_none, [itm_class(item_class_food, 36)]],
["raw_meat", "Raw Meat", [("pw_meat_raw",0)], itp_type_polearm|itp_two_handed|itp_cant_use_on_horseback|itp_primary, itc_dagger|itcf_carry_bow_back,
 112, weight(25)|spd_rtng(65)|weapon_length(53)|swing_damage(10,blunt), imodbits_none, [itm_class(item_class_food, 10)]],
["cooked_meat", "Cooked Meat", [("pw_meat_cooked",0)], itp_type_polearm|itp_two_handed|itp_cant_use_on_horseback|itp_primary, itc_dagger|itcf_carry_bow_back,
 316, weight(25)|spd_rtng(60)|weapon_length(53)|swing_damage(8,blunt), imodbits_none, [itm_class(item_class_food, 65)]],
["salted_meat", "Salted Meat", [("pw_meat_salted",0)], itp_type_polearm|itp_two_handed|itp_cant_use_on_horseback|itp_primary, itc_dagger|itcf_carry_bow_back,
 386, weight(25)|spd_rtng(60)|weapon_length(53)|swing_damage(8,blunt), imodbits_none, [itm_class(item_class_food, 40)]],
["meat_pie", "Meat Pie", [("pw_meat_pie",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_bowcase_left,
 280, weight(4)|spd_rtng(65)|weapon_length(20)|swing_damage(1,cut), imodbits_none, [itm_class(item_class_food, 75)]],
["red_apple", "Red Apple", [("pw_apple_red",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_quiver_right_vertical,
 20, weight(0.25)|spd_rtng(90)|weapon_length(25)|swing_damage(0,cut), imodbits_none, [itm_class(item_class_food, 8)]],
["apple_pie", "Apple Pie", [("pw_apple_pie",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_bowcase_left,
 190, weight(4)|spd_rtng(65)|weapon_length(20)|swing_damage(1,cut), imodbits_none, [itm_class(item_class_food, 57)]],
["carrot", "Carrot", [("pw_carrot",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_dagger_front_right,
 30, weight(0.25)|spd_rtng(90)|weapon_length(25)|swing_damage(0,cut), imodbits_none, [itm_class(item_class_food, 8)]],
["salt_sack", "Salt Sack", [("pw_salt_sack",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_quiver_right_vertical,
 800, weight(2.0)|spd_rtng(60)|swing_damage(5,blunt)|thrust_damage(5,blunt)|weapon_length(20), imodbits_none, [itm_class(item_class_food, 0)]],
["salt", "Salt", [("pw_salt",0)], itp_type_one_handed_wpn|itp_primary, itc_dagger,
 100, weight(0.25)|spd_rtng(70)|swing_damage(5,blunt)|thrust_damage(5,blunt)|weapon_length(20), imodbits_none, [itm_class(item_class_food, 0)]],

["surgeon_scalpel", "Surgeon's Scalpel", [("dagger_b",0),("dagger_b_scabbard",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itcf_thrust_onehanded|itcf_carry_dagger_front_left|itcf_show_holster_when_drawn,
 730, weight(0.75)|difficulty(0)|spd_rtng(50)|weapon_length(36)|thrust_damage(15, pierce), imodbits_sword],
["admin_scalpel", "Admin Scalpel", [("dagger_b",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itcf_thrust_onehanded,
 0, weight(0.75)|difficulty(30)|spd_rtng(100)|weapon_length(50)|thrust_damage(15, pierce), imodbits_sword],
["healing_herb", "Herb", [("pw_herb_a",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itcf_thrust_onehanded|itcf_carry_dagger_front_left,
 240, weight(0.25)|difficulty(0)|spd_rtng(50)|weapon_length(40)|thrust_damage(1, cut), imodbits_none],
["poison_herb", "Herb", [("pw_herb_b",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itcf_thrust_onehanded|itcf_carry_dagger_front_left,
 325, weight(0.25)|difficulty(0)|spd_rtng(50)|weapon_length(40)|thrust_damage(1, cut), imodbits_none],

["dagger", "Dagger", [("dagger",0),("scab_dagger",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_dagger_front_left|itcf_show_holster_when_drawn,
 533, weight(0.75)|difficulty(0)|spd_rtng(105)|weapon_length(47)|swing_damage(18,cut)|thrust_damage(24,pierce), imodbits_sword],
["poisoned_dagger", "Poisoned Dagger", [("pw_dagger_poison",0),("scab_dagger",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_dagger|itcf_carry_dagger_front_left|itcf_show_holster_when_drawn,
 1570, weight(0.75)|difficulty(0)|spd_rtng(105)|weapon_length(47)|swing_damage(18,cut)|thrust_damage(24,pierce), imodbits_sword],
["thin_lance", "Thin Lance", [("spear_d_2-8m",0)], itp_couchable|itp_type_polearm|itp_offset_lance|itp_primary|itp_penalty_with_shield|itp_wooden_parry, itc_spear|itcf_carry_spear,
 230, weight(3.0)|difficulty(14)|spd_rtng(80)|weapon_length(180)|swing_damage(16, blunt)|thrust_damage(26, pierce), imodbits_polearm],
["broken_lance", "Broken Lance", [("pw_broken_lance",0)], itp_type_polearm|itp_no_pick_up_from_ground, 0,
 0, weight(3.0)|difficulty(14)|spd_rtng(0)|weapon_length(180)|swing_damage(0, blunt)|thrust_damage(0, blunt), imodbits_polearm],

["money_bag", "Money Bag", [("pw_money_bag_hold",0),("pw_money_bag",ixmesh_carry),("pw_money_bag_inv",ixmesh_inventory)], itp_type_one_handed_wpn|itp_primary, itcf_carry_quiver_front_right|itcf_thrust_onehanded,
 0, weight(1)|spd_rtng(80), imodbits_none, [(ti_on_weapon_attack, [(store_trigger_param_1, ":agent_id"), (call_script, "script_cf_use_money_bag_item", ":agent_id")])]],

["torch", "Torch", [("pw_torch", 0),("pw_torch",ixmesh_carry)], itp_type_one_handed_wpn|itp_primary, itc_scimitar|itcf_carry_spear,
 50, weight(2.5)|difficulty(0)|spd_rtng(95)|weapon_length(95)|swing_damage(5,blunt)|thrust_damage(0,pierce), imodbits_none,
 [(ti_on_init_item,
   [(set_position_delta, 0, 60, 0),
    (particle_system_add_new, "psys_torch_fire"),
    (particle_system_add_new, "psys_torch_smoke"),
    (set_current_color,150, 130, 70),
    (add_point_light, 10, 30),
    ])
  ]],

["book_a", "Book of Clothing", [("pw_book_a",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_scimitar|itcf_carry_revolver_right,
 3203, weight(2)|spd_rtng(80)|weapon_length(50), imodbits_none, [itm_read_book_trigger("str_book_of_clothing")]],
["book_b", "Book of Weapons", [("pw_book_b",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_scimitar|itcf_carry_revolver_right,
 7324, weight(2)|spd_rtng(80)|weapon_length(50), imodbits_none, [itm_read_book_trigger("str_book_of_weapons")]],
["book_c", "Book of Armor", [("pw_book_c",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_scimitar|itcf_carry_revolver_right,
 12030, weight(2)|spd_rtng(80)|weapon_length(50), imodbits_none, [itm_read_book_trigger("str_book_of_armor")]],
["book_d", "Book of Healing", [("pw_book_d",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_scimitar|itcf_carry_revolver_right,
 1076, weight(2.5)|spd_rtng(80)|weapon_length(50), imodbits_none, [itm_read_book_trigger("str_book_of_healing")]],
["book_e", "Book", [("pw_book_e",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itc_scimitar|itcf_carry_revolver_right,
 20634, weight(2.25)|spd_rtng(80)|weapon_length(50), imodbits_none],
["book_f", "Sacred Book", [("pw_book_f",0)], itp_type_one_handed_wpn|itp_primary|itp_no_parry|itp_next_item_as_melee, itcf_slashright_onehanded|itcf_carry_revolver_right,
 46400, weight(2)|spd_rtng(80)|weapon_length(50), imodbits_none, [itm_swap_item_trigger(this_item="itm_book_f", other_item="itm_book_f_open")]],
["book_f_open", "Sacred Book", [("pw_book_f_held",0),("pw_book_f_open",ixmesh_carry),("pw_book_f",ixmesh_inventory)], itp_type_two_handed_wpn|itp_two_handed|itp_primary|itp_no_parry, itcf_thrust_onehanded|itcf_carry_revolver_right,
 46400, weight(2)|spd_rtng(80)|weapon_length(50), imodbits_none, [itm_swap_item_trigger(this_item="itm_book_f_open", other_item="itm_book_f")]],

["lyre", "Lyre", [("pw_lyre",0),("pw_lyre_carry",ixmesh_carry)], itp_type_polearm|itp_two_handed|itp_primary|itp_cant_use_on_horseback|itp_no_parry, itcf_carry_axe_back,
 659, weight(1.75)|weapon_length(80), imodbits_none],
["lute", "Lute", [("pw_lute",0),("pw_lute_carry",ixmesh_carry)], itp_type_polearm|itp_two_handed|itp_primary|itp_cant_use_on_horseback|itp_no_parry, itcf_carry_axe_back,
 850, weight(2.5)|weapon_length(85), imodbits_none],
["dart", "Dart", [("pw_dart",0)], itp_type_thrown|itp_primary, itcf_throw_javelin|itcf_carry_quiver_right_vertical,
 35, weight(1)|difficulty(0)|spd_rtng(90)|shoot_speed(21)|thrust_damage(0, blunt)|max_ammo(3)|weapon_length(32), imodbits_thrown],
["die", "Die", [("pw_die",0),("pw_die_inv",ixmesh_inventory)], itp_type_one_handed_wpn|itp_primary|itp_no_parry, itcf_carry_pistol_front_left,
 120, weight(0.25)|weapon_length(30), imodbits_none],

itm_faction_banner("a01"),
itm_faction_banner("a02"),
itm_faction_banner("a03"),
itm_faction_banner("a04"),
itm_faction_banner("a05"),
itm_faction_banner("a06"),
itm_faction_banner("a07"),
itm_faction_banner("a08"),
itm_faction_banner("a09"),
itm_faction_banner("a10"),
itm_faction_banner("a11"),
itm_faction_banner("a12"),
itm_faction_banner("a13"),
itm_faction_banner("a14"),
itm_faction_banner("a15"),
itm_faction_banner("a16"),
itm_faction_banner("a17"),
itm_faction_banner("a18"),
itm_faction_banner("a19"),
itm_faction_banner("a20"),
itm_faction_banner("a21"),
itm_faction_banner("b01"),
itm_faction_banner("b02"),
itm_faction_banner("b03"),
itm_faction_banner("b04"),
itm_faction_banner("b05"),
itm_faction_banner("b06"),
itm_faction_banner("b07"),
itm_faction_banner("b08"),
itm_faction_banner("b09"),
itm_faction_banner("b10"),
itm_faction_banner("b11"),
itm_faction_banner("b12"),
itm_faction_banner("b13"),
itm_faction_banner("b14"),
itm_faction_banner("b15"),
itm_faction_banner("b16"),
itm_faction_banner("b17"),
itm_faction_banner("b18"),
itm_faction_banner("b19"),
itm_faction_banner("b20"),
itm_faction_banner("b21"),
itm_faction_banner("c01"),
itm_faction_banner("c02"),
itm_faction_banner("c03"),
itm_faction_banner("c04"),
itm_faction_banner("c05"),
itm_faction_banner("c06"),
itm_faction_banner("c07"),
itm_faction_banner("c08"),
itm_faction_banner("c09"),
itm_faction_banner("c10"),
itm_faction_banner("c11"),
itm_faction_banner("c12"),
itm_faction_banner("c13"),
itm_faction_banner("c14"),
itm_faction_banner("c15"),
itm_faction_banner("c16"),
itm_faction_banner("c17"),
itm_faction_banner("c18"),
itm_faction_banner("c19"),
itm_faction_banner("c20"),
itm_faction_banner("c21"),
itm_faction_banner("d01"),
itm_faction_banner("d02"),
itm_faction_banner("d03"),
itm_faction_banner("d04"),
itm_faction_banner("d05"),
itm_faction_banner("d06"),
itm_faction_banner("d07"),
itm_faction_banner("d08"),
itm_faction_banner("d09"),
itm_faction_banner("d10"),
itm_faction_banner("d11"),
itm_faction_banner("d12"),
itm_faction_banner("d13"),
itm_faction_banner("d14"),
itm_faction_banner("d15"),
itm_faction_banner("d16"),
itm_faction_banner("d17"),
itm_faction_banner("d18"),
itm_faction_banner("d19"),
itm_faction_banner("d20"),
itm_faction_banner("d21"),
itm_faction_banner("e01"),
itm_faction_banner("e02"),
itm_faction_banner("e03"),
itm_faction_banner("e04"),
itm_faction_banner("e05"),
itm_faction_banner("e06"),
itm_faction_banner("e07"),
itm_faction_banner("e08"),
itm_faction_banner("e09"),
itm_faction_banner("e10"),
itm_faction_banner("e11"),
itm_faction_banner("e12"),
itm_faction_banner("e13"),
itm_faction_banner("e14"),
itm_faction_banner("e15"),
itm_faction_banner("e16"),
itm_faction_banner("e17"),
itm_faction_banner("e18"),
itm_faction_banner("e19"),
itm_faction_banner("e20"),
itm_faction_banner("e21"),
itm_faction_banner("f01"),
itm_faction_banner("f02"),
itm_faction_banner("f03"),
itm_faction_banner("f04"),
itm_faction_banner("f05"),
itm_faction_banner("f06"),
itm_faction_banner("f07"),
itm_faction_banner("f08"),
itm_faction_banner("f09"),
itm_faction_banner("f10"),
itm_faction_banner("f11"),
itm_faction_banner("f12"),
itm_faction_banner("f13"),
itm_faction_banner("f14"),
itm_faction_banner("f15"),
itm_faction_banner("f16"),
itm_faction_banner("f17"),
itm_faction_banner("f18"),
itm_faction_banner("f19"),
itm_faction_banner("f20"),
itm_faction_banner("f21"),
itm_faction_banner("g01"),
itm_faction_banner("g02"),
itm_faction_banner("g03"),
itm_faction_banner("g04"),
itm_faction_banner("g05"),
itm_faction_banner("g06"),
itm_faction_banner("g07"),
itm_faction_banner("g08"),
itm_faction_banner("g09"),
itm_faction_banner("g10"),
itm_faction_banner("g11"),
itm_faction_banner("g12"),
itm_faction_banner("g13"),
itm_faction_banner("g14"),
itm_faction_banner("g15"),
itm_faction_banner("g16"),
itm_faction_banner("g17"),
itm_faction_banner("g18"),
itm_faction_banner("g19"),
itm_faction_banner("g20"),
itm_faction_banner("g21"),
itm_faction_banner("h01"),
itm_faction_banner("h02"),
itm_faction_banner("h03"),
itm_faction_banner("h04"),
itm_faction_banner("h05"),
itm_faction_banner("h06"),
itm_faction_banner("h07"),
itm_faction_banner("h08"),
itm_faction_banner("h09"),
itm_faction_banner("h10"),
itm_faction_banner("h11"),
itm_faction_banner("h12"),
itm_faction_banner("h13"),
itm_faction_banner("h14"),
itm_faction_banner("h15"),
itm_faction_banner("h16"),
itm_faction_banner("h17"),
itm_faction_banner("h18"),
itm_faction_banner("h19"),
itm_faction_banner("h20"),
itm_faction_banner("h21"),
itm_faction_banner("i01"),
itm_faction_banner("i02"),
itm_faction_banner("i03"),
itm_faction_banner("i04"),
itm_faction_banner("i05"),
itm_faction_banner("i06"),
itm_faction_banner("i07"),
itm_faction_banner("i08"),
itm_faction_banner("i09"),
itm_faction_banner("i10"),
itm_faction_banner("i11"),
itm_faction_banner("i12"),
itm_faction_banner("i13"),
itm_faction_banner("i14"),
itm_faction_banner("i15"),
itm_faction_banner("i16"),
itm_faction_banner("i17"),
itm_faction_banner("i18"),
itm_faction_banner("i19"),
itm_faction_banner("i20"),
itm_faction_banner("i21"),
itm_faction_banner("j01"),
itm_faction_banner("j02"),
itm_faction_banner("j03"),
itm_faction_banner("j04"),
itm_faction_banner("j05"),
itm_faction_banner("j06"),
itm_faction_banner("j07"),
itm_faction_banner("j08"),
itm_faction_banner("j09"),
itm_faction_banner("j10"),
itm_faction_banner("j11"),
itm_faction_banner("j12"),
itm_faction_banner("j13"),
itm_faction_banner("j14"),
itm_faction_banner("j15"),
itm_faction_banner("j16"),
itm_faction_banner("j17"),
itm_faction_banner("j18"),
itm_faction_banner("j19"),
itm_faction_banner("j20"),
itm_faction_banner("j21"),
itm_faction_banner("k01"),
itm_faction_banner("k02"),
itm_faction_banner("k03"),
itm_faction_banner("k04"),
itm_faction_banner("k05"),
itm_faction_banner("k06"),
itm_faction_banner("k07"),
itm_faction_banner("k08"),
itm_faction_banner("k09"),
itm_faction_banner("k10"),
itm_faction_banner("k11"),
itm_faction_banner("k12"),
itm_faction_banner("k13"),
itm_faction_banner("k14"),
itm_faction_banner("k15"),
itm_faction_banner("k16"),
itm_faction_banner("k17"),
itm_faction_banner("k18"),
itm_faction_banner("k19"),
itm_faction_banner("k20"),
itm_faction_banner("k21"),
itm_faction_banner("l01"),
itm_faction_banner("l02"),
itm_faction_banner("l03"),
itm_faction_banner("l04"),
itm_faction_banner("l05"),
itm_faction_banner("l06"),
itm_faction_banner("l07"),
itm_faction_banner("l08"),
itm_faction_banner("l09"),
itm_faction_banner("l10"),
itm_faction_banner("l11"),
itm_faction_banner("l12"),
itm_faction_banner("l13"),
itm_faction_banner("l14"),
itm_faction_banner("l15"),
itm_faction_banner("l16"),
itm_faction_banner("l17"),
itm_faction_banner("l18"),
itm_faction_banner("l19"),
itm_faction_banner("l20"),
itm_faction_banner("l21"),
itm_faction_banner("m01"),
itm_faction_banner("m02"),
itm_faction_banner("m03"),
itm_faction_banner("m04"),
itm_faction_banner("m05"),
itm_faction_banner("m06"),
itm_faction_banner("m07"),
itm_faction_banner("m08"),
itm_faction_banner("m09"),
itm_faction_banner("m10"),
itm_faction_banner("m11"),
itm_faction_banner("m12"),
itm_faction_banner("m13"),
itm_faction_banner("kingdom_a"),
itm_faction_banner("kingdom_b"),
itm_faction_banner("kingdom_c"),
itm_faction_banner("kingdom_d"),
itm_faction_banner("kingdom_e"),
itm_faction_banner("kingdom_f"),
itm_faction_banner("kingdom_g"),
itm_castle_banner("fac_1", "a"),
itm_castle_banner("fac_2", "a"),
itm_castle_banner("fac_3", "a"),
itm_castle_banner("fac_4", "a"),
itm_castle_banner("fac_5", "a"),
itm_castle_banner("fac_6", "a"),
itm_castle_banner("fac_7", "a"),
itm_castle_banner("fac_8", "a"),
itm_castle_banner("fac_1", "b"),
itm_castle_banner("fac_2", "b"),
itm_castle_banner("fac_3", "b"),
itm_castle_banner("fac_4", "b"),
itm_castle_banner("fac_5", "b"),
itm_castle_banner("fac_6", "b"),
itm_castle_banner("fac_7", "b"),
itm_castle_banner("fac_8", "b"),
itm_wall_banner("fac_1", "a"),
itm_wall_banner("fac_2", "a"),
itm_wall_banner("fac_3", "a"),
itm_wall_banner("fac_4", "a"),
itm_wall_banner("fac_5", "a"),
itm_wall_banner("fac_6", "a"),
itm_wall_banner("fac_7", "a"),
itm_wall_banner("fac_8", "a"),
itm_wall_banner("fac_1", "b"),
itm_wall_banner("fac_2", "b"),
itm_wall_banner("fac_3", "b"),
itm_wall_banner("fac_4", "b"),
itm_wall_banner("fac_5", "b"),
itm_wall_banner("fac_6", "b"),
itm_wall_banner("fac_7", "b"),
itm_wall_banner("fac_8", "b"),

["admin_horse", "Admin Horse", [("plated_charger_black",0)], itp_type_horse, 0,
 0, hit_points(500)|body_armor(100)|difficulty(0)|horse_speed(400)|horse_maneuver(100)|horse_charge(50)|horse_scale(130), imodbit_spirited],
["invisible_head", "Invisible Head", [("invisible",0)], itp_type_head_armor|itp_covers_head, 0,
 0, weight(1)|head_armor(80)|difficulty(30), imodbits_none],
["invisible_body", "Invisible Body", [("invisible",0)], itp_type_body_armor|itp_covers_legs, 0,
 0, weight(1)|body_armor(80)|leg_armor(30)|difficulty(30), imodbits_none],
["invisible_foot", "Invisible Foot", [("invisible",0)], itp_type_foot_armor|itp_attach_armature, 0,
 0, weight(1)|leg_armor(65)|difficulty(30), imodbits_none],
["invisible_hand", "Invisible Hand", [("invisible_L",0)], itp_type_hand_armor, 0,
 0, weight(1)|body_armor(20)|difficulty(30), imodbits_none],
["invisible_sword", "Invisible Sword", [("invisible",0)], itp_type_two_handed_wpn|itp_two_handed|itp_primary, itc_greatsword|itcf_carry_sword_back,
 0, weight(1)|difficulty(30)|spd_rtng(120)|weapon_length(120)|swing_damage(255, cut)|thrust_damage(255, pierce), imodbits_sword_high],

["all_items_end", "all_items_end", [("invisible",0)], itp_no_pick_up_from_ground, 0, 0, 0, 0],
["pointer_arrow", "pointer_arrow", [("pointer_arrow",0)], itp_no_pick_up_from_ground, 0, 0, 0, 0],
["animal_herd_manager", "animal_herd_manager", [("invisible",0)], itp_no_pick_up_from_ground, 0, 0, 0, 0],
["animal_carcass", "animal_carcass", [("pw_blood_a",0)], itp_no_pick_up_from_ground, 0, 0, 0, 0],
["agent_corpse", "agent_corpse", [("pw_blood_b",imodbit_plain),("pw_blood_c",imodbit_cracked),("pw_dropped_armor",imodbit_rusty)], itp_no_pick_up_from_ground, 0, 0, 0, 0],
]

item_lengths_list = []
item_difficulties_list = []
item_class_list = []
herd_animal_list = []

itm_weapons = frozenset([itp_type_one_handed_wpn, itp_type_two_handed_wpn, itp_type_polearm, itp_type_bow, itp_type_crossbow, itp_type_thrown])
itc_attack_capable = itcf_thrust_onehanded|itcf_overswing_onehanded|itcf_slashright_onehanded|itcf_slashleft_onehanded|\
  itcf_thrust_twohanded|itcf_overswing_twohanded|itcf_slashright_twohanded|itcf_slashleft_twohanded|\
  itcf_thrust_polearm|itcf_overswing_polearm|itcf_slashright_polearm|itcf_slashleft_polearm|\
  itcf_shoot_bow|itcf_shoot_javelin|itcf_shoot_crossbow|itcf_throw_stone|itcf_throw_knife|itcf_throw_axe|itcf_throw_javelin|itcf_shoot_pistol|itcf_shoot_musket|\
  itcf_horseback_thrust_onehanded|itcf_horseback_overswing_right_onehanded|itcf_horseback_overswing_left_onehanded|\
  itcf_horseback_slashright_onehanded|itcf_horseback_slashleft_onehanded|itcf_thrust_onehanded_lance|itcf_thrust_onehanded_lance_horseback|\
  itcf_horseback_slash_polearm|itcf_overswing_spear|itcf_overswing_musket|itcf_thrust_musket

def pre_process_items():
  for item_id, item in enumerate(items):
    item_length = get_weapon_length(item[6])
    item_lengths_list.append(item_length)
    item_difficulty = get_difficulty(item[6])
    item_difficulties_list.append(item_difficulty)
    item_type = item[3] & 0xff
    if item_type in (itp_type_bow, itp_type_crossbow):
      item[6] &= ~(ibf_10bit_mask << iwf_weapon_length_bits)
    if not item_type == itp_type_horse and not item_difficulty >= 30:
      item[6] &= ~(ibf_armor_mask << ibf_difficulty_bits)
    item_len = len(item)
    if item_type in itm_weapons and item_difficulty > 0 and item[4] & itc_attack_capable:
      check_can_attack = (ti_on_weapon_attack,
       [(store_trigger_param_1, ":agent_id"),
        (agent_slot_eq, ":agent_id", slot_agent_cannot_attack, 1),
        (agent_set_wielded_item, ":agent_id", -1)])
      if item_len <= 8:
        item.extend([0] * (8 - item_len) + [[check_can_attack]])
      else:
        item[8].append(check_can_attack)
    if item_len <= 8:
      continue
    trigger_list = item[8]
    triggers_to_pop = []
    for i, trigger in enumerate(trigger_list):
      if trigger[0] == tag_item_class:
        list_entry = [item_id]
        list_entry.extend(trigger[1:])
        item_class_list.append(list_entry)
        if trigger[1] == item_class_food and trigger[2] > 0:
          trigger_list[i] = (ti_on_weapon_attack,
           [(store_trigger_param_1, ":agent_id"),
            (call_script, "script_cf_eat_food", ":agent_id", item_id),
            ])
        else:
          triggers_to_pop.append(i)
      elif trigger[0] == tag_item_herd_animal:
        herd_animal_list.append([item_id] + trigger[1:])
        triggers_to_pop.append(i)
    for i in reversed(triggers_to_pop):
      trigger_list.pop(i)
pre_process_items()

#################################################################################################################### #  Each item record contains the following fields: #  1) Item id: used for referencing items in other files. #     The prefix itm_ is automatically added before each item id. #  2) Item name. Name of item as it'll appear in inventory window #  3) List of meshes.  Each mesh record is a tuple containing the following fields: #    3.1) Mesh name. #    3.2) Modifier bits that this mesh matches. #     Note that the first mesh record is the default. #  4) Item flags. See header_items.py for a list of available flags. #  5) Item capabilities. Used for which animations this item is used with. See header_items.py for a list of available flags. #  6) Item value. #  7) Item stats: Bitwise-or of various stats about the item such as: #      weight, abundance, difficulty, head_armor, body_armor,leg_armor, etc... #  8) Modifier bits: Modifiers that can be applied to this item. #  9) [Optional] Triggers: List of simple triggers to be associated with the item. #  10) [Optional] Factions: List of factions that item can be found as merchandise. #################################################################################################################### # Some constants for ease of use. # Set a class for this item - listed in module_constants prefixed with item_class_ - with an optional associated value. # Mark a horse item as a herd animal. Only use for the adult item, not the child. # Display the agent's heraldic banner or color on special item meshes, specifying the appropriate entry from module_tableau_materials. # Template for faction banner items. # When adding a new banner texture, remember to add an entry to module_meshes in the correct place, and set an appropriate background color in module_scripts. # Template for castle capture point banner items (display only, not allowing pickup). # Template for castle wall banner items (display only, not allowing pickup). # Swap between different items when swinging, to change visual appearance. # Attempt to process a nearby animal when swinging.