Unequip already equipped weapons

This commit is contained in:
David Schmenk 2016-07-14 18:42:33 -07:00
parent 95e4651123
commit 3ec8b61811

View File

@ -209,7 +209,9 @@ def _party_doPlayerSheet(num)
rawDisplayStr(@strWhichItem)
item = itemNum(player, getUpperKey() - 'A')
if item
if item->t_type == TYPE_WEAPON or item->t_type == TYPE_ARMOR
if item->t_type == TYPE_WEAPON and item->b_flags & ITEM_FLAG_EQUIP
item->b_flags = item->b_flags & ~ITEM_FLAG_EQUIP
elsif item->t_type == TYPE_WEAPON or item->t_type == TYPE_ARMOR
unequip(player, item->t_type, item=>s_itemKind)
item->b_flags = item->b_flags | ITEM_FLAG_EQUIP
calcPlayerArmor(player)