summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/religion.cc
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-05 18:47:11 -0600
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-05 18:47:11 -0600
commitb55ef796dac12067dc52d7adeb4bb60a97051972 (patch)
tree6a906949c22161dc53605f8b59b308e3c6c15de4 /crawl-ref/source/religion.cc
parent1587373bced888a35c938e32bdaf1a3de7e48bae (diff)
downloadcrawl-ref-b55ef796dac12067dc52d7adeb4bb60a97051972.tar.gz
crawl-ref-b55ef796dac12067dc52d7adeb4bb60a97051972.zip
Since all unholy monsters are considered evil, remove
mons_is_evil_or_unholy(), and replace it with monsters::is_evil().
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r--crawl-ref/source/religion.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index 3b3d42f106..cf32f5e100 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -1478,14 +1478,13 @@ bool _has_jelly()
bool is_good_lawful_follower(const monsters* mon)
{
- return (mon->alive() && !mons_is_evil_or_unholy(mon)
- && !mon->is_chaotic() && mons_friendly(mon));
+ return (mon->alive() && !mon->is_evil() && !mon->is_chaotic()
+ && mons_friendly(mon));
}
bool is_good_follower(const monsters* mon)
{
- return (mon->alive() && !mons_is_evil_or_unholy(mon)
- && mons_friendly(mon));
+ return (mon->alive() && !mon->is_evil() && mons_friendly(mon));
}
bool is_follower(const monsters* mon)
@@ -5186,7 +5185,7 @@ static bool _evil_beings_on_level_attitude_change()
{
monsters *monster = &menv[i];
if (monster->alive()
- && mons_is_evil_or_unholy(monster))
+ && monster->is_evil())
{
#ifdef DEBUG_DIAGNOSTICS
mprf(MSGCH_DIAGNOSTICS, "Evil attitude changing: %s "