diff options
author | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-11-05 14:51:19 -0600 |
---|---|---|
committer | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-11-05 14:59:05 -0600 |
commit | b5ea5e1bc66f90cf3644dabac2d9c00697e68d4d (patch) | |
tree | 6f884fd52c4f96222ded2949c76bba9e5eb38f1b /crawl-ref/source/mon-util.cc | |
parent | 823bd7c3cb7d42efad29de3d98d3def28aa4c63f (diff) | |
download | crawl-ref-b5ea5e1bc66f90cf3644dabac2d9c00697e68d4d.tar.gz crawl-ref-b5ea5e1bc66f90cf3644dabac2d9c00697e68d4d.zip |
Create an is_evil() function in the actor interface.
Currently, only unholy monsters are marked as evil this way.
Diffstat (limited to 'crawl-ref/source/mon-util.cc')
-rw-r--r-- | crawl-ref/source/mon-util.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc index a7739075c3..b9ab20867f 100644 --- a/crawl-ref/source/mon-util.cc +++ b/crawl-ref/source/mon-util.cc @@ -1109,14 +1109,9 @@ bool mons_is_holy(const monsters *mon) return (mon->holiness() == MH_HOLY); } -bool mons_is_evil(const monsters *mon) -{ - return (mons_class_flag(mon->type, M_EVIL)); -} - bool mons_is_evil_or_unholy(const monsters *mon) { - return (mons_is_evil(mon) || mon->is_unholy()); + return (mon->is_evil() || mon->is_unholy()); } bool mons_has_lifeforce(const monsters *mon) |