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

Temporal rift portal provides a warning

git-svn-id: http://svn.net-core.org/repos/t-engine4@4538 51575b47-30f0-44d4-a5cc-537603b46e54
parent 88bdf7a2
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,12 @@ newEntity{
desc = [[The rift leads somewhere ..]],
change_level = 1, change_zone = "temporal-rift",
change_level_check = function() -- Forbid going back
if not game.player:hasQuest("temporal-rift") then return false end
if not game.player:hasQuest("temporal-rift") then
require("engine.ui.Dialog"):yesnoPopup("Temporal Rift", "Are you sure you want to enter? There's no telling where you will end up or if you will be able to make it back.", function(ret)
if ret then game:changeLevel(1, "temporal-rift") end
end)
return true
end
game.log("The rift is too unstable to cross it.")
return 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