summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authorreaverb <reaverb.Crawl@gmail.com>2014-05-22 19:03:19 -0400
committerreaverb <reaverb.Crawl@gmail.com>2014-05-22 19:31:59 -0400
commit6df881bab6b47f4f9b99b9c9f4ac156196366282 (patch)
tree368dca3591ee5ebc3cf4f096e75319a42ecb3837 /crawl-ref/source/item_use.cc
parent7150dc495c66cb4088b8c06208357e7f3bec30da (diff)
downloadcrawl-ref-6df881bab6b47f4f9b99b9c9f4ac156196366282.tar.gz
crawl-ref-6df881bab6b47f4f9b99b9c9f4ac156196366282.zip
Revert "Make blurry vision mut cause scroll reading to take more time."
Certain issues with player delays make changing you.time_taken an undesirable system. The random chance version of blurry vision is still not good, but the consensus is that it's tolerable until these issues are worked out. The removal of the effect of blurry vision on trap detection remains. This reverts commit 94537065d378a10efb3c0ace0ae552999f5b43c4. This reverts commit 6408390c0a71c47526449d54ecf58905d96b9575. This reverts commit becff2d3de3a8f051d38f2be104411722b6b89f4.
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index 591e11cb63..7e999a1456 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -2756,6 +2756,14 @@ void read_scroll(int slot)
return;
}
+ // Imperfect vision prevents players from reading actual content {dlb}:
+ if (player_mutation_level(MUT_BLURRY_VISION)
+ && x_chance_in_y(player_mutation_level(MUT_BLURRY_VISION), 5))
+ {
+ mpr("The writing blurs in front of your eyes.");
+ return;
+ }
+
// For cancellable scrolls leave printing this message to their
// respective functions.
string pre_succ_msg =
@@ -3033,10 +3041,6 @@ void read_scroll(int slot)
// since there are no *really* bad scrolls, merely useless ones).
xom_is_stimulated(bad_effect ? 100 : 50);
}
-
- // Make characters with Blurry Vision take more time to read scrolls
- you.time_taken *= (2 + player_mutation_level(MUT_BLURRY_VISION));
- you.time_taken /= 2;
}
bool stasis_blocks_effect(bool calc_unid,