From d9368a3c09ef8d47719726bae73646a2feccaa9b Mon Sep 17 00:00:00 2001 From: cohrs Date: Sat, 23 Sep 2006 06:32:01 +0000 Subject: [PATCH] constrain monster migration in wizard tower noticed that when a monster escaped upladder in the wizard tower, it ended up outside the tower. This is due to the "wander" code in monster migration. Rather than add code to try to keep the monster from crossing the undiggable wall, just add REGIONs on the tower levels within the area, which then utilizes the existing in-a-room constraint behavior of monster migration. Of course, one can still fill a tower level with fodder, and then when another monster climbs the ladder, it will still end up outside the tower. --- dat/yendor.des | 4 ++++ doc/fixes34.4 | 1 + 2 files changed, 5 insertions(+) diff --git a/dat/yendor.des b/dat/yendor.des index ea27c871b..df937fa1a 100644 --- a/dat/yendor.des +++ b/dat/yendor.des @@ -30,6 +30,8 @@ TELEPORT_REGION:levregion(01,00,79,20),(0,0,27,12) # Make it a morgue for rm id in mkmaze.c # for the purpose of random sdoor placement REGION:(12,01,20,09),unlit,"morgue",unfilled +# another region to constrain monster arrival +REGION:(01,01,10,11),unlit,"ordinary",unfilled MAZEWALK:(28,05),east LADDER:(06,05),down # Non diggable walls @@ -111,6 +113,8 @@ STAIR:levregion(01,00,79,20),(0,0,28,12),up STAIR:levregion(01,00,79,20),(0,0,28,12),down BRANCH:levregion(01,00,79,20),(0,0,28,12) TELEPORT_REGION:levregion(01,00,79,20),(0,0,27,12) +# entire tower in a region, constrains monster migration +REGION:(01,01,26,11),unlit,"ordinary",unfilled REGION:(09,03,17,09),unlit,"zoo" DOOR:closed,(15,02) DOOR:closed,(11,10) diff --git a/doc/fixes34.4 b/doc/fixes34.4 index 796ad2a9f..a1e9563e9 100644 --- a/doc/fixes34.4 +++ b/doc/fixes34.4 @@ -257,6 +257,7 @@ prevent obj_is_local panic during bones creation when splatter_burning_oil() from a thrown potion of oil kills the hero fix region timeout detection, caused strange display of stinking cloud while wearing the Eyes of the Overworld +try to keep migrating monsters from escaping the wizard tower Platform- and/or Interface-Specific Fixes