spritediv = {x = 1, y = 1},
initial_sprite_basepos = {x = 0, y = 0},
is_visible = false,
- infotext = "",
},
itemstring = '',
local c = s
local itemtable = stack:to_table()
local itemname = nil
- local description = ""
if itemtable then
itemname = stack:to_table().name
end
if core.registered_items[itemname] then
item_texture = core.registered_items[itemname].inventory_image
item_type = core.registered_items[itemname].type
- description = core.registered_items[itemname].description
end
local prop = {
is_visible = true,
visual_size = {x = s, y = s},
collisionbox = {-c, -c, -c, c, c, c},
automatic_rotate = math.pi * 0.5,
- infotext = description,
}
self.object:set_properties(prop)
end,