mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Mgv5/v7/fractal: Add 'large_cave_depth' parameter to replace fixed value
The value cannot be fixed because we can shift terrain vertically. This also makes these mapgens consistent with mgflat and mgvalleys which have 'large_cave_depth' parameters.
This commit is contained in:
@@ -37,6 +37,7 @@ extern FlagDesc flagdesc_mapgen_v7[];
|
||||
struct MapgenV7Params : public MapgenParams {
|
||||
u32 spflags = MGV7_MOUNTAINS | MGV7_RIDGES | MGV7_CAVERNS;
|
||||
float cave_width = 0.09f;
|
||||
s16 large_cave_depth = -33;
|
||||
float float_mount_density = 0.6f;
|
||||
float float_mount_height = 128.0f;
|
||||
s16 floatland_level = 1280;
|
||||
@@ -88,6 +89,7 @@ public:
|
||||
void generateRidgeTerrain();
|
||||
|
||||
private:
|
||||
s16 large_cave_depth;
|
||||
float float_mount_density;
|
||||
float float_mount_height;
|
||||
s16 floatland_level;
|
||||
|
Reference in New Issue
Block a user