summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/acr.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-08 12:49:16 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-08 12:49:16 +0000
commit26ca34c231c1b14f5a3a75c10db02a0b8095e5f3 (patch)
tree794d9d02f58374f34365bb2fae143781143c9947 /crawl-ref/source/acr.cc
parent41afca0d89a94f9c2a6329b8a81410ddffba0bca (diff)
downloadcrawl-ref-26ca34c231c1b14f5a3a75c10db02a0b8095e5f3.tar.gz
crawl-ref-26ca34c231c1b14f5a3a75c10db02a0b8095e5f3.zip
Added telepathy as a Dowsing effect. Presumably breaks saves.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4130 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/acr.cc')
-rw-r--r--crawl-ref/source/acr.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc
index 9605fc733f..39f77054b2 100644
--- a/crawl-ref/source/acr.cc
+++ b/crawl-ref/source/acr.cc
@@ -121,6 +121,7 @@
#include "skills.h"
#include "skills2.h"
#include "spells1.h"
+#include "spells2.h"
#include "spells3.h"
#include "spells4.h"
#include "spl-book.h"
@@ -2708,6 +2709,7 @@ static void _decrement_durations()
_decrement_a_duration(DUR_SEE_INVISIBLE); // jmf: cute message
// handled elsewhere
+ _decrement_a_duration(DUR_TELEPATHY, "You feel less empathic.");
if ( _decrement_a_duration(DUR_CONDENSATION_SHIELD,
"Your icy shield evaporates.") )
@@ -3078,6 +3080,9 @@ static void _world_reacts()
if (env.cgrid[you.x_pos][you.y_pos] != EMPTY_CLOUD)
in_a_cloud();
+ if (you.level_type == LEVEL_DUNGEON && you.duration[DUR_TELEPATHY])
+ detect_creatures( 1 + you.duration[DUR_TELEPATHY] / 2, true );
+
_decrement_durations();
const int food_use = player_hunger_rate();