diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-25 10:35:36 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-25 10:35:36 +0000 |
commit | f6fd6575e2ffc1ef38953217d9e63b69b85a2c1b (patch) | |
tree | b0eb04752e6b256884411a84df204e9bc1a97c99 /crawl-ref/source/makeitem.cc | |
parent | c9be04e908dc5b7e5e168a131f77a25ccea624ab (diff) | |
download | crawl-ref-f6fd6575e2ffc1ef38953217d9e63b69b85a2c1b.tar.gz crawl-ref-f6fd6575e2ffc1ef38953217d9e63b69b85a2c1b.zip |
[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
Diffstat (limited to 'crawl-ref/source/makeitem.cc')
-rw-r--r-- | crawl-ref/source/makeitem.cc | 7 |
1 files changed, 7 insertions, 0 deletions
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) |