summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monster.cc
diff options
context:
space:
mode:
authorVsevolod Kozlov <zaba@thorium.homeunix.org>2009-11-07 12:34:50 +0300
committerJude Brown <bookofjude@users.sourceforge.net>2009-11-07 19:52:54 +1000
commitef68100a9c4b18e9dd8b77413d3408b64f756f91 (patch)
treee35424b6335bfab82d5dc729132769c122c6c978 /crawl-ref/source/monster.cc
parent3232b4719ebfaccae12c628b01c6ca37ad38254e (diff)
downloadcrawl-ref-ef68100a9c4b18e9dd8b77413d3408b64f756f91.tar.gz
crawl-ref-ef68100a9c4b18e9dd8b77413d3408b64f756f91.zip
Replace mons_good_neutral with monsters::good_neutral.
Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
Diffstat (limited to 'crawl-ref/source/monster.cc')
-rw-r--r--crawl-ref/source/monster.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/monster.cc b/crawl-ref/source/monster.cc
index 37a75de41a..2178e35576 100644
--- a/crawl-ref/source/monster.cc
+++ b/crawl-ref/source/monster.cc
@@ -2839,6 +2839,11 @@ bool monsters::neutral() const
|| attitude == ATT_STRICT_NEUTRAL);
}
+bool monsters::good_neutral() const
+{
+ return (attitude == ATT_GOOD_NEUTRAL);
+}
+
int monsters::shield_bonus() const
{
const item_def *shld = const_cast<monsters*>(this)->shield();