mirror of
https://github.com/minetest/minetest.git
synced 2024-09-12 00:26:50 +02:00
Cavegen, mgv5: Cleanup code
Conf.example: Update mgv5 mapgen params Mgv7: Lava caves only below -256
This commit is contained in:
parent
cd684497c2
commit
eb7482fd73
@ -486,33 +486,14 @@
|
||||
# flags = "defaults"
|
||||
#}
|
||||
# Only the group format supports noise flags which are needed for eased noise.
|
||||
# Mgv5 uses eased noise for np_cave1, np_cave2, np_ground and np_crumble, so these are shown in
|
||||
# group format, other noise parameters are shown in positional format to save space.
|
||||
# Mgv5 uses eased noise for np_ground so this is shown in group format,
|
||||
# other noise parameters are shown in positional format to save space.
|
||||
|
||||
#mgv5_spflags = blobs
|
||||
#mgv5_np_filler_depth = 0, 1, (150, 150, 150), 261, 4, 0.7, 2.0
|
||||
#mgv5_np_factor = 0, 1, (250, 250, 250), 920381, 3, 0.45, 2.0
|
||||
#mgv5_np_height = 0, 10, (250, 250, 250), 84174, 4, 0.5, 2.0
|
||||
#mgv5_np_cave1 = {
|
||||
# offset = 0
|
||||
# scale = 6
|
||||
# spread = (50, 50, 50)
|
||||
# seed = 52534
|
||||
# octaves = 4
|
||||
# persistence = 0.5
|
||||
# lacunarity = 2.0
|
||||
# flags = "eased"
|
||||
#}
|
||||
#mgv5_np_cave2 = {
|
||||
# offset = 0
|
||||
# scale = 6
|
||||
# spread = (50, 50, 50)
|
||||
# seed = 10325
|
||||
# octaves = 4
|
||||
# persistence = 0.5
|
||||
# lacunarity = 2.0
|
||||
# flags = "eased"
|
||||
#}
|
||||
#mgv5_np_cave1 = 0, 12, (50, 50, 50), 52534, 4, 0.5, 2.0
|
||||
#mgv5_np_cave2 = 0, 12, (50, 50, 50), 10325, 4, 0.5, 2.0
|
||||
#mgv5_np_ground = {
|
||||
# offset = 0
|
||||
# scale = 40
|
||||
@ -523,17 +504,6 @@
|
||||
# lacunarity = 2.0
|
||||
# flags = "eased"
|
||||
#}
|
||||
#mgv5_np_crumble = {
|
||||
# offset = 0
|
||||
# scale = 1
|
||||
# spread = (20, 20, 20)
|
||||
# seed = 34413
|
||||
# octaves = 3
|
||||
# persistence = 1.3
|
||||
# lacunarity = 2.0
|
||||
# flags = "eased"
|
||||
#}
|
||||
#mgv5_np_wetness = 0, 1, (40, 40, 40), 32474, 4, 1.1, 2.0
|
||||
|
||||
#mgv6_spflags = biomeblend, jungles, mudflow
|
||||
#mgv6_np_terrain_base = -4, 20, (250, 250, 250), 82341, 5, 0.6, 2.0
|
||||
|
1138
src/cavegen.cpp
1138
src/cavegen.cpp
File diff suppressed because it is too large
Load Diff
@ -129,7 +129,6 @@ public:
|
||||
int dswitchint;
|
||||
int part_max_length_rs;
|
||||
|
||||
bool large_cave;
|
||||
bool large_cave_is_flat;
|
||||
bool flooded;
|
||||
|
||||
@ -155,7 +154,7 @@ public:
|
||||
int water_level;
|
||||
|
||||
CaveV7() {}
|
||||
CaveV7(MapgenV7 *mg, PseudoRandom *ps, bool large_cave);
|
||||
CaveV7(MapgenV7 *mg, PseudoRandom *ps);
|
||||
void makeCave(v3s16 nmin, v3s16 nmax, int max_stone_height);
|
||||
void makeTunnel(bool dirswitch);
|
||||
void carveRoute(v3f vec, float f, bool randomize_xz, bool is_ravine);
|
||||
|
@ -790,7 +790,7 @@ void MapgenV7::generateCaves(int max_stone_y)
|
||||
PseudoRandom ps(blockseed + 21343);
|
||||
u32 bruises_count = (ps.range(1, 5) == 1) ? ps.range(1, 2) : 0;
|
||||
for (u32 i = 0; i < bruises_count; i++) {
|
||||
CaveV7 cave(this, &ps, true);
|
||||
CaveV7 cave(this, &ps);
|
||||
cave.makeCave(node_min, node_max, max_stone_y);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user