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
d8ef810f9d
commit
acef804b5b
1 changed files with 20 additions and 20 deletions
|
|
@ -20,6 +20,25 @@ The options are limited to a number of build-in functions. These functions make
|
|||
* `type(string, 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`
|
||||
* `river()`: true if there is a river in the cell
|
||||
|
||||
### # Biomes ids
|
||||
|
||||
Default biome ids:
|
||||
* 0: Marine
|
||||
* 1: Hot desert
|
||||
* 2: Cold desert
|
||||
* 3: Savanna
|
||||
* 4: Grassland
|
||||
* 5: Tropical seasonal forest
|
||||
* 6: Temperate deciduous forest
|
||||
* 7: Tropical rainforest
|
||||
* 8: Temperate rainforest
|
||||
* 9: Taiga
|
||||
* 10: Tundra
|
||||
* 11: Glacier
|
||||
* 12: Wetland
|
||||
|
||||
To get actual biome id run `biomesData.name.map((n,i) => i+". "+n)` in FMG console (F12).
|
||||
|
||||
# Examples
|
||||
|
||||
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))`.
|
||||
|
|
@ -55,23 +74,4 @@ Check the build-in models below to get the gist.
|
|||
* Boreal_forests: `biome(9) || (biome(10) && nth(2)) || (biome(6, 8) && nth(5)) || (biome(12) && nth(10))`
|
||||
* Less_habitable_seashore: `shore(1) && habitable() && !habitability()`
|
||||
* Less_habitable_biomes: `habitable() && !habitability()`
|
||||
* Arctic_waters: `biome(0) && maxTemp(7)`
|
||||
|
||||
# Biomes ids
|
||||
|
||||
Default biome ids:
|
||||
* 0: Marine
|
||||
* 1: Hot desert
|
||||
* 2: Cold desert
|
||||
* 3: Savanna
|
||||
* 4: Grassland
|
||||
* 5: Tropical seasonal forest
|
||||
* 6: Temperate deciduous forest
|
||||
* 7: Tropical rainforest
|
||||
* 8: Temperate rainforest
|
||||
* 9: Taiga
|
||||
* 10: Tundra
|
||||
* 11: Glacier
|
||||
* 12: Wetland
|
||||
|
||||
To get actual biome id run `biomesData.name.map((n,i) => i+". "+n)` in FMG console (F12).
|
||||
* Arctic_waters: `biome(0) && maxTemp(7)`
|
||||
Loading…
Add table
Add a link
Reference in a new issue