Skip to content
Snippets Groups Projects
Commit 942be29f authored by DarkGod's avatar DarkGod
Browse files

better

parent 4985bdff
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -17,7 +17,7 @@
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
base_size = 32
base_size = 64
toback = false
can_shift = true
......@@ -27,13 +27,13 @@ return { generator = function()
local dir = math.rad(90)
local r = rng.range(18, 22)
local dirchance = rng.chance(2)
local x = rng.range(-10, 10)
local y = -4 + math.abs(math.sin(x / 16) * 8)
local x = rng.range(-6, 6) + x * 64
local y = rng.range(-6, -2) + y * 64
return {
trail = 2,
life = 32,
size = rng.range(3, 6), sizev = 0, sizea = -0.008,
size = rng.range(6, 12), sizev = 0, sizea = -0.016,
x = x, xv = 0, xa = 0,
y = y, yv = 0.2, ya = 0.04,
......
......@@ -86,6 +86,8 @@ newTalent{
end,
activate = function(self, t)
local ret = {}
local h1x, h1y = self:attachementSpot("hand1", true) if h1x then self:talentParticles(ret, {type="apply_poison", args={x=h1x, y=h1y}}) end
local h2x, h2y = self:attachementSpot("hand2", true) if h2x then self:talentParticles(ret, {type="apply_poison", args={x=h2x, y=h2y}}) end
self:talentParticles(ret, {type="apply_poison", args={}})
return ret
end,
......
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