summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/acr.cc
diff options
context:
space:
mode:
authorCharles Otto <ottochar@gmail.com>2009-11-02 22:00:47 -0500
committerCharles Otto <ottochar@gmail.com>2009-11-02 22:06:02 -0500
commita6f2d01db02e468ece617edd3f70d0365d43bfe3 (patch)
tree16cd7b396d4c67ece1f1566f04a7df9869ac08b5 /crawl-ref/source/acr.cc
parent9397dc1a7fae542bc4978529ca3a0b2b009075b6 (diff)
downloadcrawl-ref-a6f2d01db02e468ece617edd3f70d0365d43bfe3.tar.gz
crawl-ref-a6f2d01db02e468ece617edd3f70d0365d43bfe3.zip
Remove Feawn's prayer ability, make plant walking a passive bonus.
Experimentally set the movement delay for walking on plants to 1.5 * normal movement delay. Maybe it should be higher?
Diffstat (limited to 'crawl-ref/source/acr.cc')
-rw-r--r--crawl-ref/source/acr.cc19
1 files changed, 19 insertions, 0 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc
index 5565d8e2ec..06383b6d69 100644
--- a/crawl-ref/source/acr.cc
+++ b/crawl-ref/source/acr.cc
@@ -3868,7 +3868,26 @@ static void _move_player(coord_def move)
monsters* targ_monst = monster_at(targ);
if (feawn_passthrough(targ_monst))
+ {
+ // Moving on a plant takes 1.5 x normal move delay. We
+ // will print a message about it but only when moving
+ // from open space->plant (hopefully this will cut down
+ // on the message spam).
+ you.time_taken = div_rand_round(you.time_taken * 3, 2);
+
+ monsters * current = monster_at(you.pos());
+ if(!current || !feawn_passthrough(current))
+ {
+ // Probably need a better messages. -cao
+ if(mons_genus(targ_monst->type == MONS_FUNGUS))
+ {
+ mprf("You walk carefully through the fungus.");
+ }
+ else
+ mprf("You walk carefully throuh the plants.");
+ }
targ_monst = NULL;
+ }
const bool targ_pass = you.can_pass_through(targ);