summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-book.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/spl-book.cc')
-rw-r--r--crawl-ref/source/spl-book.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-book.cc b/crawl-ref/source/spl-book.cc
index 9192e4dd4e..0ab544910f 100644
--- a/crawl-ref/source/spl-book.cc
+++ b/crawl-ref/source/spl-book.cc
@@ -1311,7 +1311,7 @@ bool learn_spell(int book)
}
if (player_mutation_level(MUT_BLURRY_VISION) > 0
- && random2(4) < player_mutation_level(MUT_BLURRY_VISION))
+ && x_chance_in_y(player_mutation_level(MUT_BLURRY_VISION), 4))
{
mpr("The writing blurs into unreadable gibberish.");
you.turn_is_over = true;