forked from Mirrorlandia_minetest/minetest
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"
|
# flags = "defaults"
|
||||||
#}
|
#}
|
||||||
# Only the group format supports noise flags which are needed for eased noise.
|
# 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
|
# Mgv5 uses eased noise for np_ground so this is shown in group format,
|
||||||
# group format, other noise parameters are shown in positional format to save space.
|
# 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_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_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_height = 0, 10, (250, 250, 250), 84174, 4, 0.5, 2.0
|
||||||
#mgv5_np_cave1 = {
|
#mgv5_np_cave1 = 0, 12, (50, 50, 50), 52534, 4, 0.5, 2.0
|
||||||
# offset = 0
|
#mgv5_np_cave2 = 0, 12, (50, 50, 50), 10325, 4, 0.5, 2.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_ground = {
|
#mgv5_np_ground = {
|
||||||
# offset = 0
|
# offset = 0
|
||||||
# scale = 40
|
# scale = 40
|
||||||
@ -523,17 +504,6 @@
|
|||||||
# lacunarity = 2.0
|
# lacunarity = 2.0
|
||||||
# flags = "eased"
|
# 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_spflags = biomeblend, jungles, mudflow
|
||||||
#mgv6_np_terrain_base = -4, 20, (250, 250, 250), 82341, 5, 0.6, 2.0
|
#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 dswitchint;
|
||||||
int part_max_length_rs;
|
int part_max_length_rs;
|
||||||
|
|
||||||
bool large_cave;
|
|
||||||
bool large_cave_is_flat;
|
bool large_cave_is_flat;
|
||||||
bool flooded;
|
bool flooded;
|
||||||
|
|
||||||
@ -155,7 +154,7 @@ public:
|
|||||||
int water_level;
|
int water_level;
|
||||||
|
|
||||||
CaveV7() {}
|
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 makeCave(v3s16 nmin, v3s16 nmax, int max_stone_height);
|
||||||
void makeTunnel(bool dirswitch);
|
void makeTunnel(bool dirswitch);
|
||||||
void carveRoute(v3f vec, float f, bool randomize_xz, bool is_ravine);
|
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);
|
PseudoRandom ps(blockseed + 21343);
|
||||||
u32 bruises_count = (ps.range(1, 5) == 1) ? ps.range(1, 2) : 0;
|
u32 bruises_count = (ps.range(1, 5) == 1) ? ps.range(1, 2) : 0;
|
||||||
for (u32 i = 0; i < bruises_count; i++) {
|
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);
|
cave.makeCave(node_min, node_max, max_stone_y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user