diff options
author | Vsevolod Kozlov <zaba@thorium.homeunix.org> | 2009-11-07 13:05:43 +0300 |
---|---|---|
committer | Jude Brown <bookofjude@users.sourceforge.net> | 2009-11-07 20:09:50 +1000 |
commit | 7a869a2b8fa07f329376019d4846455ba7580939 (patch) | |
tree | af5b61881ef3c7fd37076aeeea8b05e9e49a18db /crawl-ref/source/mon-util.cc | |
parent | cef3b8421938589dc991e0976123fc6bd437146b (diff) | |
download | crawl-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/mon-util.cc')
-rw-r--r-- | crawl-ref/source/mon-util.cc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc index 1baade33c6..8c5dcf5423 100644 --- a/crawl-ref/source/mon-util.cc +++ b/crawl-ref/source/mon-util.cc @@ -1974,11 +1974,6 @@ int mons_base_damage_brand(const monsters *m) return (SPWPN_NORMAL); } -bool mons_strict_neutral(const monsters *m) -{ - return (m->attitude == ATT_STRICT_NEUTRAL); -} - bool mons_is_pacified(const monsters *m) { return (m->attitude == ATT_NEUTRAL && testbits(m->flags, MF_GOT_HALF_XP)); @@ -1986,7 +1981,7 @@ bool mons_is_pacified(const monsters *m) bool mons_wont_attack(const monsters *m) { - return (m->friendly() || m->good_neutral() || mons_strict_neutral(m)); + return (m->friendly() || m->good_neutral() || m->strict_neutral()); } bool mons_att_wont_attack(mon_attitude_type fr) @@ -2000,7 +1995,7 @@ mon_attitude_type mons_attitude(const monsters *m) return ATT_FRIENDLY; else if (m->good_neutral()) return ATT_GOOD_NEUTRAL; - else if (mons_strict_neutral(m)) + else if (m->strict_neutral()) return ATT_STRICT_NEUTRAL; else if (m->neutral()) return ATT_NEUTRAL; |