mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-26 18:21:04 +00:00
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.
This commit is contained in:
parent
5506e97ed8
commit
2a74727857
17 changed files with 416 additions and 188 deletions
|
@ -39,6 +39,11 @@ struct MapgenFractalParams : public MapgenParams
|
|||
float cave_width = 0.09f;
|
||||
s16 large_cave_depth = -33;
|
||||
s16 lava_depth = -256;
|
||||
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 dungeon_ymin = -31000;
|
||||
s16 dungeon_ymax = 31000;
|
||||
u16 fractal = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue