summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source')
-rw-r--r--crawl-ref/source/makeitem.cc4
1 files changed, 3 insertions, 1 deletions
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<special_missile_type>(
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: