feat: move biomes code to a separate module, reduce deserts amount

This commit is contained in:
Azgaar 2023-08-11 14:31:08 +04:00
parent 71cc739b4d
commit 1bb90251cd
9 changed files with 185 additions and 135 deletions

View file

@ -257,7 +257,7 @@ async function parseLoadedData(data) {
}
const biomes = data[3].split("|");
biomesData = applyDefaultBiomesSystem();
biomesData = Biomes.getDefault();
biomesData.color = biomes[0].split(",");
biomesData.habitability = biomes[1].split(",").map(h => +h);
biomesData.name = biomes[2].split(",");