summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/it_use2.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-06 17:12:09 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-06 17:12:09 +0000
commitf2bec3cbdf98876893d9562e88567a8fc50c7d76 (patch)
tree2249fcb5e249838ae51127f6e6dc30bbfacdae3e /crawl-ref/source/it_use2.cc
parent200b4c0e08504a7c8df898d77a9d72b3fa573c04 (diff)
downloadcrawl-ref-f2bec3cbdf98876893d9562e88567a8fc50c7d76.tar.gz
crawl-ref-f2bec3cbdf98876893d9562e88567a8fc50c7d76.zip
Fix two erroneous replacements with x_chance_in_y(). The rest were
correct. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6429 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/it_use2.cc')
-rw-r--r--crawl-ref/source/it_use2.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/it_use2.cc b/crawl-ref/source/it_use2.cc
index 3f6e8df4b3..5d7c6413e3 100644
--- a/crawl-ref/source/it_use2.cc
+++ b/crawl-ref/source/it_use2.cc
@@ -349,7 +349,7 @@ bool potion_effect( potion_type pot_eff, int pow, bool was_known )
case POT_CURE_MUTATION:
mpr("It has a very clean taste.");
for (int i = 0; i < 7; i++)
- if (x_chance_in_y(i, 10))
+ if (random2(10) > i)
delete_mutation(RANDOM_MUTATION, false);
break;