diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-09-13 16:25:10 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-09-13 16:25:10 +0000 |
commit | b89715ca53db848f394801e8f6a95dff45a56fc9 (patch) | |
tree | 2bb9e037b87aff2fb451008470049db9e1934b33 | |
parent | 3c6fc5737751c19302e9c072ac74fb99472e8934 (diff) | |
download | crawl-ref-b89715ca53db848f394801e8f6a95dff45a56fc9.tar.gz crawl-ref-b89715ca53db848f394801e8f6a95dff45a56fc9.zip |
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
-rw-r--r-- | crawl-ref/source/item_use.cc | 4 |
1 files 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 |