Baseless/helpers/CreateContainer.lua

13 lines
213 B
Lua

function CreateContainer (type, prototype)
return CreateEntityWithHealth(
type,
MergeTables(
prototype,
{
inventory_size = 1,
picture = Baseless.Sprite,
}
)
)
end