Im having some trouble with this op:
it seems to be returning true for half the item types, probably because the flags are:
and itp_type_two_handed_wpn & itp_type_horse == 1 == itp_type_horse
my solution was just using a bunch of other item_has_property with neg| :
anyone got a better solution?
Code:
item_has_property = 2723 # (item_has_property, <item_kind_no>, <property>),
# Version 1.161+. Check that the item has specified property flag set. See the list of itp_* flags in header_items.py.
it seems to be returning true for half the item types, probably because the flags are:
Code:
itp_type_horse = 0x0000000000000001
itp_type_one_handed_wpn = 0x0000000000000002
itp_type_two_handed_wpn = 0x0000000000000003
itp_type_polearm = 0x0000000000000004
itp_type_arrows = 0x0000000000000005
itp_type_bolts = 0x0000000000000006
itp_type_shield = 0x0000000000000007
itp_type_bow = 0x0000000000000008
itp_type_crossbow = 0x0000000000000009
itp_type_thrown = 0x000000000000000a
itp_type_goods = 0x000000000000000b
itp_type_head_armor = 0x000000000000000c
itp_type_body_armor = 0x000000000000000d
itp_type_foot_armor = 0x000000000000000e
itp_type_hand_armor = 0x000000000000000f
itp_type_pistol = 0x0000000000000010
itp_type_musket = 0x0000000000000011
itp_type_bullets = 0x0000000000000012
itp_type_animal = 0x0000000000000013
itp_type_book = 0x0000000000000014
my solution was just using a bunch of other item_has_property with neg| :
Code:
(item_has_property, free_item, itp_type_horse),
(neg|item_has_property, free_item, itp_type_one_handed_wpn),
(neg|item_has_property, free_item, itp_type_two_handed_wpn),
(neg|item_has_property, free_item, itp_type_polearm),
(neg|item_has_property, free_item, itp_type_arrows),
(neg|item_has_property, free_item, itp_type_bolts),
(neg|item_has_property, free_item, itp_type_shield),
(neg|item_has_property, free_item, itp_type_bow),
(neg|item_has_property, free_item, itp_type_crossbow),
(neg|item_has_property, free_item, itp_type_thrown),
(neg|item_has_property, free_item, itp_type_goods),
(neg|item_has_property, free_item, itp_type_head_armor),
(neg|item_has_property, free_item, itp_type_body_armor),
(neg|item_has_property, free_item, itp_type_foot_armor),
(neg|item_has_property, free_item, itp_type_hand_armor),
(neg|item_has_property, free_item, itp_type_pistol),
(neg|item_has_property, free_item, itp_type_musket),
(neg|item_has_property, free_item, itp_type_bullets),
(neg|item_has_property, free_item, itp_type_animal),
(neg|item_has_property, free_item, itp_type_book),
anyone got a better solution?