Helltweaks: improve lava river

The lava river will now draw another river, until a certain
amount of map locations have been turned into lava, so you don't
get a teensy "river" made out of 2 lava pools.

Add a lua selection method to count the number of locations
in the selection.
This commit is contained in:
Pasi Kallinen
2023-01-30 17:07:40 +02:00
parent c7464e8aa5
commit 744d64487b
4 changed files with 91 additions and 15 deletions

View File

@@ -1153,6 +1153,15 @@ Example:
local s = selection.negate();
=== numpoints
Return the number of points in the selection.
Example:
local n = sel:numpoints();
=== percentage
Each selected location has a percentage chance of being selected in the new selection.