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

Visual effect to Congeal Time debuff

parent c00b8ee1
No related branches found
No related tags found
No related merge requests found
-- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2019 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
--
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
use_shader = {type="distort", power=0.05, power_time=200, blacken=10, power_amp=0.3} alterscreen = true
base_size = 64
local life = 30
local nb = 0
return {
generator = function()
return {
trail = 0,
life = life,
size = 70, sizev = -70/life, sizea = 0,
x = 0, xv = 0, xa = 0,
y = 0, yv = 0, ya = 0,
dir = 0, dirv = dirv, dira = 0,
vel = 0, velv = 0, vela = 0,
r = 1, rv = 0, ra = 0,
g = 1, gv = 0, ga = 0,
b = 1, bv = 0, ba = 0,
a = 1, av = 0, aa = 0,
}
end, },
function(self)
self.ps:emit(1)
end,
1, "particles_images/distort_wave3"
......@@ -2552,6 +2552,11 @@ newEffect{
activate = function(self, eff)
eff.tmpid = self:addTemporaryValue("global_speed_add", -eff.slow)
eff.prjid = self:addTemporaryValue("slow_projectiles_outgoing", eff.proj)
if core.shader.allow("distort") then
self:effectParticles(eff, {type="congeal_time"})
else
self:effectParticles(eff, {type="circle", args={oversize=0.5, a=80, base_rot=180, shader=true, appear=8, img="combination_kicks_2", speed=2, radius=0}})
end
end,
deactivate = function(self, eff)
self:removeTemporaryValue("global_speed_add", eff.tmpid)
......
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