From b89715ca53db848f394801e8f6a95dff45a56fc9 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sun, 13 Sep 2009 16:25:10 +0000 Subject: Fix missile +1 enchantment not reducing mulch rate. (This fix already slipped in my previous trunk commit.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@10670 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/item_use.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index 165b6b7787..8f96fd30e9 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -3115,8 +3115,8 @@ bool thrown_object_destroyed(item_def *item, const coord_def& where, // Enchanted projectiles get an extra shot at avoiding // destruction: plus / (1 + plus) chance of survival. - bool destroyed = (chance == 0) ? false : - (one_chance_in(chance) && one_chance_in(item->plus)); + bool destroyed = (chance == 0) ? false : (one_chance_in(chance) + && one_chance_in(item->plus + 1)); bool hostile_grid = grid_destroys_items(grd(where)); // Non-returning items thrown into item-destroying grids are always -- cgit v1.2.3-54-g00ecf