sorcery  Diff

Differences From Artifact [2dad4b5804]:

To Artifact [7cffae6fa3]:


   563    563   										aspect_w = 16, aspect_h = 16;
   564    564   									};
   565    565   								}
   566    566   							end;
   567    567   						};
   568    568   						intervals = {
   569    569   							{period = tf; after = {secs=1.2}; fn = function(c)
   570         -								print('---- aff idx is now', c.spell._aff_idx)
   571         -								print(dump(c.spell.subjects))
   572    570   								local sub = c.spell.subjects[c.spell._aff_idx] 
   573    571   								if sub then 
   574         -									print('  -- sub found')
   575    572   									c.spell.visual {
   576    573   										amount = 100, time = 2, glow = 14;
   577    574   										attached = c.spell.subjects[c.spell._aff_idx].player;
   578    575   										texture = sorcery.lib.image('sorcery_sputter.png'):glow(sorcery.lib.color(160,255,80)):render();
   579    576   										minpos = { x = -0.3, y =  7.3, z = -0.3 };
   580    577   										maxpos = { x =  0.3, y =  5.7, z =  0.3 };
   581    578   										minvel = { x = -0.0, y = -7.5, z = -0.0 };
................................................................................
   592    589   									-- if c.spell._aff_idx > c.spell._ntgt then return false end
   593    590   								end
   594    591   							end};
   595    592   							{period = tf; after = {secs=2.1}; fn = function(c)
   596    593   								local sub = c.spell.subjects[c.spell._aff_idx] 
   597    594   								if sub then purge(sub.player) end
   598    595   								c.spell._aff_idx = c.spell._aff_idx + 1
   599         -								print('---> aff idx is now', c.spell._aff_idx)
   600         -								print(dump(c.spell.subjects))
   601    596   								-- if c.spell._aff_idx > c.spell._ntgt then return false end
   602    597   							end};
   603    598   						};
   604    599   					}
   605    600   				end;
   606    601   				frame = {
   607    602   					iridium = {
................................................................................
  1181   1176   								tl[wh] = function(s)
  1182   1177   									minetest.set_timeofday(time + delta*i)
  1183   1178   								end
  1184   1179   							end
  1185   1180   							sorcery.spell.cast {
  1186   1181   								name = 'sorcery:sunshine';
  1187   1182   								caster = ctx.caster;
         1183  +								anchor = 'caster';
  1188   1184   								timeline = tl;
  1189   1185   								duration = duration;
  1190   1186   							}
  1191   1187   						end;
  1192   1188   					};
  1193   1189   				};
  1194   1190   			};