]> granicus.if.org Git - nethack/commitdiff
Add some variation to minefill levels
authorPasi Kallinen <paxed@alt.org>
Fri, 3 Feb 2023 17:03:43 +0000 (19:03 +0200)
committerPasi Kallinen <paxed@alt.org>
Fri, 3 Feb 2023 17:10:04 +0000 (19:10 +0200)
Randomize the number of objects and monsters a little bit,
they're still roughly the same as before.

dat/minefill.lua
doc/fixes3-7-0.txt

index 36423385a43724279c31279da5d03d54cf7e46d0..2992690e654fd83086759c71d00eb4bf077b1a87 100644 (file)
@@ -20,27 +20,28 @@ des.level_init({ style="mines", fg=".", bg=" ", smoothed=true, joined=true, wall
 des.stair("up")
 des.stair("down")
 --
-des.object("*")
-des.object("*")
-des.object("*")
+for i = 1,math.random(2, 5) do
+   des.object("*")
+end
 des.object("(")
-des.object()
-des.object()
-des.object()
---
-des.monster("gnome")
-des.monster("gnome")
-des.monster("gnome")
-des.monster("gnome")
-des.monster("gnome")
-des.monster("gnome")
-des.monster("gnome")
+for i = 1,math.random(2, 4) do
+   des.object()
+end
+if percent(75) then
+   for i = 1,math.random(1, 2) do
+      des.object("boulder")
+   end
+end
+--
+for i = 1,math.random(6, 8) do
+   des.monster("gnome")
+end
 des.monster("gnome lord")
 des.monster("dwarf")
 des.monster("dwarf")
 des.monster("G")
 des.monster("G")
-des.monster("h")
+des.monster(percent(50) and "h" or "G")
 --
 des.trap()
 des.trap()
index b3e5b3a39a8af930d89f95c65af787717e38785b..8ea794cd600051a5d168257ef6ba1270d638938f 100644 (file)
@@ -1104,6 +1104,7 @@ give gremlin the property it stole, if possible
 very rarely random items are generated eroded, erodeproof, or greased
 Nazgul can see invisible
 fix a case where punished iron ball yanked hero on top of a monster
+slightly randomize amount of items and monsters in the mines
 
 
 Fixes to 3.7.0-x Problems that Were Exposed Via git Repository