From c99dc714c345f5d6d1ecc68708462e28e309db74 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Thu, 1 Oct 2009 07:50:56 -0500 Subject: Allow spectral things to take stairs again, to make Death Channel more useful. --- crawl-ref/source/mon-util.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'crawl-ref/source/mon-util.cc') 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)) { -- cgit v1.2.3-54-g00ecf