diff options
author | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-11-05 18:13:37 -0600 |
---|---|---|
committer | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-11-05 18:13:37 -0600 |
commit | dae931699043dca46c7617bf182d1216b1d35e99 (patch) | |
tree | 385144e9585226d544dc9f2a26f020e9cce9d766 /crawl-ref/source/player.cc | |
parent | 5d7f8159beb2d6fb6bf00967a65e900069490c1e (diff) | |
download | crawl-ref-dae931699043dca46c7617bf182d1216b1d35e99.tar.gz crawl-ref-dae931699043dca46c7617bf182d1216b1d35e99.zip |
Reorder a few functions.
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index c1615cd205..7814a4da7c 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -6378,6 +6378,13 @@ mon_holy_type player::holiness() const return (MH_NATURAL); } +bool player::is_unholy() const +{ + const mon_holy_type holi = holiness(); + + return (holi == MH_UNDEAD || holi == MH_DEMONIC); +} + bool player::is_evil() const { if (is_unholy()) @@ -6389,13 +6396,6 @@ bool player::is_evil() const return (false); } -bool player::is_unholy() const -{ - const mon_holy_type holi = holiness(); - - return (holi == MH_UNDEAD || holi == MH_DEMONIC); -} - bool player::is_chaotic() const { if (is_chaotic_god(religion)) |