diff options
author | Paramat <paramat@users.noreply.github.com> | 2019-11-08 03:09:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-08 03:09:43 +0000 |
commit | 2a74727857a9bfd950ce1e6a58e0ade879033574 (patch) | |
tree | fcb59f922de4336a9a7abf37842567089d1638e9 /src/mapgen/mapgen_valleys.h | |
parent | 5506e97ed897dde2d4820fe1b021a4622bae03b3 (diff) | |
download | minetest-2a74727857a9bfd950ce1e6a58e0ade879033574.tar.gz minetest-2a74727857a9bfd950ce1e6a58e0ade879033574.tar.bz2 minetest-2a74727857a9bfd950ce1e6a58e0ade879033574.zip |
Randomwalk caves: Add parameters for number, proportion flooded. Allow small caves (#8928)
Add mapgen parameters to set the range of the random number of
randomwalk caves per mapchunk, and to set the proportion that are
flooded with liquids.
Default values are, for now, unchanged from the previous hardcoded
values.
Add parameters to allow small randomwalk caves
Disabled by default for now as they have never been present in the
non-mgv6 mapgens.
Diffstat (limited to 'src/mapgen/mapgen_valleys.h')
-rw-r--r-- | src/mapgen/mapgen_valleys.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mapgen/mapgen_valleys.h b/src/mapgen/mapgen_valleys.h index ab80dc5c9..945621ab4 100644 --- a/src/mapgen/mapgen_valleys.h +++ b/src/mapgen/mapgen_valleys.h @@ -50,6 +50,11 @@ struct MapgenValleysParams : public MapgenParams { float cave_width = 0.09f; s16 large_cave_depth = -33; s16 lava_depth = 1; + u16 small_cave_num_min = 0; + u16 small_cave_num_max = 0; + u16 large_cave_num_min = 0; + u16 large_cave_num_max = 2; + float large_cave_flooded = 0.5f; s16 cavern_limit = -256; s16 cavern_taper = 192; float cavern_threshold = 0.6f; |