Honor modded bag capacity

This commit is contained in:
erereck
2026-08-01 00:32:00 -03:00
parent 9bcfdb1f0d
commit 6e724cedf7
17 changed files with 136 additions and 38 deletions
+1 -1
View File
@@ -214,7 +214,7 @@ function VERBS.give(self, rest)
end
elseif game.data.items and game.data.items[id] then
local n = tonumber(count) or 1
if require("src.inventory.Bag").add(save, id, n) then
if require("src.inventory.Bag").add(save, id, n, game.data) then
self:print(("%s x%d added"):format(id, n))
else
self:print("bag full")