Differences From
Artifact [dc765bd287]:
206 206 else
207 207 local dir = vector.subtract(tgt.above,tgt.under)
208 208 minvel = vector.multiply(dir, 0.3)
209 209 maxvel = vector.multiply(dir, 1.2)
210 210 end
211 211 print(minetest.get_player_by_name('singleplayer'))
212 212 return minetest.add_particlespawner {
213 - amount = 450;--50;
214 - time = 2;--0.5;
213 + amount = 50;
214 + time = 0.5;
215 215 -- old syntax
216 216 minpos = vector.subtract(tgt.under, 0.5);
217 217 maxpos = vector.add(tgt.under, 0.5);
218 218 minvel = minvel, maxvel = maxvel;
219 219 minexptime = 1, maxexptime = 2;
220 220 minsize = 0.5, maxsize = 2;
221 221 texture = L.image('sorcery_spark.png'):multiply(color):render();
222 -
223 - --new syntax
224 - -- can't use this shit until it gets merged :(
225 - -- pos = {
226 - -- min = vector.subtract(tgt.under, 0.5);
227 - -- max = vector.add(tgt.under, 0.5);
228 - -- };
229 --- pos = {
230 --- min = vector.subtract(tgt.under, 0.8);
231 --- max = vector.add (tgt.under, 0.8);
232 --- };
233 --- vel_tween = {
234 --- {min = minvel, max = maxvel};
235 --- {min = minvel * 3, max = maxvel * 3};
236 --- };
237 --- acc = {
238 --- min = vector.new(0,-2,0);
239 --- max = vector.new(0,-5,0);
240 --- };
241 --- bounce = { min = 0.3, max = 2 };
242 --- exptime = { min = 0.5, max = 10 };
243 --- size = { min = 0.5, max = 1 };
244 --- collisiondetection = true;
245 ---
246 --- texpool = {
247 --- {
248 --- img = L.image('sorcery_spark.png'):multiply(color):render();
249 --- -- img = 'sorcery_inferno_crystal.png';
250 --- alpha_tween = { 0.8, 1; style = 'pulse', reps = 4};
251 --- -- scale = {x=4,y=0.5};
252 --- scale_tween = { {x=2,y=3}; {x=0,y=0}; style = 'pulse', reps = 6 };
253 --- };
254 --- -- {
255 --- -- img = L.image('sorcery_divine_radiance_1.png'):multiply(L.color(255,0,0)):render();
256 --- -- fade = 'pulse';
257 --- -- fade_reps = 3;
258 --- -- };
259 --- };
260 --- radius = {
261 --- min = vector.new(0,0,0);
262 --- max = 0;
263 --- };
264 - -- animation = {
265 - -- type = 'vertical_frames';
266 - -- aspect_w = 16, aspect_h = 16;
267 - -- length = -1;
268 - -- };
269 - -- glow = 14;
222 + animation = {
223 + type = 'vertical_frames';
224 + aspect_w = 16, aspect_h = 16;
225 + length = 2.1;
226 + };
227 + glow = 14;
270 228 }
271 229 end
272 230
273 231 sorcery.vfx.bloodburst = function(pos,size)
274 232 for i=0, size or 48 do
275 233 minetest.add_particle{
276 234 texture = 'sorcery_blood_' .. math.random(5) .. '.png',