This commit is contained in:
Azgaar 2019-12-08 14:53:23 +03:00
parent d3486c5eee
commit 07bc3dee33
4 changed files with 58 additions and 36 deletions

View file

@ -11,24 +11,7 @@
cells = grid.cells, p = grid.points;
cells.h = new Uint8Array(grid.points.length);
const input = document.getElementById("templateInput");
if (!locked("template")) {
const templates = {
"Volcano": 3,
"High Island": 22,
"Low Island": 9,
"Continents": 20,
"Archipelago": 25,
"Mediterranean":3,
"Peninsula": 3,
"Pangea": 5,
"Isthmus": 2,
"Atoll": 1,
"Shattered": 7};
input.value = rw(templates);
}
switch (input.value) {
switch (document.getElementById("templateInput").value) {
case "Volcano": templateVolcano(); break;
case "High Island": templateHighIsland(); break;
case "Low Island": templateLowIsland(); break;