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

Living Lightning and Caustic Golem have some gfx effect now

parent 738b24db
No related branches found
No related tags found
No related merge requests found
game/modules/tome/data/gfx/particles_images/alchie_acid.png

73.7 KiB

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

69 KiB

......@@ -187,9 +187,15 @@ newTalent{
local ret = {name = self.name:capitalize().."'s "..t.name}
self:talentTemporaryValue(ret, "movement_speed", t.getSpeed(self, t))
ret.last_life = self.life
if core.shader.active(4) then
ret.particle = self:addParticles(Particles.new("shader_ring_rotating", 1, {z=5, rotation=0, radius=1.1, img="alchie_lightning"}, {type="lightningshield"}))
end
return ret
end,
deactivate = function(self, t, p)
self:removeParticles(p.particle)
return true
end,
info = function(self, t)
......
......@@ -2571,6 +2571,14 @@ newEffect{
self:project({type="cone", cone_angle=25, range=0, radius=4}, src.x, src.y, DamageType.ACID, eff.dam)
game.level.map:particleEmitter(self.x, self.y, 4, "breath_acid", {radius=4, tx=src.x-self.x, ty=src.y-self.y, spread=20})
end,
activate = function(self, eff)
if core.shader.active(4) then
eff.particle = self:addParticles(Particles.new("shader_ring_rotating", 1, {z=5, rotation=0, radius=1.1, img="alchie_acid"}, {type="lightningshield"}))
end
end,
deactivate = function(self, eff)
self:removeParticles(eff.particle)
end,
}
newEffect{
......
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