summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-util.cc
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-10-01 07:50:56 -0500
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-10-01 07:50:56 -0500
commitc99dc714c345f5d6d1ecc68708462e28e309db74 (patch)
tree32a01119e1f12955150702845cd9d38d572aa2a3 /crawl-ref/source/mon-util.cc
parentb6e861ec553110e50d8404f10467d0b0e914a144 (diff)
downloadcrawl-ref-c99dc714c345f5d6d1ecc68708462e28e309db74.tar.gz
crawl-ref-c99dc714c345f5d6d1ecc68708462e28e309db74.zip
Allow spectral things to take stairs again, to make Death Channel more
useful.
Diffstat (limited to 'crawl-ref/source/mon-util.cc')
-rw-r--r--crawl-ref/source/mon-util.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc
index c8fa4f589c..9f6e384654 100644
--- a/crawl-ref/source/mon-util.cc
+++ b/crawl-ref/source/mon-util.cc
@@ -1038,12 +1038,12 @@ bool mons_can_be_zombified(const monsters *mon)
bool mons_class_can_use_stairs(int mc)
{
- return (!mons_class_is_zombified(mc));
+ return (!mons_class_is_zombified(mc) || mc == MONS_SPECTRAL_THING);
}
bool mons_can_use_stairs(const monsters *mon)
{
- return (!mons_is_zombified(mon) || mons_enslaved_intact_soul(mon));
+ return (mons_class_can_use_stairs(mon->type));
}
bool mons_enslaved_body_and_soul(const monsters *mon)
@@ -3491,8 +3491,8 @@ bool monster_shover(const monsters *m)
return (false);
}
- // Monsters too stupid to use stairs (e.g. zombified undead) are also
- // disqualified.
+ // Monsters too stupid to use stairs (e.g. non-spectral zombified undead)
+ // are also disqualified.
if (!mons_can_use_stairs(m))
return (false);
@@ -3535,7 +3535,8 @@ bool monster_senior(const monsters *m1, const monsters *m2, bool fleeing)
// If they're the same holiness, monsters smart enough to use stairs can
// push past monsters too stupid to use stairs (so that e.g. non-zombified
- // undead can push past zombified undead).
+ // or spectral zombified undead can push past non-spectral zombified
+ // undead).
if (m1->holiness() == m2->holiness() && mons_can_use_stairs(m1)
&& !mons_can_use_stairs(m2))
{