@@ -116,13 +116,32 @@ 'bottle of ' .. string.lower(n) .. ((kind == 'sparkle' and ', fiercely bubbling') or '') .. ' liquid' local fullname = n .. ' Potion' + sorcery.register.liquid.link('sorcery:'..id, { + name = 'Serene Potion'; + color = v.color; + proto = v; + kind = 'sorcery:potion'; + measure = function(amt) return string.format('%s draughts', amt / 3) end; + containers = { + ['vessels:glass_bottle'] = 'sorcery:' .. id; + }; + }) sorcery.register_potion(id, fullname, desc, color, kind, glow, { - _proto = v; groups = { sorcery_potion = 1; sorcery_magical = 1; + }; + _proto = v; + _sorcery = { + container = { + type = 'vessel'; + hold = 'liquid'; + has = 'sorcery:' .. id; + empty = 'vessels:glass_bottle'; + charge = 3; + }; }; }) create_infusion_recipe(id,v,'sorcery:potion_serene',{data=v,name=fullname}) end)