]> granicus.if.org Git - nethack/commitdiff
constrain monster migration in wizard tower
authorcohrs <cohrs>
Sat, 23 Sep 2006 06:32:01 +0000 (06:32 +0000)
committercohrs <cohrs>
Sat, 23 Sep 2006 06:32:01 +0000 (06:32 +0000)
<Someone> 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
doc/fixes34.4

index ea27c871b92fa6e183f88f9eac47e1c514fb87a9..df937fa1adc27702b8e7d0708649150ae5b4d665 100644 (file)
@@ -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)
index 796ad2a9fa4b8cb2cec886bf58d63191d136b094..a1e9563e9b5851075ca1d5060ea1a558597bee0d 100644 (file)
@@ -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