From 26ca34c231c1b14f5a3a75c10db02a0b8095e5f3 Mon Sep 17 00:00:00 2001 From: haranp Date: Tue, 8 Apr 2008 12:49:16 +0000 Subject: 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 --- crawl-ref/source/acr.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crawl-ref/source/acr.cc') 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(); -- cgit v1.2.3-54-g00ecf