more various climate

This commit is contained in:
Azgaar 2021-04-10 21:03:23 +03:00
parent 6fd8862d7a
commit 0bf8b568a9
5 changed files with 17 additions and 17 deletions

18
main.js
View file

@ -754,8 +754,8 @@ function defineMapSize() {
function getSizeAndLatitude() {
const template = document.getElementById("templateInput").value; // heightmap template
const part = grid.features.some(f => f.land && f.border); // if land goes over map borders
const max = part ? 85 : 100; // max size
const lat = part ? gauss(P(.5) ? 30 : 70, 15, 20, 80) : gauss(50, 20, 15, 85); // latiture shift
const max = part ? 80 : 100; // max size
const lat = () => gauss(P(.5) ? 40 : 60, 15, 25, 75); // latiture shift
if (!part) {
if (template === "Pangea") return [100, 50];
@ -766,14 +766,14 @@ function defineMapSize() {
if (template === "Low Island" && P(.1)) return [100, 50];
}
if (template === "Pangea") return [gauss(75, 20, 30, max), lat];
if (template === "Volcano") return [gauss(30, 20, 10, max), lat];
if (template === "Mediterranean") return [gauss(30, 30, 15, 80), lat];
if (template === "Peninsula") return [gauss(15, 15, 5, 80), lat];
if (template === "Isthmus") return [gauss(20, 20, 3, 80), lat];
if (template === "Atoll") return [gauss(10, 10, 2, max), lat];
if (template === "Pangea") return [gauss(70, 20, 30, max), lat()];
if (template === "Volcano") return [gauss(20, 20, 10, max), lat()];
if (template === "Mediterranean") return [gauss(25, 30, 15, 80), lat()];
if (template === "Peninsula") return [gauss(15, 15, 5, 80), lat()];
if (template === "Isthmus") return [gauss(15, 20, 3, 80), lat()];
if (template === "Atoll") return [gauss(5, 10, 2, max), lat()];
return [gauss(40, 20, 15, max), lat]; // Continents, Archipelago, High Island, Low Island
return [gauss(30, 20, 15, max), lat()]; // Continents, Archipelago, High Island, Low Island
}
}