mirror of
https://github.com/Cubitect/cubiomes.git
synced 2025-09-25 21:10:30 -04:00
feat: Enable largeBiomes configuration
This commit is contained in:
parent
9d94271c48
commit
de68b81008
12
generator.c
12
generator.c
@ -28,7 +28,7 @@ void setupMultiLayer(int scale, Layer *l, Layer *p1, Layer *p2, int s, void (*ge
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
LayerStack setupGenerator(const int mcversion)
|
LayerStack setupGenerator(const int mcversion, const int large_biome)
|
||||||
{
|
{
|
||||||
if (biomes[plains].id == 0)
|
if (biomes[plains].id == 0)
|
||||||
{
|
{
|
||||||
@ -90,7 +90,15 @@ LayerStack setupGenerator(const int mcversion)
|
|||||||
setupLayer(16, &l[L_SHORE_16], &l[L_ZOOM_16], 1000, mapShore);
|
setupLayer(16, &l[L_SHORE_16], &l[L_ZOOM_16], 1000, mapShore);
|
||||||
setupLayer(8, &l[L_ZOOM_8], &l[L_SHORE_16], 1002, mapZoom);
|
setupLayer(8, &l[L_ZOOM_8], &l[L_SHORE_16], 1002, mapZoom);
|
||||||
setupLayer(4, &l[L_ZOOM_4], &l[L_ZOOM_8], 1003, mapZoom);
|
setupLayer(4, &l[L_ZOOM_4], &l[L_ZOOM_8], 1003, mapZoom);
|
||||||
setupLayer(4, &l[L_SMOOTH_4], &l[L_ZOOM_4], 1000, mapSmooth);
|
|
||||||
|
if (large_biome != 0) {
|
||||||
|
//TODO: scale?
|
||||||
|
setupLayer(4, &l[L_ZOOM_LARGE_BIOME_A], &l[L_ZOOM_4], 1004, mapZoom);
|
||||||
|
setupLayer(4, &l[L_ZOOM_LARGE_BIOME_B], &l[L_ZOOM_LARGE_BIOME_A], 1005, mapZoom);
|
||||||
|
setupLayer(4, &l[L_SMOOTH_4], &l[L_ZOOM_LARGE_BIOME_B], 1000, mapSmooth);
|
||||||
|
} else {
|
||||||
|
setupLayer(4, &l[L_SMOOTH_4], &l[L_ZOOM_4], 1000, mapSmooth);
|
||||||
|
}
|
||||||
|
|
||||||
// river layer chain
|
// river layer chain
|
||||||
setupLayer(128, &l[L_ZOOM_128_RIVER], &l[L_RIVER_INIT_256], 1000, mapZoom);
|
setupLayer(128, &l[L_ZOOM_128_RIVER], &l[L_RIVER_INIT_256], 1000, mapZoom);
|
||||||
|
@ -72,6 +72,10 @@ enum
|
|||||||
// 1.14 layers
|
// 1.14 layers
|
||||||
L14_BAMBOO_256,
|
L14_BAMBOO_256,
|
||||||
|
|
||||||
|
// largeBiomes layers
|
||||||
|
L_ZOOM_LARGE_BIOME_A,
|
||||||
|
L_ZOOM_LARGE_BIOME_B,
|
||||||
|
|
||||||
L_NUM
|
L_NUM
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -195,7 +199,7 @@ extern "C"
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Initialise an instance of a generator. */
|
/* Initialise an instance of a generator. */
|
||||||
LayerStack setupGenerator(const int mcversion);
|
LayerStack setupGenerator(const int mcversion, const int largeBiomes);
|
||||||
|
|
||||||
/* Cleans up and frees the generator layers */
|
/* Cleans up and frees the generator layers */
|
||||||
void freeGenerator(LayerStack g);
|
void freeGenerator(LayerStack g);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user