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

Irresistible Sun has a particle effect

git-svn-id: http://svn.net-core.org/repos/t-engine4@6427 51575b47-30f0-44d4-a5cc-537603b46e54
parent 7d70f98d
No related branches found
No related tags found
No related merge requests found
......@@ -2018,6 +2018,12 @@ newEffect{
parameters = {dam=100},
on_gain = function(self, err) return "#Target# starts to attract all creatures around!", "+Irresistible Sun" end,
on_lose = function(self, err) return "#Target# is no longer attracting creatures.", "-Irresistible Sun" end,
activate = function(self, eff)
eff.particle = self:addParticles(Particles.new("generic_vortex", 5, {rm=230, rM=230, gm=20, gM=250, bm=250, bM=80, am=80, aM=150, radius=5, density=50}))
end,
deactivate = function(self, eff)
self:removeParticles(eff.particle)
end,
on_timeout = function(self, eff)
local tgts = {}
self:project({type="ball", range=0, friendlyfire=false, radius=5}, self.x, self.y, function(px, py)
......
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