summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-22 06:05:56 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-22 06:05:56 +0000
commit0ad52e7de79221cd891ac0324c8cef21d1819497 (patch)
tree64329bf1ec13ac7ad3ff85d759b12a810de5bf3b /crawl-ref/source/item_use.cc
parentfa35b186224f8fb390c2ee37f3abd73935f47da9 (diff)
downloadcrawl-ref-0ad52e7de79221cd891ac0324c8cef21d1819497.tar.gz
crawl-ref-0ad52e7de79221cd891ac0324c8cef21d1819497.zip
Display a warning when Zin worshippers wield a chaotic item.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7907 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index ed88a3d5dd..eeefdc67f4 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -522,6 +522,8 @@ void wield_effects(int item_wield_2, bool showMsgs)
mpr("You really shouldn't be using a holy item like this.");
else if (is_evil_item(item) && is_good_god(you.religion))
mpr("You really shouldn't be using an evil item like this.");
+ else if (is_chaotic_item(item) && you.religion == GOD_ZIN)
+ mpr("You really shouldn't be using a chaotic item like this.");
}
const bool was_known = item_type_known(item);
@@ -2604,8 +2606,10 @@ bool throw_it(bolt &pbolt, int throw_2, bool teleport, int acc_bonus,
}
if (bow_brand == SPWPN_CHAOS || ammo_brand == SPMSL_CHAOS)
+ {
did_god_conduct(DID_CHAOS, 2 + random2(3),
bow_brand == SPWPN_CHAOS || ammon_brand_known);
+ }
if (did_return)
{