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

@@ -52,6 +52,8 @@ des.object("boulder",09,09)
des.object("boulder",10,07)
des.object("boulder",10,10)
-- prevent monster generation over the (filled) holes
des.exclusion({ type = "monster-generation", region = { 11,10, 27,10 } });
-- Traps
des.trap("hole",12,10)
des.trap("hole",13,10)