Skip to content
Snippets Groups Projects
Commit 54eb9269 authored by Eric Wykoff's avatar Eric Wykoff
Browse files

webs of fate particles

parent b67830c0
No related branches found
No related tags found
1 merge request!123Chrono wrap up
...@@ -365,8 +365,8 @@ newTalent{ ...@@ -365,8 +365,8 @@ newTalent{
local _ _, _, _, x, y = self:canProject(tg, x, y) local _ _, _, _, x, y = self:canProject(tg, x, y)
local particle local particle
if core.shader.allow("volumetric") then if core.shader.active(4) then
particle = {type="volumetric", args={radius=self:getTalentRadius(t)*2, kind="fast_sphere", img="moony_01", density=60, shininess=50, scrollingSpeed=-0.004}, only_one=true} particle = {type="volumetric", args={radius=self:getTalentRadius(t)+2, kind="fast_sphere", img="moony_01", density=60, shininess=50, scrollingSpeed=-0.004}, only_one=true}
else else
particle = {type="temporal_cloud"} particle = {type="temporal_cloud"}
end end
......
...@@ -3090,8 +3090,13 @@ newEffect{ ...@@ -3090,8 +3090,13 @@ newEffect{
return {dam=dam} return {dam=dam}
end, end,
activate = function(self, eff) activate = function(self, eff)
if core.shader.active(4) then
eff.particle1, eff.particle2 = self:addParticles3D("volumetric", {kind="no_idea_but_looks_cool", shininess=40, density=60, radius=1.4, growSpeed=0.004, img="octostar_01"})
end
end, end,
deactivate = function(self, eff) deactivate = function(self, eff)
self:removeParticles(eff.particle1)
self:removeParticles(eff.particle2)
end, end,
} }
......
...@@ -2440,7 +2440,7 @@ newEffect{ ...@@ -2440,7 +2440,7 @@ newEffect{
remove_on_clone = true, remove_on_clone = true,
activate = function(self, eff) activate = function(self, eff)
self:effectTemporaryValue(eff, "generic_damage_penalty", eff.power) self:effectTemporaryValue(eff, "generic_damage_penalty", eff.power)
if core.shader.allow("volumetric") then if core.shader.active(4) then
eff.particle1, eff.particle2 = self:addParticles3D("volumetric", {kind="vertical_and_awesome", radius=1.4, growSpeed=0.004, img="coggy_00"}) eff.particle1, eff.particle2 = self:addParticles3D("volumetric", {kind="vertical_and_awesome", radius=1.4, growSpeed=0.004, img="coggy_00"})
end end
self:effectTemporaryValue(eff, "timestopping", 1) self:effectTemporaryValue(eff, "timestopping", 1)
......
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