1
Inventory = Class:extend {
5
add = function(self, item)
7
item.invTile.x = 50 * #self.items
8
self.items[item.name] = item
9
the.app.view:flash({0,255,0})
11
remove = function(self, name)
12
self.had[name] = self.items[name]
13
self.items[name] = nil
16
for _, item in pairs(self.items) do
22
the.inventory = Inventory:new()