sorcery  Diff

Differences From Artifact [5c653d450d]:

To Artifact [59c6df911a]:


   123    123   					m:set_int('charge',0)
   124    124   				else m:set_int('charge', amtleft) end
   125    125   				sorcery.liquid.sound_dip(chg,avail,pos)
   126    126   				update()
   127    127   
   128    128   				-- fancy visuals
   129    129   				local color = sorcery.lib.color(liq.color or {255,255,255})
   130         -				local spritz = sorcery.lib.image('sorcery_droplet.png')
   131         -				local drop = sorcery.lib.image('sorcery_drop.png')
   132         -				spritz = spritz:blit(spritz:multiply(color))
   133         -				drop   = drop:blit  (drop:multiply  (color))
          130  +				local spritz = sorcery.lib.image('sorcery_droplet.png'):glow(color)
          131  +				local drop = sorcery.lib.image('sorcery_drop.png'):glow(color)
   134    132   				local facing = minetest.facedir_to_dir(minetest.get_node(pos).param2)
   135    133   				local noz = vector.add(pos, vector.rotate(
   136    134   					vector.new(0.0,0,-0.48),
   137    135   					vector.dir_to_rotation(facing)
   138    136   				))
   139    137   				local minnoz = vector.offset(noz, -0.03, -0.32, -0.03);
   140    138   				local maxnoz = vector.offset(noz,  0.03, -0.32,  0.03);
................................................................................
   149    147   					minsize = 0.4, maxsize = 1;
   150    148   					glow = 14; -- FIXME liquid glow prop
   151    149   					minexptime = 0.5, maxexptime = 0.5;
   152    150   					animation = {
   153    151   						type = 'sheet_2d';
   154    152   						frames_w = 14;
   155    153   						frames_h = 1;
   156         -						frame_length = 0.5/14;
          154  +						frame_length = (0.5/14) + 0.02;
   157    155   					}
   158    156   				}
   159    157   				minetest.after(0.2, function()
   160    158   					minetest.add_particlespawner {
   161    159   						amount = math.random(5,11) * chg, time = 0.13 * chg;
   162    160   						texture = drop:render();
   163    161   						minpos = vector.offset(minnoz, 0,-0.05,0);
................................................................................
   169    167   						minsize = 0.3, maxsize = 0.5;
   170    168   						glow = 14; -- FIXME liquid glow prop
   171    169   						minexptime = 1, maxexptime = 1.5;
   172    170   						animation = {
   173    171   							type = 'sheet_2d';
   174    172   							frames_w = 10;
   175    173   							frames_h = 1;
   176         -							frame_length = 1.5/10;
          174  +							frame_length = (1.5/10) + 0.02;
   177    175   						}
   178    176   					}
   179    177   				end)
   180    178   
   181    179   				return filled
   182    180   			end
   183    181   		end