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

only allow distorb shaders when allowed

parent c26bebe4
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ dir = math.deg(math.atan2(ty, tx))
--------------------------------------------------------------------------------------
-- Advanced shaders
--------------------------------------------------------------------------------------
if core.shader.allow("distort") then
if core.shader.allow("distort") and allow then
use_shader = {type="distort", power=0.06, power_time=1000000, blacken=30} alterscreen = true
base_size = 64
local nb = 0
......
......@@ -20,7 +20,7 @@
--------------------------------------------------------------------------------------
-- Advanced shaders
--------------------------------------------------------------------------------------
if core.shader.allow("distort") then
if core.shader.allow("distort") and allow then
use_shader = {type="distort"} alterscreen = true
base_size = 64
local nb = 0
......
......@@ -20,7 +20,7 @@
--------------------------------------------------------------------------------------
-- Advanced shaders
--------------------------------------------------------------------------------------
if core.shader.allow("distort") then
if core.shader.allow("distort") and allow then
use_shader = {type="distort"} alterscreen = true
base_size = 64
local nb = 0
......
game/modules/tome/data/gfx/ui/targetshader.png

54.9 KiB | W: | H:

game/modules/tome/data/gfx/ui/targetshader.png

55.2 KiB | W: | H:

game/modules/tome/data/gfx/ui/targetshader.png
game/modules/tome/data/gfx/ui/targetshader.png
game/modules/tome/data/gfx/ui/targetshader.png
game/modules/tome/data/gfx/ui/targetshader.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -523,7 +523,7 @@ newTalent{
end)
self:project (tg, a.x, a.y, DamageType.PHYSICAL, t.getDamage(self, t))
game.level.map:particleEmitter(a.x, a.y, tg.radius, "gravity_spike", {radius=t.getRadius(self, t), grids=grids, tx=a.x, ty=a.y})
game.level.map:particleEmitter(a.x, a.y, tg.radius, "gravity_spike", {radius=t.getRadius(self, t), grids=grids, tx=a.x, ty=a.y, allow=core.shader.allow("distort")})
game:playSoundNear(self, "talents/earth")
end
......
......@@ -38,7 +38,7 @@ newTalent{
local x, y = self:getTarget(tg)
if not x or not y then return nil end
self:project(tg, x, y, DamageType.REPULSION, self:spellCrit(t.getDamage(self, t)))
game.level.map:particleEmitter(self.x, self.y, tg.radius, "gravity_breath", {radius=tg.radius, tx=x-self.x, ty=y-self.y})
game.level.map:particleEmitter(self.x, self.y, tg.radius, "gravity_breath", {radius=tg.radius, tx=x-self.x, ty=y-self.y, allow=core.shader.allow("distort")})
game:playSoundNear(self, "talents/earth")
return true
end,
......@@ -84,7 +84,7 @@ newTalent{
end
end)
self:project (tg, x, y, DamageType.GRAVITY, self:spellCrit(t.getDamage(self, t)))
game.level.map:particleEmitter(x, y, tg.radius, "gravity_spike", {radius=tg.radius})
game.level.map:particleEmitter(x, y, tg.radius, "gravity_spike", {radius=tg.radius, allow=core.shader.allow("distort")})
game:playSoundNear(self, "talents/earth")
return true
......
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