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

moar

parent 6accf8aa
No related branches found
No related tags found
No related merge requests found
......@@ -1172,6 +1172,7 @@ function _M:processEffects()
else e.grids = core.fov.beam_grids(e.x, e.y, e.radius, e.dir, e.angle, true) end
if e.particles then
if e.particles_only_one then
e.particles[1]:shiftCustom(self.tile_w * (e.particles[1].x - e.x), self.tile_h * (e.particles[1].y - e.y))
e.particles[1].x = e.x
e.particles[1].y = e.y
else
......
......@@ -138,3 +138,9 @@ function _M:shift(map, mo)
end
self._adx, self._ady = adx, ady
end
function _M:shiftCustom(dx, dy)
if not self.can_shift then return end
self.ps:shift(dx, dy)
end
......@@ -17,6 +17,7 @@
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
can_shift = true
base_size = 32
return { generator = function()
......
......@@ -17,6 +17,7 @@
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
can_shift = true
base_size = 32
return { generator = function()
......
......@@ -17,6 +17,7 @@
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
can_shift = true
base_size = 32
return { generator = function()
......
......@@ -17,6 +17,7 @@
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
can_shift = true
base_size = 32
return { generator = function()
......
......@@ -17,6 +17,7 @@
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
can_shift = true
base_size = 32
radius = radius or 3
......
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