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

Once the player won he can enter the Infinite Dungeon (from the ruined dungeon...

Once the player won he can enter the Infinite Dungeon (from the ruined dungeon entrance) to meet a glorious end in the depths of the world


git-svn-id: http://svn.net-core.org/repos/t-engine4@3611 51575b47-30f0-44d4-a5cc-537603b46e54
parent 3b86882b
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,16 @@ newEntity{
always_remember = true,
on_move = function(self, x, y, who)
if not who.player then return end
require("engine.ui.Dialog"):simplePopup("Infinite Dungeon", "You should not go there, there is no way back. Ever.")
local p = game:getPlayer(true)
if p.winner then
require("engine.ui.Dialog"):yesnoLongPopup("Infinite Dungeon", "You have accomplished great deads, but if you enter the infinite dungeon there will be no way back you will go on and on until you meet your glorious death.", 400, function(ret)
if ret then
game:changeLevel(math.ceil(game.player.level * 1.5), "infinite-dungeon")
end
end)
else
require("engine.ui.Dialog"):simplePopup("Infinite Dungeon", "You should not go there, there is no way back. Ever. Maybe later when you did all you must do.")
end
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