From 0ad52e7de79221cd891ac0324c8cef21d1819497 Mon Sep 17 00:00:00 2001 From: dolorous Date: Mon, 22 Dec 2008 06:05:56 +0000 Subject: 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 --- crawl-ref/source/item_use.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crawl-ref/source/item_use.cc') 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) { -- cgit v1.2.3-54-g00ecf