fix #4131 - medusa-4 level layout

The medusa-3 and medusa-4 levels each have four possible locations
for Medusa.  medusa-3 forced the downstairs to have the same location
but medusa-4 was choosing Medusa's location independently from the
stair location.  So it was likly that the hero could go down to the
next level without having to deal with her.
This commit is contained in:
PatR
2024-05-08 07:56:42 -07:00
parent 0f2897c704
commit 236ea3b99e
+7 -6
View File
@@ -1,4 +1,4 @@
-- NetHack medusa medusa-4.lua $NHDT-Date: 1652196028 2022/05/10 15:20:28 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.6 $ -- NetHack medusa medusa-4.lua $NHDT-Date: 1715180180 2024/05/08 14:56:20 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.7 $
-- Copyright (c) 1989 by Jean-Christophe Collet -- Copyright (c) 1989 by Jean-Christophe Collet
-- Copyright (c) 1990, 1991 by M. Stephenson -- Copyright (c) 1990, 1991 by M. Stephenson
-- NetHack may be freely redistributed. See license for details. -- NetHack may be freely redistributed. See license for details.
@@ -38,11 +38,12 @@ place:set(04,08);
place:set(10,04); place:set(10,04);
place:set(10,08); place:set(10,08);
place:set(10,12); place:set(10,12);
local medloc = place:rndcoord(1); -- Medusa location; also used for down stairs
-- --
des.region(selection.area(00,00,74,19),"lit") des.region(selection.area(00,00,74,19),"lit")
-- fixup_special hack: The first "room" region in Medusa levels gets filled with -- fixup_special hack: The first "room" region in Medusa levels gets filled
-- some leaderboard statues, so this needs to be a room; setting irregular=1 -- with some leaderboard statues, so this needs to be a room; setting
-- will force this -- irregular=1 will force this
des.region({ region={13,03, 18,13}, lit=1, type="ordinary", irregular=1 }) des.region({ region={13,03, 18,13}, lit=1, type="ordinary", irregular=1 })
-- --
des.teleport_region({ region = {64,01,74,17}, dir="down" }); des.teleport_region({ region = {64,01,74,17}, dir="down" });
@@ -50,7 +51,7 @@ des.teleport_region({ region = {02,02,18,13}, dir="up" });
-- --
des.levregion({ region = {67,01,74,20}, type="stair-up" }); des.levregion({ region = {67,01,74,20}, type="stair-up" });
des.stair("down", place:rndcoord(1)) des.stair("down", medloc)
-- --
des.door("locked",04,06) des.door("locked",04,06)
des.door("locked",04,10) des.door("locked",04,10)
@@ -99,7 +100,7 @@ for i=1,7 do
des.trap() des.trap()
end end
-- --
des.monster("Medusa", place:rndcoord(1)) des.monster("Medusa", medloc)
des.monster("kraken", 07,07) des.monster("kraken", 07,07)
-- --
-- the nesting dragon -- the nesting dragon