summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/evoke.cc
diff options
context:
space:
mode:
authorreaverb <reaverb.Crawl@gmail.com>2014-05-22 01:30:38 -0400
committerreaverb <reaverb.Crawl@gmail.com>2014-05-22 03:40:19 -0400
commit94537065d378a10efb3c0ace0ae552999f5b43c4 (patch)
tree9254f5691547f3ecaa7c51d4989c703c1beeccdf /crawl-ref/source/evoke.cc
parentb693d2abafece09612a19b0174ae30995cf3e6ca (diff)
downloadcrawl-ref-94537065d378a10efb3c0ace0ae552999f5b43c4.tar.gz
crawl-ref-94537065d378a10efb3c0ace0ae552999f5b43c4.zip
Make blurry vision mut cause scroll reading to take more time.
Instead of the awful random chance of failure, which made you press r over and over. Currently adds a half turn per level, affected by Haste and Slow.
Diffstat (limited to 'crawl-ref/source/evoke.cc')
-rw-r--r--crawl-ref/source/evoke.cc11
1 files changed, 4 insertions, 7 deletions
diff --git a/crawl-ref/source/evoke.cc b/crawl-ref/source/evoke.cc
index d3c77dcd59..8af8b975e8 100644
--- a/crawl-ref/source/evoke.cc
+++ b/crawl-ref/source/evoke.cc
@@ -424,13 +424,6 @@ void tome_of_power(int slot)
you.turn_is_over = true;
- if (player_mutation_level(MUT_BLURRY_VISION) > 0
- && x_chance_in_y(player_mutation_level(MUT_BLURRY_VISION), 4))
- {
- mpr("The page is too blurry for you to read.");
- return;
- }
-
mpr("You find yourself reciting the magical words!");
practise(EX_WILL_READ_TOME);
count_action(CACT_EVOKE, EVOC_TOME);
@@ -504,6 +497,10 @@ void tome_of_power(int slot)
your_spells(spell_casted, powc, false);
}
+
+ // Make characters with Blurry Vision take more time to read
+ you.time_taken *= (2 + player_mutation_level(MUT_BLURRY_VISION));
+ you.time_taken /= 2;
}
// return a slot that has manual for given skill, or -1 if none exists