From b5ea5e1bc66f90cf3644dabac2d9c00697e68d4d Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Thu, 5 Nov 2009 14:51:19 -0600 Subject: Create an is_evil() function in the actor interface. Currently, only unholy monsters are marked as evil this way. --- crawl-ref/source/player.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crawl-ref/source/player.cc') diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 432a798bdf..6bb655a253 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -6499,6 +6499,11 @@ mon_holy_type player::holiness() const return (MH_NATURAL); } +bool player::is_evil() const +{ + return (is_unholy()); +} + bool player::is_unholy() const { const mon_holy_type holi = holiness(); -- cgit v1.2.3-54-g00ecf