1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-07-09 23:47:46 +00:00

InspectPlayer: add quantity amount to the print statements for the inventory

This commit is contained in:
The Dax 2025-07-01 11:39:24 -04:00 committed by Joshua Goins
parent 3b6fcb7ba1
commit 4841a5e469

View file

@ -72,7 +72,8 @@ function onCommand(args, player)
printf(player, "--- Page %s ---", page_num)
for slot_num, slot in pairs(page.slots) do
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