Differences From
Artifact [bf24fbd87b]:
97 97 groups = {
98 98 sorcery_potion = 2;
99 99 sorcery_draught = 1;
100 100 sorcery_magical = 1;
101 101 sorcery_usable_magic = 1;
102 102 };
103 103 on_use = function(stack, user, pointat)
104 - if potion.effect(stack, user) == false then return nil end
104 + local pproto = stack:get_definition()._proto
105 + if potion.effect(stack, user, pproto) == false then return nil end
105 106 local meta = stack:get_meta()
106 107 local force = meta:get_int('force');
107 108 minetest.add_particlespawner {
108 109 amount = 200 + (30 * force);
109 - time = stack:get_definition()._proto:duration(meta);
110 + time = pproto:duration(meta);
110 111 minpos = { x = -0.1; y = 0; z = -0.1; };
111 112 maxpos = { x = 0.1; y = 2; z = 0.1; };
112 113 minvel = { x = -0.1; y = 0; z = -0.1; };
113 114 maxvel = { x = 0.1; y = 0; z = 0.1; };
114 115 minacc = { x = 0; y = 0.1; z = 0; };
115 116 maxacc = { x = 0; y = 1; z = 0; };
116 117 minexptime = 1;