Gehennom tweaks: replace some walls with boulders
This commit is contained in:
@@ -101,6 +101,17 @@ function hell_tweaks(protected_area)
|
|||||||
lavariver = lavariver & prot;
|
lavariver = lavariver & prot;
|
||||||
des.terrain(lavariver, liquid);
|
des.terrain(lavariver, liquid);
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
-- pline with variable number of arguments
|
-- pline with variable number of arguments
|
||||||
|
|||||||
Reference in New Issue
Block a user