Differences From
Artifact [a284aef5fe]:
113 113 local glow = v.glow
114 114 local id = 'potion_' .. string.lower(n)
115 115 local desc = 'A ' .. ((glow and 'glowing ') or '') ..
116 116 'bottle of ' .. string.lower(n) ..
117 117 ((kind == 'sparkle' and ', fiercely bubbling') or '') ..
118 118 ' liquid'
119 119 local fullname = n .. ' Potion'
120 + sorcery.register.liquid.link('sorcery:'..id, {
121 + name = 'Serene Potion';
122 + color = v.color;
123 + proto = v;
124 + kind = 'sorcery:potion';
125 + measure = function(amt) return string.format('%s draughts', amt / 3) end;
126 + containers = {
127 + ['vessels:glass_bottle'] = 'sorcery:' .. id;
128 + };
129 + })
120 130 sorcery.register_potion(id, fullname, desc, color, kind, glow, {
121 - _proto = v;
122 131 groups = {
123 132 sorcery_potion = 1;
124 133 sorcery_magical = 1;
134 + };
135 + _proto = v;
136 + _sorcery = {
137 + container = {
138 + type = 'vessel';
139 + hold = 'liquid';
140 + has = 'sorcery:' .. id;
141 + empty = 'vessels:glass_bottle';
142 + charge = 3;
143 + };
125 144 };
126 145 })
127 146 create_infusion_recipe(id,v,'sorcery:potion_serene',{data=v,name=fullname})
128 147 end)
129 148
130 149 -- for n,potion in pairs(sorcery.data.draughts) do
131 150 sorcery.register.draughts.foreach('sorcery:mknodes',{},function(n,potion)