constrain monster migration in wizard tower

<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.
This commit is contained in:
cohrs
2006-09-23 06:32:01 +00:00
parent c38a07174d
commit d9368a3c09
2 changed files with 5 additions and 0 deletions

View 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)

View 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