From 38cee7a5098ed1c6e6920df98370128a28df8e06 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Fri, 20 Nov 2009 00:28:53 -0600 Subject: Fix the last missing instances of the unclean/chaotic split. --- crawl-ref/source/attitude-change.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'crawl-ref/source/attitude-change.cc') diff --git a/crawl-ref/source/attitude-change.cc b/crawl-ref/source/attitude-change.cc index 27b71ecfcf..fcfcf2d2a9 100644 --- a/crawl-ref/source/attitude-change.cc +++ b/crawl-ref/source/attitude-change.cc @@ -230,24 +230,24 @@ bool unholy_and_evil_beings_attitude_change() return (apply_to_all_dungeons(_unholy_and_evil_beings_on_level_attitude_change)); } -static bool _chaotic_beings_on_level_attitude_change() +static bool _unclean_and_chaotic_beings_on_level_attitude_change() { bool success = false; for (monster_iterator mi; mi; ++mi) { - if (!mi->is_chaotic()) + if (!mi->is_unclean() && !mi->is_chaotic()) continue; #ifdef DEBUG_DIAGNOSTICS - mprf(MSGCH_DIAGNOSTICS, "Chaotic attitude changing: %s on level %d, branch %d", + mprf(MSGCH_DIAGNOSTICS, "Unclean/chaotic attitude changing: %s on level %d, branch %d", mi->name(DESC_PLAIN).c_str(), static_cast(you.your_level), static_cast(you.where_are_you)); #endif // If you worship Zin, you make all friendly and good neutral - // chaotic beings hostile. + // unclean and chaotic beings hostile. if (you.religion == GOD_ZIN && mi->wont_attack()) { mi->attitude = ATT_HOSTILE; @@ -261,9 +261,9 @@ static bool _chaotic_beings_on_level_attitude_change() return (success); } -bool chaotic_beings_attitude_change() +bool unclean_and_chaotic_beings_attitude_change() { - return (apply_to_all_dungeons(_chaotic_beings_on_level_attitude_change)); + return (apply_to_all_dungeons(_unclean_and_chaotic_beings_on_level_attitude_change)); } static bool _spellcasters_on_level_attitude_change() -- cgit v1.2.3-54-g00ecf