summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-pathfind.cc
diff options
context:
space:
mode:
authorRaphael Langella <raphael.langella@gmail.com>2011-02-25 16:23:39 +0100
committerRaphael Langella <raphael.langella@gmail.com>2011-02-25 20:23:25 +0100
commit1990be2cce1a69ebff37f86a9e3543bdc1ac9e6d (patch)
tree579b8ea3f444ddfb27fd5cefe64f72a954b2686b /crawl-ref/source/mon-pathfind.cc
parentdea6e9b7799dc7d2c40e0cbad70c45630b966124 (diff)
downloadcrawl-ref-1990be2cce1a69ebff37f86a9e3543bdc1ac9e6d.tar.gz
crawl-ref-1990be2cce1a69ebff37f86a9e3543bdc1ac9e6d.zip
Boost the range of pathfinding for wall clinging monsters.
This is a bit hackish but is needed to push the spiders on the walls in watery levels.
Diffstat (limited to 'crawl-ref/source/mon-pathfind.cc')
-rw-r--r--crawl-ref/source/mon-pathfind.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-pathfind.cc b/crawl-ref/source/mon-pathfind.cc
index 8637b46746..8c9de58eb1 100644
--- a/crawl-ref/source/mon-pathfind.cc
+++ b/crawl-ref/source/mon-pathfind.cc
@@ -56,7 +56,9 @@ int mons_tracking_range(const monster* mon)
if (range)
{
- if (mons_is_native_in_branch(mon))
+ if (mon->can_cling_to_walls())
+ range += 4;
+ else if (mons_is_native_in_branch(mon))
range += 3;
else if (mons_class_flag(mon->type, M_BLOOD_SCENT))
range++;