diff options
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 4340a1c6ab..e48b4a5422 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -6364,6 +6364,14 @@ mon_holy_type player::holiness() const return (MH_NATURAL); } +bool player::is_holy() const +{ + if (is_good_god(religion)) + return (true); + + return (false); +} + bool player::is_unholy() const { const mon_holy_type holi = holiness(); @@ -6482,7 +6490,7 @@ int player::res_holy_energy(const actor *attacker) const if (is_unholy()) return (-2); - if (is_good_god(religion) || holiness() == MH_HOLY) + if (is_holy()) return (1); return (0); |