Add some variation to minefill levels

Randomize the number of objects and monsters a little bit,
they're still roughly the same as before.
This commit is contained in:
Pasi Kallinen
2023-02-03 19:10:04 +02:00
parent d95e6adbdd
commit 1b5414c833
2 changed files with 16 additions and 14 deletions
+15 -14
View 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()
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
--
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(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()