diff --git a/Resources:-spread-functions.md b/Resources:-spread-functions.md index 5f330e7..194421f 100644 --- a/Resources:-spread-functions.md +++ b/Resources:-spread-functions.md @@ -13,7 +13,7 @@ Build-in functions make models syntax easier to read: * `maxHeight(number)`: true if cell height <= number * `minTemp(number)`: true if cell temperature (in Celsius) >= number * `maxTemp(number)`: true if cell temperature <= number -* `shore(number)`: check against cell distance to shore, where `1` is land next to water (coastline cells), `2` - next land ring, `-1` - water cells next to land (shallow water), `-2, -3, ...` - next water rings, `0` - value not assigned, usually values are assigned only for first 2 land rings, so other land cells have zero value +* `shore(ringId, ringId, ...)`: check against cell distance to shore, where `1` is land next to water (coastline cells), `2` - next land ring, `-1` - water cells next to land (shallow water), `-2, -3, ...` - next water rings, `0` - value not assigned, usually values are assigned only for first 2 land rings, so other land cells have zero value * `type(string)`: check against cell type. Types of all water cells connected to map border is `ocean`, lake types are `freshwater`, `salt`, `sinkhole`, `frozen`, `lava` and `dry`. Land types are defined not so clear, so I don't recommend to use them. In any case land types are `continent`, `island`, `isle` and `lake_island` * `nth(number)`: true for each nth cell only, e.g. `nth(2)` skips 50% of cells, `nth(5)` skips 80% of cells * `random(number)`: percentage of true, e.g. `50` will return true in 50% of cases