mirror of
https://github.com/badvision/lawless-legends.git
synced 2025-02-12 14:30:43 +00:00
Put some code to check list removal. Clean up local strings in inventory
This commit is contained in:
parent
e43e042b2a
commit
ba71bb7fb3
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user