Put some code to check list removal. Clean up local strings in inventory

This commit is contained in:
David Schmenk 2016-07-15 15:04:02 -07:00
parent e43e042b2a
commit ba71bb7fb3
2 changed files with 7 additions and 1 deletions

View File

@ -1187,7 +1187,7 @@ def displayPlayerData(player)
pi = pi=>p_nextObj
loop
if pi
rightJustifyStr(pi->s_name, CHAR_WND_WEAPON_X)
rightJustifyStr(pi=>s_name, CHAR_WND_WEAPON_X)
else
rightJustifyStr("Fists", CHAR_WND_WEAPON_X)
fin

View File

@ -287,7 +287,12 @@ def _party_doPlayerSheet(num)
next
rawDisplayStr(@strYouSure)
if getYN()
i = countList(player=>p_items)
removeFromList(@player=>p_items, item)
if countList(player=>p_items) <> i - 1
displayStr("remove List error!")
getUpperKey()
fin
calcPlayerArmor(player)
fin
fin
@ -313,6 +318,7 @@ def _party_doPlayerSheet(num)
// All done
otherwise return
wend
tossStrings() // Free up local strings
until 0
end