From d19ea0896d571ea09cb08397b6bc96192430ec31 Mon Sep 17 00:00:00 2001 From: evolvedexperiment <55178666+evolvedexperiment@users.noreply.github.com> Date: Tue, 15 Mar 2022 10:50:48 +0200 Subject: [PATCH] Old World template by ReneHP (#758) --- index.html | 2 ++ modules/heightmap-templates.js | 53 +++++++++++++++++++++++++++++++++- modules/ui/options.js | 9 +++--- 3 files changed, 59 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 653052e6..a5733917 100644 --- a/index.html +++ b/index.html @@ -959,6 +959,7 @@ + @@ -2399,6 +2400,7 @@ +
diff --git a/modules/heightmap-templates.js b/modules/heightmap-templates.js index 3704a3e4..bd371e10 100644 --- a/modules/heightmap-templates.js +++ b/modules/heightmap-templates.js @@ -119,5 +119,56 @@ window.HeightmapTemplates = (function () { Hill 3-4 60-85 20-80 0-5 Hill 3-4 60-85 20-80 95-100`; - return {volcano, highIsland, lowIsland, continents, archipelago, atoll, mediterranean, peninsula, peninsula, pangea, isthmus, shattered, taklamakan}; + + const oldWorld = `Hill 4-6 20-40 15-85 30-45 + Hill 3-7 20-40 15-85 55-70 + Strait 2-7 vertical 0 0 + Pit 1-2 40-50 35-55 20-80 + Strait 2-7 vertical 0 0 + Range 2-3 20-25 15-35 20-30 + Range 2-3 20-25 15-35 65-80 + Range 2-3 20-25 45-85 20-45 + Range 2-3 20-25 45-85 65-80 + Multiply .9 80-100 0 0 + Strait 2-7 vertical 0 0 + Pit 2-3 40-50 45-65 20-80 + Trough 1-2 40-50 15-45 20-45 + Trough 1-3 40-50 15-45 45-80 + Trough 1-2 40-50 45-85 20-45 + Trough 1-2 40-50 45-85 45-80 + Multiply 1.2 17-20 0 0 + Strait 2-7 horizontal 0 0 + Multiply 1.2 17-50 0 0 + Range 1-2 20-25 15-45 45-65 + Range 1-2 20-25 65-85 45-80 + Multiply 1.1 50-80 0 0 + Hill 1-2 20 15-45 20-80 + Hill 1-2 20 65-85 20-80 + Multiply 1.2 15-30 0 0 + Strait 2-7 vertical 0 0 + Trough 1-2 40-50 35-65 65-80 + Range 1-2 20-25 15-35 20-45 + Strait 2-7 vertical 0 0 + Range 1-2 20-25 65-85 45-80 + Multiply .9 70-100 0 0 + Hill 1-2 20-25 15-45 65-80 + Hill 1-2 20-25 65-85 20-45 + Hill 1 20-25 15-45 45-65 + Hill 1 20-25 65-85 45-65 + Strait 2-7 vertical 0 0 + Trough 1-2 20-50 15-45 45-65 + Trough 1-2 20-50 65-85 45-65 + Strait 2-7 horizontal 0 0 + Multiply 0.8 70-100 0 0 + Hill 1-2 20-25 35-45 45-65 + Hill 1-2 20-25 65-70 45-65 + Pit 2-3 40-50 45-65 30-70 + Trough 1-2 40-50 15-85 65-80 + Trough 1-2 40-50 15-85 10-35 + Strait 2-5 vertical 0 0 + Multiply 1.1 45-90 0 0 + Strait 3-7 vertical 0 0 + Trough 1-2 40-50 45-65 45-65`; + + return {volcano, highIsland, lowIsland, continents, archipelago, atoll, mediterranean, peninsula, peninsula, pangea, isthmus, shattered, taklamakan, oldWorld}; })(); diff --git a/modules/ui/options.js b/modules/ui/options.js index b6658490..eef2cd09 100644 --- a/modules/ui/options.js +++ b/modules/ui/options.js @@ -579,17 +579,18 @@ function randomizeOptions() { function randomizeHeightmapTemplate() { const templates = { volcano: 3, - highIsland: 22, + highIsland: 19, lowIsland: 9, - continents: 19, - archipelago: 23, + continents: 16, + archipelago: 18, mediterranean: 5, peninsula: 3, pangea: 5, isthmus: 2, atoll: 1, shattered: 7, - taklamakan: 1 + taklamakan: 1, + oldWorld: 11 }; document.getElementById("templateInput").value = rw(templates); }