Skip to content
Snippets Groups Projects
Commit f41710a2 authored by dg's avatar dg
Browse files

The Eidolon can now send you back to the worldmap is desired (and if possible)

git-svn-id: http://svn.net-core.org/repos/t-engine4@3303 51575b47-30f0-44d4-a5cc-537603b46e54
parent 13ab646c
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,8 @@ But do not abuse my help. I am not your servant, and someday I might just let yo
As for your probable many questions, they will stay unanswered. I may help, but I am not here to explain why.]],
answers = {
{"Thank you. I will rest for a while."},
{"Thank you. I am ready to go back!", action=function() game.level.data.eidolon_exit() end},
{"Thank you. I am ready to go back!", action=function() game.level.data.eidolon_exit(false) end},
{"Thank you, but I fear I will not survive anyway, can you send me back somewhere else please?", action=function() game.level.data.eidolon_exit(true) end},
}
}
......
......@@ -75,7 +75,7 @@ return {
who:addObject(who.INVEN_INVEN, o)
end,
eidolon_exit = function()
eidolon_exit = function(to_worldmap)
game:onTickEnd(function()
local oldzone = game.zone
local oldlevel = game.level
......@@ -119,6 +119,10 @@ return {
act.last_act_turn = math.floor(game.turn / (game.zone.wilderness and 1000 or 10))
end
if to_worldmap then
game:changeLevel(1, game.player.last_wilderness or "wilderness")
end
game.logPlayer(game.player, "#LIGHT_RED#You are sent back to the material plane!")
game.player:updateMainShader()
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