From 7311220a5fa1f659aff73c26cb26cdbb269254c3 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Mon, 10 May 2021 21:13:05 +0300 Subject: [PATCH] Updated Resources: spread functions (markdown) --- Resources:-spread-functions.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Resources:-spread-functions.md b/Resources:-spread-functions.md index e482d71..408902c 100644 --- a/Resources:-spread-functions.md +++ b/Resources:-spread-functions.md @@ -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). \ No newline at end of file +To get actual biome id run `biomesData.name.map((n,i) => i+". "+n)` in FMG console (F12). \ No newline at end of file