fix: biome generation

biomes like extreme hills now have correct blocks sky and water, also correct grass. another thing is that now in the world spawns mutated biomes and it is acceptable as a world generation.
i dont thjink it is the same because seeds are not giving me the ones from youtube videos but we will work on it later.

For now it works and it is acceptable. spawns a variety of biomes that before was spawned in a random way, now depending on next biomes and temperature
This commit is contained in:
Lord_Cambion
2026-04-22 12:26:18 +02:00
parent d6e1a4ce75
commit 4303b4966a
17 changed files with 421 additions and 262 deletions
+3 -2
View File
@@ -28,8 +28,9 @@ intArray AddSnowLayer::getArea(int xo, int yo, int w, int h)
}
else
{
int r = nextRandom(5);
if (r == 0) r = Biome::iceFlats->id;
int r = nextRandom(6);
if (r == 0) r = 4;
else if (r <= 1) r = 3;
else r = 1;
result[x + y * w] = r;
}