diff options
author | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-07-31 19:36:26 -0700 |
---|---|---|
committer | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-07-31 19:36:39 -0700 |
commit | 6a83109defc1ef0639d5a9296b1f1d8263a91c81 (patch) | |
tree | 8cbd2f21ff12f64791aa0425e374c3ab0f159227 /crawl-ref/source/player.cc | |
parent | c940287ee3718093c90486fa83853b47f476e38f (diff) | |
download | crawl-ref-6a83109defc1ef0639d5a9296b1f1d8263a91c81.tar.gz crawl-ref-6a83109defc1ef0639d5a9296b1f1d8263a91c81.zip |
Improve stair-sliding messages
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 939e7b4950..363b3b3c30 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -120,12 +120,12 @@ static void _moveto_maybe_repel_stairs() if (x_chance_in_y(pct, 100)) { + const string stair_str = feature_description_at(you.pos(), false, + DESC_THE, false); + const string prep = feat_preposition(new_grid, true, &you); + if (slide_feature_over(you.pos(), coord_def(-1, -1), false)) { - string stair_str = feature_description_at(you.pos(), false, - DESC_THE, false); - string prep = feat_preposition(new_grid, true, &you); - mprf("%s slides away as you move %s it!", stair_str.c_str(), prep.c_str()); |