sorcery  Diff

Differences From Artifact [4936c92bc2]:

To Artifact [00d856eebe]:


   651    651   							local tex = sorcery.lib.image('sorcery_sputter.png'):glow(sorcery.lib.color(160,255,80)):render();
   652    652   							local epicenter = ctx.caster:get_pos() + vector.new(0, h/2, 0)
   653    653   							local maxima = vector.new(radius, radius, radius)
   654    654   							local potential_targets = minetest.find_nodes_in_area(epicenter - maxima, epicenter + maxima, {'group:sorcery_magical', 'group:sorcery_magitech'})
   655    655   							local wreck = {}
   656    656   							for _, pos in pairs(potential_targets) do
   657    657   								if sorcery.lib.math.vdcomp(radius,epicenter,pos) then
   658         -									print('got wreckable at',pos)
   659    658   									wreck[#wreck+1] = pos
   660    659   								end
   661    660   							end
   662    661   							sorcery.spell.cast {
   663    662   								name = 'sorcery:spellshatter';
   664    663   								caster = ctx.caster;
   665    664   								anchor = epicenter;
................................................................................
  1504   1503   							local put = function(ofs)
  1505   1504   								timeline[{whence=0,secs=per*i}] = function(s)
  1506   1505   									local p = vector.add(w,ofs)
  1507   1506   									if not sorcery.lib.node.is_clear(p) then return end
  1508   1507   									spark(s, p)
  1509   1508   									minetest.sound_play('sorcery_put', {pos = p, gain = 0.4}, true)
  1510   1509   									local lamp = mpick 'lamp_ext'
  1511         -									print('installing lamp',lamp,p,vector.new(ofs))
  1512   1510   									put_align(p, lamp, vector.multiply(ofs,-1))
  1513   1511   								end
  1514   1512   								i=i+1
  1515   1513   							end
  1516   1514   							put{x=o.x, y=0, z=0}
  1517   1515   							put{x=0,   y=0, z=o.z}
  1518   1516   						end