VoidShot/scripts/items.lua
Hannah-Dagemark 3a3bea1ead World Gen #3, Inventory #2
-- Added item interaction
-- Changed inventory management slightly
-- Added slide-show system to world, world can now "move" to show more space.
2023-10-16 08:44:17 +02:00

15 lines
No EOL
290 B
Lua

itemgen = {}
function itemgen.create(type, commands)
local object = {}
for i=1, #commands do
object[commands][i][1] = commands[i][2]
end
return object
end
function itemgen.createFromWorld(id)
item = {}
item.name = World.map.items[id][1]
return item
end