summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/goditem.cc
diff options
context:
space:
mode:
authorBrandon Kime <rbrandonkime@gmail.com>2014-03-03 11:00:10 -0500
committerNeil Moore <neil@s-z.org>2014-03-03 11:44:52 -0500
commit18227662ff0e53f2b66bb332b56cff90e91058df (patch)
treef2c7f471df4e3c6cf0c1743cff2ad46cd231b875 /crawl-ref/source/goditem.cc
parent087542d4c1bbdf1dfc2fcb233ca44dfcaa861eb2 (diff)
downloadcrawl-ref-18227662ff0e53f2b66bb332b56cff90e91058df.tar.gz
crawl-ref-18227662ff0e53f2b66bb332b56cff90e91058df.zip
Make fiery attacks with a chaos weapon offend Dithmenos
This is consistent with the good gods' treatment of chaos weapons. This patch marks chaos weapons as "disapproved" by Dithmenos and adds piety loss for all flame branded attacks rather than only attacks with flame branded weapons.
Diffstat (limited to 'crawl-ref/source/goditem.cc')
-rw-r--r--crawl-ref/source/goditem.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/goditem.cc b/crawl-ref/source/goditem.cc
index 2a684765e7..ac7c0d7b73 100644
--- a/crawl-ref/source/goditem.cc
+++ b/crawl-ref/source/goditem.cc
@@ -424,6 +424,12 @@ static bool _is_potentially_fiery_item(const item_def& item)
{
switch (item.base_type)
{
+ case OBJ_WEAPONS:
+ {
+ const int item_brand = get_weapon_brand(item);
+ if (item_brand == SPWPN_CHAOS)
+ return true;
+ }
case OBJ_WANDS:
if (item.sub_type == WAND_RANDOM_EFFECTS)
return true;