Updated Resources: spread functions (markdown)

Azgaar 2021-05-10 21:13:05 +03:00
parent 1c48c3cb4f
commit 7311220a5f

@ -24,7 +24,11 @@ However the function is limited to a number of build-in functions. These functio
Let's say we want a resource to be generated in hot and highly elevated areas. If altitude is medium, let it also be allowed, but pretty rarely. The model will be something like `minTemp(15) && (minHeight(70) || minHeight(40) && nth(5))`.
# Built-in models
Another usual case is when we want resource frequency vary based on biomes. In this case you need to join multiple `biome()` functions like `biome(1) && (biome(2) && nth(2)) && (biome(3) && nth(3))`.
Check the build-in function below to get the gist.
## Built-in models
* Deciduous_forests: `biome(6, 7, 8)`
* Any_forest: `biome(5, 6, 7, 8, 9)`
* Temperate_and_boreal_forests: `biome(6, 8, 9)`
@ -70,4 +74,4 @@ Default biome ids:
* 11: Glacier
* 12: Wetland
To get actual biome id run `biomesData.name.map((n,i) => `${i}: ${n}`)` in FMG console (F12).
To get actual biome id run `biomesData.name.map((n,i) => i+". "+n)` in FMG console (F12).