Prevented trees from being too sparse

This commit is contained in:
Joshua Barretto 2021-01-04 01:49:26 +00:00
parent b137ab4aed
commit 95a98044e3

@ -219,7 +219,8 @@ impl ProceduralTree {
});
if depth < 4 {
for _ in 0..rng.gen_range(2, 4) {
let sub_branches = if depth == 0 { 3 } else { rng.gen_range(2, 4) };
for _ in 0..sub_branches {
add_branches(branches, rng, end, branch_dir, depth + 1);
}
}