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

New visuals for Deflection

parent efb5af7d
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -18,7 +18,7 @@
-- darkgod@te4.org
local rot = rng.range(0,359)
local img = "spinningwinds_perfect_strike"
local img = img or "spinningwinds_perfect_strike"
local radius = radius or 1
use_shader = {type="spinningwinds", ellipsoidalFactor={1,1}, time_factor=4000, noup=0.0, verticalIntensityAdjust=-3.0}
......
game/modules/tome/data/gfx/particles_images/spinningwinds_doomed_deflection.png

27.6 KiB

......@@ -172,10 +172,12 @@ newTalent{
getRechargeRate = function(self, t) return self:combatTalentLimit(t, 5, 35, 10) end,
activate = function(self, t)
game:playSoundNear(self, "talents/spell_generic2")
return {
local ret = {
value = 0,
__update_display = true,
}
self:talentParticles(ret, {type="perfect_strike", args={radius=1, img="spinningwinds_doomed_deflection"}})
return ret
end,
deactivate = function(self, t, p)
if p.particles then self:removeParticles(p.particles) end
......
......@@ -2995,10 +2995,12 @@ newEffect{
parameters = { power=10 },
activate = function(self, eff)
self:effectTemporaryValue(eff, "die_at", -eff.power)
eff.particle = self:addParticles(Particles.new("darkness_power", 1))
self:effectParticles(eff, {type="darkness_power"})
-- if core.shader.active() then
-- self:effectParticles(eff, {type="circle", args={shader=true, oversize=1.5, a=225, appear=8, speed=0, img="shadow_decoy_aura", base_rot=0, radius=0}})
-- end
end,
deactivate = function(self, eff)
self:removeParticles(eff.particle)
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