mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 18:11:24 +01:00
Updated Resources: spread functions (markdown)
parent
692a3787c0
commit
529089e40f
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue