diff options
author | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-11-10 21:26:29 -0600 |
---|---|---|
committer | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-11-10 22:04:09 -0600 |
commit | af420e351770b201f4d77d1892169b4111727c91 (patch) | |
tree | 0c7d51c3c2bd5fd6fc4f79b5124cd053de4cc566 /crawl-ref/source/player.cc | |
parent | 42876e1c49d03e594d7d129bd96fd9874ebe0106 (diff) | |
download | crawl-ref-af420e351770b201f4d77d1892169b4111727c91.tar.gz crawl-ref-af420e351770b201f4d77d1892169b4111727c91.zip |
Replace actor::is_unholy() with actor::undead_or_demonic().
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index c3e79c0cfd..28cac3250c 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -5781,11 +5781,13 @@ bool player::could_wield(const item_def &item, bool ignore_brand, // Small species wielding large weapons... if (body_size(PSIZE_BODY) < SIZE_MEDIUM && !check_weapon_wieldable_size(item, body_size(PSIZE_BODY))) + { return (false); + } if (!ignore_brand) { - if (is_unholy() && is_holy_item(item)) + if (undead_or_demonic() && is_holy_item(item)) return (false); } @@ -6490,12 +6492,12 @@ int player::res_sticky_flame() const int player::res_holy_energy(const actor *attacker) const { + if (undead_or_demonic()) + return (-2); + if (is_evil()) return (-1); - if (is_unholy()) - return (-2); - if (is_holy()) return (1); |