From dae931699043dca46c7617bf182d1216b1d35e99 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Thu, 5 Nov 2009 18:13:37 -0600 Subject: Reorder a few functions. --- crawl-ref/source/monster.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'crawl-ref/source/monster.cc') diff --git a/crawl-ref/source/monster.cc b/crawl-ref/source/monster.cc index 5b3445ffac..fd07573d2e 100644 --- a/crawl-ref/source/monster.cc +++ b/crawl-ref/source/monster.cc @@ -2867,6 +2867,13 @@ mon_holy_type monsters::holiness() const return (mons_class_holiness(type)); } +bool monsters::is_unholy() const +{ + const mon_holy_type holi = holiness(); + + return (holi == MH_UNDEAD || holi == MH_DEMONIC); +} + bool monsters::is_evil() const { if (is_unholy()) @@ -2885,13 +2892,6 @@ bool monsters::is_evil() const return (false); } -bool monsters::is_unholy() const -{ - const mon_holy_type holi = holiness(); - - return (holi == MH_UNDEAD || holi == MH_DEMONIC); -} - bool monsters::is_chaotic() const { if (type == MONS_UGLY_THING || type == MONS_VERY_UGLY_THING) -- cgit v1.2.3-54-g00ecf