Prevent stairs in Mausoleum themeroom
... by making the mausoleum part into an unjoined subroom
This commit is contained in:
+8
-12
@@ -190,28 +190,24 @@ themerooms = {
|
|||||||
|
|
||||||
-- Mausoleum
|
-- Mausoleum
|
||||||
function()
|
function()
|
||||||
des.room({ type = "themed", w = 5,h = 5,
|
des.room({ type = "themed", w = 5 + nh.rn2(3)*2, h = 5 + nh.rn2(3)*2,
|
||||||
|
contents = function(rm)
|
||||||
|
des.room({ type = "themed", x = (rm.width / 2), y = (rm.height / 2), w = 1, h = 1, joined = 0,
|
||||||
contents = function()
|
contents = function()
|
||||||
local pts = { {1,1}, {2,1}, {3,1},
|
|
||||||
{1,2}, {3,2},
|
|
||||||
{1,3}, {2,3}, {3,3} };
|
|
||||||
for i = 1, #pts do
|
|
||||||
des.terrain(pts[i], "-");
|
|
||||||
end
|
|
||||||
if (percent(50)) then
|
if (percent(50)) then
|
||||||
local mons = { "M", "V", "L", "Z" };
|
local mons = { "M", "V", "L", "Z" };
|
||||||
shuffle(mons);
|
shuffle(mons);
|
||||||
des.monster(mons[1], 2,2);
|
des.monster(mons[1], 0,0);
|
||||||
else
|
else
|
||||||
des.object({ id = "corpse", montype = "@", coord = {2,2} });
|
des.object({ id = "corpse", montype = "@", coord = {0,0} });
|
||||||
end
|
end
|
||||||
if (percent(20)) then
|
if (percent(20)) then
|
||||||
local place = { {2,1}, {1,2}, {3,2}, {2,3} };
|
des.door({ state="secret", wall="all" });
|
||||||
shuffle(place);
|
|
||||||
des.terrain(place[1], "S");
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
});
|
});
|
||||||
|
end
|
||||||
|
});
|
||||||
end,
|
end,
|
||||||
|
|
||||||
-- Random dungeon feature in the middle of a odd-sized room
|
-- Random dungeon feature in the middle of a odd-sized room
|
||||||
|
|||||||
Reference in New Issue
Block a user