summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/randart.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-12 18:04:19 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-12 18:04:19 +0000
commita9ac379a106037461997151c86ea4682ad625bc3 (patch)
treed5b59723bfe56761fb822ae4902f0cf9272ea5d2 /crawl-ref/source/randart.cc
parentc4e1c624f2002d517a30fee8e2413da2ccb8981e (diff)
downloadcrawl-ref-a9ac379a106037461997151c86ea4682ad625bc3.tar.gz
crawl-ref-a9ac379a106037461997151c86ea4682ad625bc3.zip
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
Diffstat (limited to 'crawl-ref/source/randart.cc')
-rw-r--r--crawl-ref/source/randart.cc7
1 files changed, 7 insertions, 0 deletions
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;
+ }
}
}