local lib = starlit.mod.lib
local M = {
	canisterSizes = lib.registry.mk 'starlit_material:canister-size';
}
M.canisterSizes.foreach('starlit_material:canister_link', {}, function(id, sz)
	starlit.item.canister.link(minetest.get_current_modname() .. ':canister_' .. id, {
		name = sz.name;
		slots = sz.slots;
		vol = sz.vol; -- too big for suit?
		desc = sz.desc;
	})
end)
M.canisterSizes.meld {
	tiny    = {name = 'Tiny Canister',    vol = 1.0};
	small   = {name = 'Small Canister',   vol = 2.0};
	mid     = {name = 'Canister',         vol = 4.0};
	large   = {name = 'Large Canister',   vol = 8.0};
	storage = {name = 'Storage Canister', vol = 16.0};
}

starlit.mod.material = M

starlit.include 'elements'
starlit.include 'liquids'
starlit.include 'metals'

