Gehennom tweaks: replace some walls with boulders

This commit is contained in:
Pasi Kallinen
2023-01-24 08:34:27 +02:00
parent 9f1493e0ad
commit 9c21832cf2

View File

@@ -101,6 +101,17 @@ function hell_tweaks(protected_area)
lavariver = lavariver & prot;
des.terrain(lavariver, liquid);
end
-- replacing some walls with boulders
if (percent(20)) then
local amount = 3 * math.random(1, 8);
local bwalls = selection.match([[.w.]]):percentage(amount) | selection.match(".\nw\n."):percentage(amount);
bwalls = bwalls & prot;
bwalls:iterate(function (x,y)
des.terrain(x, y, ".");
des.object("boulder", x, y);
end);
end
end
-- pline with variable number of arguments