1
Inventory = Class:extend {
5
add = function(self, item)
7
item.invTile.x = 50 * #self.items
8
self.items[item.name] = item
10
remove = function(self, name)
11
self.had[name] = self.items[name]
12
self.items[name] = nil
15
for _, item in pairs(self.items) do
21
the.inventory = Inventory:new()