diff options
author | Steve Melenchuk <smelenchuk@gmail.com> | 2013-11-07 22:07:48 -0700 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-11-12 06:41:06 +0100 |
commit | 24f19a42bb1621826610a8371d6f8527113d1f5e (patch) | |
tree | 094aa12044eb1e7e3f264885fc9bd8ece02eefc0 /crawl-ref/source/stairs.cc | |
parent | b254b3d788215c5b0c5026c4d3d7e8a94f260998 (diff) | |
download | crawl-ref-24f19a42bb1621826610a8371d6f8527113d1f5e.tar.gz crawl-ref-24f19a42bb1621826610a8371d6f8527113d1f5e.zip |
Theatrics when entering the Depths for the first time.
Minor at this point, and may become irrelevant in the future.
Diffstat (limited to 'crawl-ref/source/stairs.cc')
-rw-r--r-- | crawl-ref/source/stairs.cc | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/crawl-ref/source/stairs.cc b/crawl-ref/source/stairs.cc index ed8e868133..8e936fadd1 100644 --- a/crawl-ref/source/stairs.cc +++ b/crawl-ref/source/stairs.cc @@ -711,10 +711,12 @@ void down_stairs(dungeon_feature_type force_stair) _maybe_destroy_trap(you.pos()); } - if (stair_find == DNGN_ENTER_DEPTHS) + if (stair_find == DNGN_ENTER_DEPTHS + && !is_existing_level(level_id(BRANCH_DEPTHS, 1))) { bool has_rune = false; - for (int i = 0; i < NUM_RUNE_TYPES; i++) + int i = 0; + for (; i < NUM_RUNE_TYPES; i++) if (you.runes[i]) { has_rune = true; @@ -726,6 +728,13 @@ void down_stairs(dungeon_feature_type force_stair) mpr("You need a rune to enter this place."); return; } + + mprf("You insert the %s rune into the lock.", rune_type_name(i)); + if (silenced(you.pos())) + mpr("The gate opens wide!"); + else + mpr("With a loud hiss the gate opens wide!"); + more(); } if (stair_find == DNGN_ENTER_ZOT && !you.opened_zot) |