Added a function to calculate wetland in separated statements. Fixed some typos.
This commit is contained in:
Ángel Montero Lamas 2021-12-15 18:12:56 +01:00 committed by Peter
parent 58c356c5b7
commit d07e43cde8

View file

@ -1524,6 +1524,12 @@ function isWetLand(moisture, temperature, height) {
return false;
}
function isWetLand(moisture, temperature, height) {
if (moisture > 40 && temperature > -2 && height < 25) return true; //near coast
if (moisture > 24 && temperature > -2 && height > 24 && height < 60) return true; //off coast
return false;
}
// assign biome id for each cell
function defineBiomes() {
TIME && console.time("defineBiomes");