summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/misc.cc
diff options
context:
space:
mode:
authorAlex MacDonald <alex@alexjmacdonald.com>2009-11-14 18:45:17 -0500
committerDavid Ploog <dploog@users.sourceforge.net>2009-11-18 00:21:21 +0100
commit60739d905fb591cbab819d6b56a5a510584d25ee (patch)
treeb00520d905f32a0ca9965c2d4f58a9d542eb64b9 /crawl-ref/source/misc.cc
parent905d7f0ef50939e92d20a5798ccd3ba12350c738 (diff)
downloadcrawl-ref-60739d905fb591cbab819d6b56a5a510584d25ee.tar.gz
crawl-ref-60739d905fb591cbab819d6b56a5a510584d25ee.zip
Shaft trap behavior modified. They now are one-time use and pre-knowledge of shaft traps (i.e. using them intentionally) will improve the chances of the player landing fewer levels away. Shaft traps also now randomly determine their destination. Monsters cannot follow the player through shaft traps.
Signed-off-by: David Ploog <dploog@users.sourceforge.net>
Diffstat (limited to 'crawl-ref/source/misc.cc')
-rw-r--r--crawl-ref/source/misc.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc
index 54456fc8a5..b5182b278b 100644
--- a/crawl-ref/source/misc.cc
+++ b/crawl-ref/source/misc.cc
@@ -2213,7 +2213,7 @@ void down_stairs( int old_level, dungeon_feature_type force_stair,
return;
}
- shaft_dest = you.shaft_dest();
+ shaft_dest = you.shaft_dest(known_trap);
if (shaft_dest == level_id::current())
{
if (known_trap)
@@ -2230,6 +2230,10 @@ void down_stairs( int old_level, dungeon_feature_type force_stair,
if (you.flight_mode() != FL_FLY || force_stair)
mpr("You fall through a shaft!");
+
+ // Shafts are one-time-use.
+ mpr("The shaft crumbles and collapses!");
+ find_trap(you.pos())->destroy();
}
if (stair_find == DNGN_ENTER_ZOT && !you.opened_zot)