Add a new bigroom variant "boulder maze"
This commit is contained in:
36
dat/bigrm-11.lua
Normal file
36
dat/bigrm-11.lua
Normal file
@@ -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
|
||||
|
||||
@@ -66,7 +66,7 @@ dungeon = {
|
||||
base = 10,
|
||||
range = 3,
|
||||
chance = 40,
|
||||
nlevels = 10
|
||||
nlevels = 11
|
||||
},
|
||||
{
|
||||
name = "medusa",
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
<Luafiles Include = "bigrm-8.lua"/>
|
||||
<Luafiles Include = "bigrm-9.lua"/>
|
||||
<Luafiles Include = "bigrm-10.lua"/>
|
||||
<Luafiles Include = "bigrm-11.lua"/>
|
||||
<Luafiles Include = "castle.lua"/>
|
||||
<Luafiles Include = "air.lua"/>
|
||||
<Luafiles Include = "astral.lua"/>
|
||||
|
||||
Reference in New Issue
Block a user