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