Prevent monster generation in the sokoban trap hallway

Makes Sokoban far less tedious when you don't have to worry about
monsters randomly popping up in the trap hallway while you're pushing
the boulder.

Adds a new exclusion zone for monster generation, and the goodpos
routine avoids the zones when GP_AVOID_MONPOS is used.
This commit is contained in:
Pasi Kallinen
2024-10-18 13:26:43 +03:00
parent 9e4b2c121b
commit f12635ccd9
16 changed files with 45 additions and 9 deletions

View File

@@ -531,9 +531,10 @@ Example:
=== exclusion
Exclude an area of the map from being randomly chosen target when
falling or teleporting into the level. Multiple exclusions per level are allowed.
falling or teleporting into the level, or creating a monster.
Multiple exclusions per level are allowed.
* type is one of "teleport", "teleport-up", or "teleport-down".
* type is one of "teleport", "teleport-up", "teleport-down", or "monster-generation".
Example: