From acef804b5b96e3d7b894d41190332f17bbb82fa9 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Wed, 12 May 2021 17:41:20 +0300 Subject: [PATCH] Updated Resources: spread functions (markdown) --- Resources:-spread-functions.md | 40 +++++++++++++++++----------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/Resources:-spread-functions.md b/Resources:-spread-functions.md index 5afa348..4f03732 100644 --- a/Resources:-spread-functions.md +++ b/Resources:-spread-functions.md @@ -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). \ No newline at end of file +* Arctic_waters: `biome(0) && maxTemp(7)` \ No newline at end of file