Adjust some themerooms

This commit is contained in:
Pasi Kallinen
2020-04-21 18:59:25 +03:00
parent 54aa84eeea
commit 907e7dead1

View File

@@ -79,12 +79,17 @@ themerooms = {
-- Boulder room -- Boulder room
function() function()
des.room({ type = "themed", des.room({ type = "themed",
contents = function() contents = function(rm)
for i = 1, 3 + d(6) do for x = 0, rm.width do
des.object("boulder"); for y = 0, rm.height do
end if (percent(30)) then
for i = 1, d(4) do if (percent(50)) then
des.trap("rolling boulder"); des.object("boulder");
else
des.trap("rolling boulder");
end
end
end
end end
end end
}); });
@@ -93,9 +98,13 @@ themerooms = {
-- Spider nest -- Spider nest
function() function()
des.room({ type = "themed", des.room({ type = "themed",
contents = function() contents = function(rm)
for i = 1, d(3,3) do for x = 0, rm.width do
des.trap("web"); for y = 0, rm.height do
if (percent(30)) then
des.trap("web", x, y);
end
end
end end
end end
}); });
@@ -111,7 +120,7 @@ themerooms = {
shuffle(traps); shuffle(traps);
for x = 0, rm.width do for x = 0, rm.width do
for y = 0, rm.height do for y = 0, rm.height do
if (percent(75)) then if (percent(30)) then
des.trap(traps[1], x, y); des.trap(traps[1], x, y);
end end
end end