From 7c6281f089b17ce4adfba97ed29753051ea0c629 Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Thu, 31 Dec 2009 17:16:38 +0100 Subject: Allow javelins to be poisoned. --- crawl-ref/source/makeitem.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/makeitem.cc') diff --git a/crawl-ref/source/makeitem.cc b/crawl-ref/source/makeitem.cc index ca8a67ba06..600952d684 100644 --- a/crawl-ref/source/makeitem.cc +++ b/crawl-ref/source/makeitem.cc @@ -1859,6 +1859,7 @@ static special_missile_type _determine_missile_brand(const item_def& item, case MI_JAVELIN: rc = static_cast( random_choose_weighted(30, SPMSL_RETURNING, 30, SPMSL_PENETRATION, + 30, SPMSL_POISONED, 20, SPMSL_STEEL, 20, SPMSL_SILVER, 10, SPMSL_CHAOS, nw, SPMSL_NORMAL, 0)); @@ -1927,7 +1928,8 @@ bool is_missile_brand_ok(int type, int brand) || type == MI_BOLT || type == MI_DART); case SPMSL_POISONED: return (type == MI_SLING_BULLET || type == MI_ARROW - || type == MI_BOLT || type == MI_DART); + || type == MI_BOLT || type == MI_DART + || type == MI_JAVELIN); case SPMSL_RETURNING: return (type == MI_JAVELIN); case SPMSL_CHAOS: -- cgit v1.2.3-54-g00ecf