sorcery  Diff

Differences From Artifact [d83b2a6c69]:

To Artifact [659d5f0d60]:


   134    134   		local ppos = vector.add(po,tpos)
   135    135   		local dir = vector.direction(ppos,scenter)
   136    136   		local vel = math.random() * 0.8 + 0.4
   137    137   		local col if type(color) == 'function'
   138    138   			then col = color(i, {high = high, far = far, dir = dir, vel = vel, pos = po})
   139    139   			else col = color
   140    140   		end
          141  +		local et = math.floor((far/vel)*10)*.1
   141    142   		minetest.add_particle {
   142    143   			pos = ppos;
   143    144   			velocity = vector.multiply(dir,vel);
   144         -			expirationtime = far / vel;
          145  +			expirationtime = 0.4;
   145    146   			size = math.random()*2.4 + 0.6;
   146    147   			texture = sorcery.lib.image('sorcery_sputter.png'):glow(col):render();
   147    148   			glow = 14;
   148    149   			animation = {
   149         -				type = 'vertical_frames', length = math.floor((far/vel)*10)*.10;
          150  +				type = 'vertical_frames', length = 0.4;
   150    151   				aspect_w = 16, aspect_h = 16
   151    152   			};
   152    153   		}
   153    154   	end
   154    155   end
   155    156   
   156    157   function sorcery.vfx.drip(liquid, noz, amt, time, exp)