From 07b4934c7ed851069ad37c68dc7c80fb58d39887 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81ngel=20Montero=20Lamas?= Date: Tue, 14 Dec 2021 18:13:11 +0100 Subject: [PATCH] added return 12 Added the part return 12; (wetland) to line 1428. Deleted it by mistake. --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 1a0e76ec..2aa5b833 100644 --- a/main.js +++ b/main.js @@ -1425,7 +1425,7 @@ function defineBiomes() { function getBiomeId(moisture, temperature, height) { if (height < 20) return 0; // marine biome: all water cells if (temperature < -5) return 11; // permafrost biome - if (moisture > 40 && temperature > -2 && height < 60); // wetland biome + if (moisture > 40 && temperature > -2 && height < 60) return 12; // wetland biome const moistureBand = Math.min((moisture / 5) | 0, 4); // [0-4] const temperatureBand = Math.min(Math.max(20 - temperature, 0), 25); // [0-25]