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

mirror of reflection

parent ebc359ad
No related branches found
No related tags found
No related merge requests found
Pipeline #
game/modules/tome/data/gfx/shockbolt/terrain/mirror_of_reflection_back.png

24.5 KiB

game/modules/tome/data/gfx/shockbolt/terrain/mirror_of_reflection_front.png

27.3 KiB

......@@ -356,7 +356,22 @@ newEntity{
newEntity{
define_as = "SHIMMER_CONTROL",
name = "Mirror of Reflection", image = "terrain/solidwall/solid_floor1.png", add_displays = {class.new{image="terrain/pedestal_orb_02.png", display_h=2, display_y=-1}},
name = "Mirror of Reflection", image = "terrain/solidwall/solid_floor1.png",
add_displays = {
class.new{
image="terrain/mirror_of_reflection_back.png",
defineDisplayCallback = function(self)
if not self._mo then return end
self._mo:displayCallback(function(x, y, w, h)
local p = game:getPlayer(true)
if not p or not game.level or not game.level.map then return end
p:toScreen(game.level.map.tiles, x + w * 0.23, y + h * 0.3, w * 0.6, h * 0.6, 0.5, false, false)
end)
end,
shader = "shadow_simulacrum",
},
class.new{image="terrain/mirror_of_reflection_front.png"},
},
display = '*', color=colors.PURPLE,
notice = true,
always_remember = 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