mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-19 10:31:24 +01:00
Updated Resources: spread functions (markdown)
parent
1c48c3cb4f
commit
7311220a5f
1 changed files with 6 additions and 2 deletions
|
|
@ -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))`.
|
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)`
|
* Deciduous_forests: `biome(6, 7, 8)`
|
||||||
* Any_forest: `biome(5, 6, 7, 8, 9)`
|
* Any_forest: `biome(5, 6, 7, 8, 9)`
|
||||||
* Temperate_and_boreal_forests: `biome(6, 8, 9)`
|
* Temperate_and_boreal_forests: `biome(6, 8, 9)`
|
||||||
|
|
@ -70,4 +74,4 @@ Default biome ids:
|
||||||
* 11: Glacier
|
* 11: Glacier
|
||||||
* 12: Wetland
|
* 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).
|
||||||
Loading…
Add table
Add a link
Reference in a new issue