diff options
author | Neil Moore <neil@s-z.org> | 2013-09-07 15:41:28 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2013-09-07 16:03:05 -0400 |
commit | 57e1e64dba4be23af33069e3ef5531fd04d9c3d3 (patch) | |
tree | 348542f8fd49d2b33abd0f66223321b3bf80c32d /crawl-ref/source/spl-selfench.cc | |
parent | 969218fafc23162ded402b7dc8f27039a5c3e62a (diff) | |
download | crawl-ref-57e1e64dba4be23af33069e3ef5531fd04d9c3d3.tar.gz crawl-ref-57e1e64dba4be23af33069e3ef5531fd04d9c3d3.zip |
Don't prevent casting swiftness in liquids.
It still doesn't make you faster, and continues to give the "water
foams" message, as well as a replacement for "You feel quick.",
to convey that to the player.
Diffstat (limited to 'crawl-ref/source/spl-selfench.cc')
-rw-r--r-- | crawl-ref/source/spl-selfench.cc | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/crawl-ref/source/spl-selfench.cc b/crawl-ref/source/spl-selfench.cc index 78bd00a2fc..6687550909 100644 --- a/crawl-ref/source/spl-selfench.cc +++ b/crawl-ref/source/spl-selfench.cc @@ -194,14 +194,6 @@ spret_type cast_swiftness(int power, bool fail) return SPRET_ABORT; } - if (you.in_water() || you.in_lava() || you.liquefied_ground()) - { - mprf("The %s foams!", you.in_water() ? "water" - : you.in_lava() ? "lava" - : "liquid ground"); - return SPRET_ABORT; - } - if (!you.duration[DUR_SWIFTNESS] && player_movement_speed() <= 6) { mpr("You can't move any more quickly."); @@ -210,10 +202,20 @@ spret_type cast_swiftness(int power, bool fail) fail_check(); + if (you.in_liquid()) + { + // Hint that the player won't be faster until they leave the liquid. + mprf("The %s foams!", you.in_water() ? "water" + : you.in_lava() ? "lava" + : "liquid ground"); + } + // [dshaligram] Removed the on-your-feet bit. Sounds odd when // you're flying, for instance. you.increase_duration(DUR_SWIFTNESS, 20 + random2(power), 100, - "You feel quick."); + you.in_liquid() + ? "You feel like you could be more quick." + : "You feel quick."); did_god_conduct(DID_HASTY, 8, true); return SPRET_SUCCESS; |