From 60739d905fb591cbab819d6b56a5a510584d25ee Mon Sep 17 00:00:00 2001 From: Alex MacDonald Date: Sat, 14 Nov 2009 18:45:17 -0500 Subject: 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 --- crawl-ref/source/misc.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/misc.cc') 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) -- cgit v1.2.3-54-g00ecf