summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/it_use3.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-24 13:19:24 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-24 13:19:24 +0000
commit35129e9e324fd6464cb8799edfca960881a0dd09 (patch)
tree24eff7f35548be23e04afcdd6462f0580bd0c287 /crawl-ref/source/it_use3.cc
parentc19b2fdd21ba70ded0b4f42a8c7d018108d2d70d (diff)
downloadcrawl-ref-35129e9e324fd6464cb8799edfca960881a0dd09.tar.gz
crawl-ref-35129e9e324fd6464cb8799edfca960881a0dd09.zip
[1757174] Disallow mapping in labyrinths.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2536 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/it_use3.cc')
-rw-r--r--crawl-ref/source/it_use3.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/crawl-ref/source/it_use3.cc b/crawl-ref/source/it_use3.cc
index 829c967ef9..6379dc4773 100644
--- a/crawl-ref/source/it_use3.cc
+++ b/crawl-ref/source/it_use3.cc
@@ -719,7 +719,8 @@ static bool ball_of_seeing(void)
mpr("You gaze into the crystal ball.");
- use = ((!you.duration[DUR_CONF]) ? random2(you.skills[SK_EVOCATIONS] * 6) : random2(5));
+ use = ((!you.duration[DUR_CONF]) ?
+ random2(you.skills[SK_EVOCATIONS] * 6) : random2(5));
if (use < 2)
{
@@ -730,8 +731,10 @@ static bool ball_of_seeing(void)
mpr("You feel power drain from you!");
set_mp(0, false);
}
- else if (use < 10)
+ else if (use < 10 || you.level_type == LEVEL_LABYRINTH)
{
+ if (you.level_type == LEVEL_LABYRINTH)
+ mpr("You see a maze of twisty little passages, all alike.");
confuse_player( 10 + random2(10), false );
}
else if (use < 15 || coinflip())