diff options
author | Adam Borowski <kilobyte@angband.pl> | 2009-12-31 17:16:38 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2009-12-31 17:16:38 +0100 |
commit | 7c6281f089b17ce4adfba97ed29753051ea0c629 (patch) | |
tree | 206ab84fcde3b9cfc59945fd3a3b862e0f18d709 /crawl-ref/source/makeitem.cc | |
parent | b592463f64a656fb43bf4cfd6596547361ac314d (diff) | |
download | crawl-ref-7c6281f089b17ce4adfba97ed29753051ea0c629.tar.gz crawl-ref-7c6281f089b17ce4adfba97ed29753051ea0c629.zip |
Allow javelins to be poisoned.
Diffstat (limited to 'crawl-ref/source/makeitem.cc')
-rw-r--r-- | 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 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: |