feat: add biome parameter adjustment

This commit is contained in:
2026-04-25 22:23:24 +08:00
parent a95ad796ce
commit 9402847e89
7 changed files with 227 additions and 25 deletions

View File

@@ -387,7 +387,7 @@ void Chunk::gen_phase_six() {
std::shuffle(z_arr.begin(), z_arr.end(), Cubed::Random::get().engine());
for (auto x : x_arr) {
for (auto z : z_arr) {
if (Cubed::Random::get().random_bool(0.1)) {
if (Cubed::Random::get().random_bool(forest_params().tree_frequency)) {
build_tree(*this, {x, static_cast<int>(m_heightmap[x][z]), z});
}