aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorParamat <paramat@users.noreply.github.com>2018-07-18 03:34:05 +0100
committerGitHub <noreply@github.com>2018-07-18 03:34:05 +0100
commitbc9bb63aed82fb98eeab641eb8515c4cc1779230 (patch)
tree8f751891887ad0808be09d5c6b0e24539dbea4e1 /builtin
parentade7a1cbcf7156ebddb12bd2ec2ea60818d72b19 (diff)
downloadminetest-bc9bb63aed82fb98eeab641eb8515c4cc1779230.tar.gz
minetest-bc9bb63aed82fb98eeab641eb8515c4cc1779230.tar.bz2
minetest-bc9bb63aed82fb98eeab641eb8515c4cc1779230.zip
Mgvalleys: Make river depth variation and humidity drop optional (#7532)
Add 2 new mapgen flags to make river depth variation and humidity drop with altitude independently optional, instead of both being enabled by the 'humid rivers' flag. Simplify and clarify related code by removing a low priority optimisation regarding 't_heat'. Remove unnecessary optimisation bools and use spflags directly instead. Improve and fix documentation in settingtypes.txt. A few minor code cleanups.
Diffstat (limited to 'builtin')
-rw-r--r--builtin/settingtypes.txt18
1 files changed, 10 insertions, 8 deletions
diff --git a/builtin/settingtypes.txt b/builtin/settingtypes.txt
index afcee0f8c..d969799ce 100644
--- a/builtin/settingtypes.txt
+++ b/builtin/settingtypes.txt
@@ -1760,14 +1760,16 @@ mgfractal_np_cave2 (Cave2 noise) noise_params_3d 0, 12, (67, 67, 67), 10325, 3,
[*Mapgen Valleys]
# Map generation attributes specific to Mapgen Valleys.
-# 'altitude_chill' makes higher elevations colder, which may cause biome issues.
-# 'humid_rivers' modifies the humidity around rivers and in areas where water would tend to pool,
-# it may interfere with delicately adjusted biomes.
-# Flags that are not enabled are not modified from the default.
-# Flags starting with 'no' are used to explicitly disable them.
-mgvalleys_spflags (Mapgen Valleys specific flags) flags altitude_chill,humid_rivers altitude_chill,noaltitude_chill,humid_rivers,nohumid_rivers
-
-# The altitude at which temperature drops by 20.
+# 'altitude_chill': Reduces heat with altitude.
+# 'humid_rivers': Increases humidity around rivers and where water pools.
+# 'vary_river_depth': If enabled, low humidity and high heat causes rivers
+# to become shallower and occasionally dry.
+# 'altitude_dry': Reduces humidity with altitude.
+mgvalleys_spflags (Mapgen Valleys specific flags) flags altitude_chill,humid_rivers,vary_river_depth,altitude_dry altitude_chill,noaltitude_chill,humid_rivers,nohumid_rivers,vary_river_depth,novary_river_depth,altitude_dry,noaltitude_dry
+
+# The vertical distance over which heat drops by 20 if 'altitude_chill' is
+# enabled. Also the vertical distance over which humidity drops by 10 if
+# 'altitude_dry' is enabled.
mgvalleys_altitude_chill (Altitude chill) int 90
# Depth below which you'll find large caves.