mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 20:11:24 +01:00
Wetland
Added a function to calculate wetland in separated statements. Fixed some typos.
This commit is contained in:
parent
58c356c5b7
commit
d07e43cde8
1 changed files with 6 additions and 0 deletions
6
main.js
6
main.js
|
|
@ -1524,6 +1524,12 @@ function isWetLand(moisture, temperature, height) {
|
||||||
return false;
|
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
|
// assign biome id for each cell
|
||||||
function defineBiomes() {
|
function defineBiomes() {
|
||||||
TIME && console.time("defineBiomes");
|
TIME && console.time("defineBiomes");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue