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

Added a visual effect for Inner Demon debuff

parent 27168ee3
No related branches found
No related tags found
No related merge requests found
game/modules/tome/data/gfx/particles_images/inner_demons_tentacle_shader.png

232 KiB

......@@ -1626,6 +1626,11 @@ newEffect{
parameters = {chance=0},
on_gain = function(self, err) return "#F53CBE##Target# is plagued by inner demons!", "+Inner Demons" end,
on_lose = function(self, err) return "#Target# is freed from the demons.", "-Inner Demons" end,
activate = function(self, eff)
if core.shader.active() then
self:effectParticles(eff, {type="shader_shield", args={size_factor=1.5, img="inner_demons_tentacle_shader"}, shader={type="tentacles", wobblingType=0, appearTime=0.8, time_factor=2000, noup=0.0}})
end
end,
on_timeout = function(self, eff)
if eff.src.dead or not game.level:hasEntity(eff.src) then eff.dur = 0 return true end
local t = eff.src:getTalentFromId(eff.src.T_INNER_DEMONS)
......
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