summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/misc.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-24 22:49:31 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-24 22:49:31 +0000
commitd0960cef6e8ab122c2b3b9eb21f0549a61f93122 (patch)
tree01b614d0d7a1b9c40db7f5b7f744ca7c9e930304 /crawl-ref/source/misc.cc
parent18e0873492f2ea22830b6ae6e18ced1cb7f4d937 (diff)
downloadcrawl-ref-d0960cef6e8ab122c2b3b9eb21f0549a61f93122.tar.gz
crawl-ref-d0960cef6e8ab122c2b3b9eb21f0549a61f93122.zip
Prompt for players with the teleportitis mutation before attempting to
enter a labyrinth. Switch the order of travel exclusion radii: first LOS_RADIUS, then 1, then 0. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7595 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/misc.cc')
-rw-r--r--crawl-ref/source/misc.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc
index 3ea8557f0f..810b708294 100644
--- a/crawl-ref/source/misc.cc
+++ b/crawl-ref/source/misc.cc
@@ -1467,6 +1467,20 @@ static int runes_in_pack()
bool check_annotation_exclusion_warning()
{
+ if (grd(you.pos()) == DNGN_ENTER_LABYRINTH
+ && player_mutation_level(MUT_TELEPORT))
+ {
+ mpr("Within the labyrinth you'll only be able to teleport away from "
+ "the exit!");
+ if (!yesno("Continue anyway?", false, 'N', true, false))
+ {
+ canned_msg(MSG_OK);
+ interrupt_activity( AI_FORCE_INTERRUPT );
+ return (false);
+ }
+ return (true);
+ }
+
level_id next_level_id = level_id::get_next_level_id(you.pos());
crawl_state.level_annotation_shown = false;