]> granicus.if.org Git - nethack/commitdiff
pull request #888 - latent shop creation bug
authorPatR <rankin@nethack.org>
Sat, 8 Oct 2022 23:54:24 +0000 (16:54 -0700)
committerPatR <rankin@nethack.org>
Sat, 8 Oct 2022 23:54:24 +0000 (16:54 -0700)
Pull request from copperwater:  if a theme room produced a room with
one door that effectively opened on a 'hallway' leading to the core
of that room, it would be considered to be eligible to become a shop.
But if the only spot available for the shopkeeper to move away from
the spot in front of the door was another spot in the hallway, there
would be no possibility to get out of the way, either to let someone
in, or if the hero arrived by teleport or trap, to let hero out.
|     --
|  ---..[rest
|##+12..of the
|  ---..room]
|     --
Shopkeeper would move back and forth between 1 and 2, always blocking
access between the door and the rest of the room.

Currently no rooms get generated with that shape.  I haven't tried to
force one in order to verify the fix.

Fixes #888


Trivial merge