summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authorCharles Otto <ottochar@gmail.com>2009-10-07 20:01:19 -0400
committerCharles Otto <ottochar@gmail.com>2009-10-07 20:01:19 -0400
commit365652a8e0c21083f217d8bc7c596c68b776d50e (patch)
treea3b481d7c9f11da0af08dccbefeb088de25d64ce /crawl-ref
parentea03e34552e8c261b360ffd304fdc756002ddb72 (diff)
downloadcrawl-ref-365652a8e0c21083f217d8bc7c596c68b776d50e.tar.gz
crawl-ref-365652a8e0c21083f217d8bc7c596c68b776d50e.zip
Put chaos branded weapons on Feawn's dislike list because players can get penance if a chaos weapon comes up with a necromantic effect.
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/religion.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index d8ee95913d..2937d3942d 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -4086,7 +4086,12 @@ conduct_type god_hates_item_handling(const item_def &item)
break;
case GOD_FEAWN:
- if (item_type_known(item) && is_evil_item(item))
+ if(!item_type_known(item))
+ return DID_NOTHING;
+
+ if (is_evil_item(item)
+ || item.base_type == OBJ_WEAPONS
+ && get_weapon_brand(item) == SPWPN_CHAOS)
return (DID_NECROMANCY);
break;