From d0960cef6e8ab122c2b3b9eb21f0549a61f93122 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Mon, 24 Nov 2008 22:49:31 +0000 Subject: 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 --- crawl-ref/source/misc.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'crawl-ref/source/misc.cc') 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; -- cgit v1.2.3-54-g00ecf