Add a new bigroom variant "pillars"

Some variants have a bigroom variant called "Mines of Moria";
this one is very much that, but has several different arrangements
of the pillars.
This commit is contained in:
Pasi Kallinen
2026-01-09 19:39:45 +02:00
parent b19db444c5
commit 99b893c786
7 changed files with 77 additions and 3 deletions
+71
View File
@@ -0,0 +1,71 @@
-- NetHack bigroom bigrm-13.lua $NHDT-Date: 1652196024 2022/05/10 15:20:24 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.0 $
-- Copyright (c) 2026 by Pasi Kallinen
-- NetHack may be freely redistributed. See license for details.
--
-- Pillars
des.level_init({ style = "solidfill", fg = " " });
des.level_flags("mazelevel", "noflip");
des.map([[
---------------------------------------------------------------------------
|.........................................................................|
|.........................................................................|
|.........................................................................|
|.........................................................................|
|.........................................................................|
|.........................................................................|
|.........................................................................|
|.........................................................................|
|.........................................................................|
|.........................................................................|
|.........................................................................|
|.........................................................................|
|.........................................................................|
|.........................................................................|
|.........................................................................|
|.........................................................................|
|.........................................................................|
---------------------------------------------------------------------------
]]);
local pillar = [[
---
| |
---]];
filters = {
function(x, y) return true; end,
function(x, y) return (x%2 == 1); end,
function(x, y) return (((x+y)%2) == 0); end,
function(x, y) return (y%2 == 1); end,
function(x, y) return (y%2 == 0); end,
};
idx = math.random(1, #filters);
for y = 0,2 do
for x = 0,6 do
if (filters[idx](x, y)) then
des.map({ coord = {12 + x*9, 4 + y*5}, map = pillar, contents=function() end });
end
end
end
des.region(selection.area(00,00,75,18), "lit");
des.wallify();
des.non_diggable();
des.stair("up");
des.stair("down");
for i = 1,15 do
des.object();
end
for i = 1,6 do
des.trap();
end
for i = 1,28 do
des.monster();
end
+1 -1
View File
@@ -70,7 +70,7 @@ dungeon = {
base = 10, base = 10,
range = 3, range = 3,
chance = 40, chance = 40,
nlevels = 12 nlevels = 13
}, },
{ {
name = "medusa", name = "medusa",
+1 -1
View File
@@ -2712,7 +2712,7 @@ menu for what-is command supports /^ and /" to view a list of nearby or whole
level visible and remembered traps level visible and remembered traps
spiders will occasionally spin webs when moving around spiders will occasionally spin webs when moving around
drinking a burning potion of oil will cure being turned into slime drinking a burning potion of oil will cure being turned into slime
new bigroom variants, a boulder maze and hexagons new bigroom variants, a boulder maze, hexagons, pillars
vomiting on an altar provokes the deities wrath vomiting on an altar provokes the deities wrath
branch stairs have a different glyph, show up in yellow color in tty branch stairs have a different glyph, show up in yellow color in tty
duration of confusion when drinking booze depends upon hunger state duration of confusion when drinking booze depends upon hunger state
@@ -1570,6 +1570,7 @@
"$(NH_DAT_DIR)/bigrm-10.lua", "$(NH_DAT_DIR)/bigrm-10.lua",
"$(NH_DAT_DIR)/bigrm-11.lua", "$(NH_DAT_DIR)/bigrm-11.lua",
"$(NH_DAT_DIR)/bigrm-12.lua", "$(NH_DAT_DIR)/bigrm-12.lua",
"$(NH_DAT_DIR)/bigrm-13.lua",
"$(NH_DAT_DIR)/bigrm-2.lua", "$(NH_DAT_DIR)/bigrm-2.lua",
"$(NH_DAT_DIR)/bigrm-3.lua", "$(NH_DAT_DIR)/bigrm-3.lua",
"$(NH_DAT_DIR)/bigrm-4.lua", "$(NH_DAT_DIR)/bigrm-4.lua",
+1 -1
View File
@@ -475,7 +475,7 @@ CLEAN_FILE += $(NHLUAH)
LUALIST = air Arc-fila Arc-filb Arc-goal Arc-loca Arc-strt \ LUALIST = air Arc-fila Arc-filb Arc-goal Arc-loca Arc-strt \
asmodeus astral baalz Bar-fila Bar-filb Bar-goal \ asmodeus astral baalz Bar-fila Bar-filb Bar-goal \
Bar-loca Bar-strt bigrm-1 bigrm-10 bigrm-11 bigrm-2 \ Bar-loca Bar-strt bigrm-1 bigrm-10 bigrm-11 bigrm-2 \
bigrm-12 \ bigrm-12 bigrm-13 \
bigrm-3 bigrm-4 bigrm-5 bigrm-6 bigrm-7 bigrm-8 \ bigrm-3 bigrm-4 bigrm-5 bigrm-6 bigrm-7 bigrm-8 \
bigrm-9 castle Cav-fila Cav-filb Cav-goal Cav-loca \ bigrm-9 castle Cav-fila Cav-filb Cav-goal Cav-loca \
Cav-strt dungeon earth fakewiz1 fakewiz2 fire \ Cav-strt dungeon earth fakewiz1 fakewiz2 fire \
+1
View File
@@ -711,6 +711,7 @@ HACKINCL = \
LUA_FILES = $(DAT)asmodeus.lua $(DAT)baalz.lua $(DAT)bigrm-1.lua \ LUA_FILES = $(DAT)asmodeus.lua $(DAT)baalz.lua $(DAT)bigrm-1.lua \
$(DAT)bigrm-10.lua $(DAT)bigrm-11.lua $(DAT)bigrm-12.lua \ $(DAT)bigrm-10.lua $(DAT)bigrm-11.lua $(DAT)bigrm-12.lua \
$(DAT)bigrm-13.lua \
$(DAT)bigrm-2.lua $(DAT)bigrm-3.lua $(DAT)bigrm-4.lua \ $(DAT)bigrm-2.lua $(DAT)bigrm-3.lua $(DAT)bigrm-4.lua \
$(DAT)bigrm-5.lua $(DAT)bigrm-6.lua $(DAT)bigrm-7.lua \ $(DAT)bigrm-5.lua $(DAT)bigrm-6.lua $(DAT)bigrm-7.lua \
$(DAT)bigrm-8.lua $(DAT)bigrm-9.lua $(DAT)castle.lua \ $(DAT)bigrm-8.lua $(DAT)bigrm-9.lua $(DAT)castle.lua \
+1
View File
@@ -33,6 +33,7 @@
<Luafiles Include = "bigrm-10.lua"/> <Luafiles Include = "bigrm-10.lua"/>
<Luafiles Include = "bigrm-11.lua"/> <Luafiles Include = "bigrm-11.lua"/>
<Luafiles Include = "bigrm-12.lua"/> <Luafiles Include = "bigrm-12.lua"/>
<Luafiles Include = "bigrm-13.lua"/>
<Luafiles Include = "bigrm-2.lua"/> <Luafiles Include = "bigrm-2.lua"/>
<Luafiles Include = "bigrm-3.lua"/> <Luafiles Include = "bigrm-3.lua"/>
<Luafiles Include = "bigrm-4.lua"/> <Luafiles Include = "bigrm-4.lua"/>