Prevent stairs in Mausoleum themeroom

... by making the mausoleum part into an unjoined subroom
This commit is contained in:
Pasi Kallinen
2020-04-21 17:57:42 +03:00
parent ca4e729216
commit c0cbe21c4e

View File

@@ -190,26 +190,22 @@ 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() contents = function(rm)
local pts = { {1,1}, {2,1}, {3,1}, des.room({ type = "themed", x = (rm.width / 2), y = (rm.height / 2), w = 1, h = 1, joined = 0,
{1,2}, {3,2}, contents = function()
{1,3}, {2,3}, {3,3} }; if (percent(50)) then
for i = 1, #pts do local mons = { "M", "V", "L", "Z" };
des.terrain(pts[i], "-"); shuffle(mons);
end des.monster(mons[1], 0,0);
if (percent(50)) then else
local mons = { "M", "V", "L", "Z" }; des.object({ id = "corpse", montype = "@", coord = {0,0} });
shuffle(mons); end
des.monster(mons[1], 2,2); if (percent(20)) then
else des.door({ state="secret", wall="all" });
des.object({ id = "corpse", montype = "@", coord = {2,2} }); end
end end
if (percent(20)) then });
local place = { {2,1}, {1,2}, {3,2}, {2,3} };
shuffle(place);
des.terrain(place[1], "S");
end
end end
}); });
end, end,