summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makeitem.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-13 14:07:56 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-13 14:07:56 +0000
commit2a9689ff31d9b420120db477c7121e6d3fa114f3 (patch)
tree82dbbeaf538857dedeee03d2e871f572f1cf5c45 /crawl-ref/source/makeitem.cc
parent0cac1ce29227a7352540e9b3479db5b3fc8f55d6 (diff)
downloadcrawl-ref-2a9689ff31d9b420120db477c7121e6d3fa114f3.tar.gz
crawl-ref-2a9689ff31d9b420120db477c7121e6d3fa114f3.zip
Clean up holiness handling, as well as a few other miscellaneous things.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3621 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/makeitem.cc')
-rw-r--r--crawl-ref/source/makeitem.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/crawl-ref/source/makeitem.cc b/crawl-ref/source/makeitem.cc
index 1003780b43..ff1af54244 100644
--- a/crawl-ref/source/makeitem.cc
+++ b/crawl-ref/source/makeitem.cc
@@ -2853,10 +2853,8 @@ static void give_monster_item(
mthing.link = NON_ITEM;
unset_ident_flags(mthing, ISFLAG_IDENT_MASK);
- const mon_holy_type mholy = mons_holiness(mon);
-
if (get_weapon_brand(mthing) == SPWPN_HOLY_WRATH
- && (mholy == MH_UNDEAD || mholy == MH_DEMONIC))
+ && mons_is_unholy(mon))
{
set_item_ego_type( mthing, OBJ_WEAPONS, SPWPN_NORMAL );
}