summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monster.cc
diff options
context:
space:
mode:
authorVsevolod Kozlov <zaba@thorium.homeunix.org>2009-11-07 13:05:43 +0300
committerJude Brown <bookofjude@users.sourceforge.net>2009-11-07 20:09:50 +1000
commit7a869a2b8fa07f329376019d4846455ba7580939 (patch)
treeaf5b61881ef3c7fd37076aeeea8b05e9e49a18db /crawl-ref/source/monster.cc
parentcef3b8421938589dc991e0976123fc6bd437146b (diff)
downloadcrawl-ref-7a869a2b8fa07f329376019d4846455ba7580939.tar.gz
crawl-ref-7a869a2b8fa07f329376019d4846455ba7580939.zip
Replace mons_strict_neutral with monsters::strict_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 2178e35576..dda40f100a 100644
--- a/crawl-ref/source/monster.cc
+++ b/crawl-ref/source/monster.cc
@@ -2844,6 +2844,11 @@ bool monsters::good_neutral() const
return (attitude == ATT_GOOD_NEUTRAL);
}
+bool monsters::strict_neutral() const
+{
+ return (attitude == ATT_STRICT_NEUTRAL);
+}
+
int monsters::shield_bonus() const
{
const item_def *shld = const_cast<monsters*>(this)->shield();