Adjusted weather. Hopefully fixed trees for real this time, so far so good.

This commit is contained in:
Storm Dragon
2026-01-20 16:54:03 -05:00
parent 1be438a870
commit 5c25ba9a19
5 changed files with 225 additions and 57 deletions

View File

@@ -104,15 +104,8 @@ void expand_regular_area() {
notify("A " + width_desc + " stream flows through the new area at x " + actual_start + ".");
} else {
// Try to place a tree with proper spacing
for (int attempt = 0; attempt < 20; attempt++) {
int tree_pos = random(new_start, new_end);
if (!tree_too_close(tree_pos)) {
Tree@ t = Tree(tree_pos);
trees.insert_last(t);
break;
}
}
// Try to place a tree with proper spacing and per-area limits
spawn_tree_in_area(new_start, new_end);
}
area_expanded_today = true;