mirror of
https://github.com/badvision/lawless-legends.git
synced 2025-02-09 09:31:57 +00:00
Unequip already equipped weapons
This commit is contained in:
parent
95e4651123
commit
3ec8b61811
@ -209,7 +209,9 @@ def _party_doPlayerSheet(num)
|
|||||||
rawDisplayStr(@strWhichItem)
|
rawDisplayStr(@strWhichItem)
|
||||||
item = itemNum(player, getUpperKey() - 'A')
|
item = itemNum(player, getUpperKey() - 'A')
|
||||||
if item
|
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)
|
unequip(player, item->t_type, item=>s_itemKind)
|
||||||
item->b_flags = item->b_flags | ITEM_FLAG_EQUIP
|
item->b_flags = item->b_flags | ITEM_FLAG_EQUIP
|
||||||
calcPlayerArmor(player)
|
calcPlayerArmor(player)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user