diff options
author | Jude Brown <bookofjude@users.sourceforge.net> | 2010-01-06 20:36:50 +1000 |
---|---|---|
committer | Jude Brown <bookofjude@users.sourceforge.net> | 2010-01-06 20:36:50 +1000 |
commit | 4bd3b68069d37840177e90c421d8f855ecc27852 (patch) | |
tree | b593f5af7296224306fd62ace008a93fe392928e /crawl-ref/source/makeitem.cc | |
parent | e02bcd2c58b5c5626717e87b6cc178bd63fa5716 (diff) | |
download | crawl-ref-4bd3b68069d37840177e90c421d8f855ecc27852.tar.gz crawl-ref-4bd3b68069d37840177e90c421d8f855ecc27852.zip |
Reduce stack sizes of non-poisoned needles.
Diffstat (limited to 'crawl-ref/source/makeitem.cc')
-rw-r--r-- | crawl-ref/source/makeitem.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/makeitem.cc b/crawl-ref/source/makeitem.cc index 2312bc5712..21e56682db 100644 --- a/crawl-ref/source/makeitem.cc +++ b/crawl-ref/source/makeitem.cc @@ -2018,8 +2018,9 @@ static void _generate_missile_item(item_def& item, int force_type, // Reduced quantity if special. if (item.sub_type == MI_JAVELIN - || get_ammo_brand( item ) == SPMSL_CURARE - || get_ammo_brand( item ) == SPMSL_RETURNING) + || get_ammo_brand( item ) == SPMSL_RETURNING + || (item.sub_type == MI_NEEDLE + && get_ammo_brand( item ) != SPMSL_POISONED)) { item.quantity = random_range(2, 8); } |