From: KiloByte <cas...@us...> - 2009-12-31 16:19:33
|
via 7c6281f089b17ce4adfba97ed29753051ea0c629 (commit) from b592463f64a656fb43bf4cfd6596547361ac314d (commit) ----------------------------------------------------------------------- commit 7c6281f089b17ce4adfba97ed29753051ea0c629 Author: Adam Borowski <kil...@an...> Date: Thu Dec 31 17:16:38 2009 +0100 Allow javelins to be poisoned. ----------------------------------------------------------------------- Summary of changes: crawl-ref/source/makeitem.cc | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/crawl-ref/source/makeitem.cc b/crawl-ref/source/makeitem.cc index ca8a67b..600952d 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: -- Dungeon Crawl Stone Soup |