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

The Eidolon can now teleport players someplace else on the level when coming...

The Eidolon can now teleport players someplace else on the level when coming from the Infinite Dungeon
parent 1a51b16d
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,10 @@ As for your probable many questions, they will stay unanswered. I may help, but
cond=function() return game.level.source_level and not game.level.source_level.no_return_from_eidolon and (not game.level.source_level.data or not game.level.source_level.data.no_worldport) end,
action=function() game.level.data.eidolon_exit(true) end
},
{"Thank you, but I fear I will not survive anyway, can you send me back somewhere else on the level please?",
cond=function() return game.level.source_zone and game.level.source_zone.infinite_dungeon end,
action=function() game.level.data.eidolon_exit("teleport") end
},
{"Thank you, I am ready to go back!",
cond=function() return not game.level.source_level or game.level.source_level.no_return_from_eidolon end,
jump="jump_error",
......
......@@ -162,7 +162,9 @@ return {
end
end
if to_worldmap then
if to_worldmap == "teleport" then
game.player:teleportRandom(math.floor(game.level.map.w / 2), math.floor(game.level.map.h / 2), 100, 10)
elseif to_worldmap then
game:changeLevel(1, game.player.last_wilderness or "wilderness", {temporary_zone_shift_back=game.level.temp_shift_zone and true or false, direct_switch=true})
end
......
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