Skip to content
Snippets Groups Projects
Commit 632e4b66 authored by dg's avatar dg
Browse files

ahah !

git-svn-id: http://svn.net-core.org/repos/t-engine4@6513 51575b47-30f0-44d4-a5cc-537603b46e54
parent 4d73a9c2
No related branches found
No related tags found
No related merge requests found
......@@ -966,12 +966,12 @@ function _M:addEffect(src, x, y, duration, damtype, dam, radius, dir, angle, ove
local e = {
src=src, x=x, y=y, duration=duration, damtype=damtype, dam=dam, radius=radius, dir=dir, angle=angle,
overlay=overlay.__CLASSNAME and overlay,
overlay=overlay and overlay.__CLASSNAME and overlay,
grids = grids,
update_fct=update_fct, selffire=selffire, friendlyfire=friendlyfire,
}
if not overlay.__CLASSNAME then
if overlay and not overlay.__CLASSNAME then
e.particles = {}
if overlay.only_one then
e.particles[#e.particles+1] = self:particleEmitter(x, y, 1, overlay.type, overlay.args)
......
......@@ -17,30 +17,36 @@
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
base_size = 32
base_size = 64
local nb = 0
return { generator = function()
local ad = rng.range(0, 360)
local a = math.rad(ad)
local dir = math.rad(ad)
local r = rng.range(0, 16)
local r = rng.range(0, 32)
return {
life = 10,
size = 3, sizev = 0.5, sizea = -0.1,
life = 100,
size = rng.range(24, 48), sizev = -0.05, sizea = 0,
x = r * math.cos(a), xv = 0, xa = 0,
y = r * math.sin(a), yv = 0, ya = 0,
dir = 0, dirv = 0, dira = 0,
vel = 0, velv = 0, vela = 0,
r = 0, rv = 0, ra = 0,
g = rng.range(170, 210)/255, gv = 0, ga = 0,
b = rng.range(20, 50)/255, gv = 0, ga = 0,
a = rng.range(230, 225)/255, av = 0, aa = 0,
r = 1, rv = 0, ra = 0,
g = 1, gv = 0, ga = 0,
b = 1, gv = 0, ga = 0,
a = rng.float(0.01, 0.05), av = 0.0152, aa = -0.0005,
}
end, },
function(self)
self.ps:emit(2)
if nb == 0 then self.ps:emit(1) end
nb = nb + 1
if nb >= 10 then
nb = 0
end
end,
20
10, "particles_images/slime"..rng.range(1, 5)
\ No newline at end of file
game/modules/tome/data/gfx/particles_images/slime1.png

9.08 KiB

game/modules/tome/data/gfx/particles_images/slime2.png

7.99 KiB

game/modules/tome/data/gfx/particles_images/slime3.png

8.27 KiB

game/modules/tome/data/gfx/particles_images/slime4.png

9.2 KiB

game/modules/tome/data/gfx/particles_images/slime5.png

9.83 KiB

......@@ -87,7 +87,7 @@ newTalent{
points = 5,
mode = "sustained",
message = "The skin of @Source@ starts dripping acid.",
sustain_equilibrium = 3
sustain_equilibrium = 3,
cooldown = 30,
range = 1,
requires_target = false,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment