From f6fd6575e2ffc1ef38953217d9e63b69b85a2c1b Mon Sep 17 00:00:00 2001 From: dshaligram Date: Thu, 25 Oct 2007 10:35:36 +0000 Subject: [1816483] Sling bullets should not be poisoned. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2552 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/makeitem.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'crawl-ref/source/makeitem.cc') diff --git a/crawl-ref/source/makeitem.cc b/crawl-ref/source/makeitem.cc index 5436b91395..db17f3f566 100644 --- a/crawl-ref/source/makeitem.cc +++ b/crawl-ref/source/makeitem.cc @@ -1820,6 +1820,13 @@ int items( int allow_uniques, // not just true-false, if (get_equip_race(mitm[p]) == ISFLAG_ORCISH && one_chance_in(3)) set_item_ego_type( mitm[p], OBJ_MISSILES, SPMSL_POISONED ); + // Un-poison sling bullets. + if (mitm[p].sub_type == MI_SLING_BULLET + && get_ammo_brand( mitm[p] ) == SPMSL_POISONED) + { + set_item_ego_type( mitm[p], OBJ_MISSILES, SPMSL_NORMAL ); + } + // reduced quantity if special if (mitm[p].sub_type == MI_JAVELIN || get_ammo_brand( mitm[p] ) == SPMSL_CURARE) -- cgit v1.2.3-54-g00ecf