]> granicus.if.org Git - nethack/commitdiff
fix 'Couldn't place lregion type 1' on Orc town
authorPatR <rankin@nethack.org>
Fri, 31 Jan 2020 20:58:24 +0000 (12:58 -0800)
committerPatR <rankin@nethack.org>
Fri, 31 Jan 2020 20:58:24 +0000 (12:58 -0800)
Stairs up from Orcish Town variation of Mine Town were being forced
to be near the bottom of the left side of the level due to a bogus
exclusion region in the level description.  If that small area was all
solid rock then a warning was issued and no stairs up were created.

dat/minetn-1.lua
doc/fixes37.0

index c9cab0732216d8eba4288af7939457243e39b16d..f4c5c85bc4c1d13d23e8c17df7eefe9c5e862bb0 100644 (file)
@@ -35,11 +35,14 @@ des.map([[
 .....................................
 ]]);
 
--- Don't let the player fall into his likely death
-des.teleport_region({ region={01,01,20,19}, region_islev=1, exclude={20,00,70,19}, exclude_islev=1 })
-des.region(selection.area(00,00,36,16),"lit")
-des.levregion({ type="stair-up", region={01,03,20,19}, region_islev=1, exclude={00,00,36,15}, exclude_islev=1 });
-des.levregion({ type="stair-down", region={61,03,75,19}, region_islev=1, exclude={00,00,36,15} })
+-- Don't let the player fall into his likely death; used to explicitly exclude
+-- the town, but that meant that you couldn't teleport out as well as not in.
+des.teleport_region({ region={01,01,20,19}, region_islev=1 })
+des.region(selection.area(01,01,35,17), "lit")
+des.levregion({ type="stair-up", region={01,03,20,19}, region_islev=1,
+               exclude={00,01,36,17} });
+des.levregion({ type="stair-down", region={61,03,75,19}, region_islev=1,
+               exclude={00,01,36,17} })
 
 -- shame we can't make polluted fountains
 des.feature("fountain",16,09)
index c5a6e715ff20e2737af703f3b6875e3ece046db4..337f1e3df87a11cabba6a6f7fcb98fcbd686ffdb 100644 (file)
@@ -1,4 +1,4 @@
-$NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.83 $ $NHDT-Date: 1580476196 2020/01/31 13:09:56 $
+$NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.84 $ $NHDT-Date: 1580504296 2020/01/31 20:58:16 $
 
 General Fixes and Modified Features
 -----------------------------------
@@ -48,7 +48,7 @@ hero can no longer wear blindfold/towel/lenses when poly'd into headless form
 revamp achievement tracking for exploring Mine's End and Sokoban (by acquiring
        luckstone and bag of holding or amulet of reflection, respectively)
 throttle long worm growth rate and HP accumulation
-poly'd hero was able to zap wands, apply tools, and #rub objects wands without
+poly'd hero was able to zap wands, apply tools, and #rub objects without
        having any hands
 
 
@@ -80,6 +80,8 @@ data.base lookup of an entry with any blank lines would falsely claim that
 using nhl_error() to report a Lua processing problem would clobber the stack
 level teleporation's "You materialize on a different level!" could be given
        out of sequence with other arrival messages
+creating Mine Town variant 1 (Orcish Town) sometimes complained about being
+       unable to place lregion type 1 and failed to have any staircase up
 
 
 Platform- and/or Interface-Specific Fixes