mirror of
https://github.com/redstrate/Kawari.git
synced 2025-07-10 16:07:45 +00:00
InspectPlayer: add quantity amount to the print statements for the inventory
This commit is contained in:
parent
3b6fcb7ba1
commit
4841a5e469
1 changed files with 2 additions and 1 deletions
|
@ -72,7 +72,8 @@ function onCommand(args, player)
|
||||||
printf(player, "--- Page %s ---", page_num)
|
printf(player, "--- Page %s ---", page_num)
|
||||||
for slot_num, slot in pairs(page.slots) do
|
for slot_num, slot in pairs(page.slots) do
|
||||||
if slot.id ~= NO_ITEM then
|
if slot.id ~= NO_ITEM then
|
||||||
printf(player, "slot %s: (id: %s, condition: %s%%)", slot_num, slot.id, getItemCondition(slot.condition))
|
printf(player, "slot %s: (id: %s, condition: %s%%, quantity: %s)",
|
||||||
|
slot_num, slot.id, getItemCondition(slot.condition), slot.quantity)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue