Create temperature requirement for giant tree.

Since the giant tree is currently a leafy tree, it looks a bit out
of place in colder regions where there's otherwise only pine trees.
This commit is contained in:
Tormod G. Hellen 2022-06-07 00:26:09 +02:00
parent c1335e16fe
commit 08ffcdf5a5

View File

@ -1336,7 +1336,9 @@ impl SiteKind {
SiteKind::Gnarling => {
(-0.3..0.4).contains(&chunk.temp) && chunk.tree_density > 0.75
},
SiteKind::GiantTree | SiteKind::Tree => chunk.tree_density > 0.4,
SiteKind::GiantTree | SiteKind::Tree => {
chunk.tree_density > 0.4 && (-0.3..0.4).contains(&chunk.temp)
},
SiteKind::CliffTown => {
(-0.6..0.4).contains(&chunk.temp)
&& chunk.near_cliffs()