From a9ac379a106037461997151c86ea4682ad625bc3 Mon Sep 17 00:00:00 2001 From: dolorous Date: Mon, 12 May 2008 18:04:19 +0000 Subject: Disallow randart slings of venom, since they can produce poisoned stones or sling bullets. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5013 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/randart.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'crawl-ref/source/randart.cc') diff --git a/crawl-ref/source/randart.cc b/crawl-ref/source/randart.cc index 4594cb43ac..5aa2ff789a 100644 --- a/crawl-ref/source/randart.cc +++ b/crawl-ref/source/randart.cc @@ -674,12 +674,19 @@ void static _get_randart_properties(const item_def &item, (tmp >= 14) ? SPWPN_PROTECTION : (tmp >= 10) ? SPWPN_VENOM : SPWPN_VORPAL + random2(3); + if (atype == WPN_BLOWGUN && (proprt[RAP_BRAND] == SPWPN_VORPAL || proprt[RAP_BRAND] == SPWPN_VENOM)) { proprt[RAP_BRAND] = SPWPN_NORMAL; } + + if (atype == WPN_SLING + && proprt[RAP_BRAND] == SPWPN_VENOM) + { + proprt[RAP_BRAND] = SPWPN_NORMAL; + } } } -- cgit v1.2.3-54-g00ecf