Bigroom 3 may have some walls replaced with other terrain

This commit is contained in:
Pasi Kallinen
2023-10-06 12:07:07 +03:00
parent 90ec36bcd6
commit 38546778d5
2 changed files with 9 additions and 0 deletions

View File

@@ -30,6 +30,14 @@ des.map([[
-- Dungeon Description
des.region(selection.area(01,01,73,16), "lit");
-- replace some walls
if percent(66) then
local sel = selection.match("[.w.]");
local terrains = { "F", "T", "W", "Z" };
local choice = terrains[math.random(1, #terrains)];
des.terrain(sel, choice);
end
-- Stairs
des.stair("up");
des.stair("down");