From 29a81531702d93e5c355f7811220aed872e60a14 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Fri, 9 Jul 2021 18:16:48 +0300 Subject: [PATCH] Add a new bigroom variant "boulder maze" --- dat/bigrm-11.lua | 36 ++++++++++++++++++++++++++++++++++++ dat/dungeon.lua | 2 +- doc/fixes37.0 | 1 + sys/windows/vs/files.props | 1 + 4 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 dat/bigrm-11.lua diff --git a/dat/bigrm-11.lua b/dat/bigrm-11.lua new file mode 100644 index 000000000..7847868be --- /dev/null +++ b/dat/bigrm-11.lua @@ -0,0 +1,36 @@ + +-- Boulder "maze" with wide corridors + +function t_or_f() return percent(50) and true or false; end + +des.level_flags("mazelevel", "noflip"); +des.level_init({ style = "maze", corrwid = 3 + nh.rn2(3), wallthick = 1, deadends=t_or_f() }); + +des.region(selection.area(00,00,75,18), "lit"); +des.non_diggable(); + +function replace_wall_boulder(x,y) + des.terrain(x, y, "."); + des.object("boulder", x, y); +end + +-- replace horizontal and vertical walls +local sel = selection.match([[.w.]]) | selection.match(".\nw\n."); +sel:iterate(replace_wall_boulder); +-- replace the leftover corner walls +local sel = selection.match([[.w.]]); +sel:iterate(replace_wall_boulder); + +des.stair("up"); +des.stair("down"); + +for i = 1,15 do + des.object(); +end +for i = 1,6 do + des.trap("rolling boulder"); +end +for i = 1,28 do + des.monster(); +end + diff --git a/dat/dungeon.lua b/dat/dungeon.lua index bf4d4b9bf..ca9730ccb 100644 --- a/dat/dungeon.lua +++ b/dat/dungeon.lua @@ -66,7 +66,7 @@ dungeon = { base = 10, range = 3, chance = 40, - nlevels = 10 + nlevels = 11 }, { name = "medusa", diff --git a/doc/fixes37.0 b/doc/fixes37.0 index 0d4b3ece8..7393d29ba 100644 --- a/doc/fixes37.0 +++ b/doc/fixes37.0 @@ -1064,6 +1064,7 @@ menu for what-is command supports /^ and /" to view a list of nearby or whole level visible and remembered traps spiders will occasionally spin webs when moving around drinking a burning potion of oil will cure being turned into slime +new bigroom variant, a boulder maze Platform- and/or Interface-Specific New Features diff --git a/sys/windows/vs/files.props b/sys/windows/vs/files.props index 68c722288..4f21e681d 100644 --- a/sys/windows/vs/files.props +++ b/sys/windows/vs/files.props @@ -28,6 +28,7 @@ +