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

adde a radiance circle

parent c4cbc227
No related branches found
No related tags found
No related merge requests found
game/modules/tome/data/gfx/particles_images/radiance_circle.png

209 KiB

......@@ -95,11 +95,17 @@ newTalent{
sustain_positive = 10,
getDamage = function(self, t) return self:combatTalentSpellDamage(t, 1, 35) end,
getDaze = function(self, t) return self:combatTalentLimit(t, 35, 5, 20) end,
updateParticle = function(self, t)
local p = self:isTalentActive(self.T_SEARING_SIGHT)
if not p then return end
self:removeParticles(p.particle)
p.particle = self:addParticles(Particles.new("circle", 1, {toback=true, oversize=1, a=20, appear=4, speed=-0.2, img="radiance_circle", radius=self:getTalentRange(t)}))
end,
activate = function(self, t)
local daze = nil
if self:getTalentLevel(t) >= 4 then daze = t.getDaze(self, t) end
return {
particle = self:addParticles(Particles.new("circle", 1, {toback=true, oversize=1, a=20, appear=4, speed=-0.2, img="sun_circle", radius=self:getTalentRange(t)})),
particle = self:addParticles(Particles.new("circle", 1, {toback=true, oversize=1, a=20, appear=4, speed=-0.2, img="radiance_circle", radius=self:getTalentRange(t)})),
dam=t.getDamage(self, t),
daze=daze,
}
......
......@@ -651,8 +651,10 @@ newEffect{
on_gain = function(self, err) return "#Target#'s aura dims.", "+Dim" end,
on_lose = function(self, err) return "#Target# shines with renewed light.", "-Dim" end,
activate = function(self, eff)
self:callTalent(self.T_SEARING_SIGHT, "updateParticle")
end,
deactivate = function(self, eff)
self:callTalent(self.T_SEARING_SIGHT, "updateParticle")
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