summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/acr.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/acr.cc')
-rw-r--r--crawl-ref/source/acr.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc
index ebe51b8677..da9eeefe63 100644
--- a/crawl-ref/source/acr.cc
+++ b/crawl-ref/source/acr.cc
@@ -2742,6 +2742,21 @@ static void check_banished()
at some point.
*/
+static void check_shafts()
+{
+ for (int i = 0; i < MAX_TRAPS; i++)
+ {
+ trap_struct &trap = env.trap[i];
+
+ if (trap.type != TRAP_SHAFT)
+ continue;
+
+ ASSERT(in_bounds(trap.x, trap.y));
+
+ handle_items_on_shaft(trap.x, trap.y, true);
+ }
+}
+
static void world_reacts()
{
crawl_state.clear_god_acting();
@@ -2756,6 +2771,8 @@ static void world_reacts()
}
check_banished();
+ check_shafts();
+
run_environment_effects();
if ( !you.cannot_act() && !you.mutation[MUT_BLURRY_VISION] &&