Copies hatching from defElements into map svg, and hatching removed from saved map files.

This commit is contained in:
Evolvedexperiment 2022-01-27 13:17:04 +00:00
parent ec7f53454f
commit e7503d14b7
4 changed files with 13 additions and 7 deletions

View file

@ -656,6 +656,7 @@ function generate() {
Military.generate();
Markers.generate();
copyHatching();
addZones();
Names.getMapName();
@ -1483,6 +1484,11 @@ function rankCells() {
TIME && console.timeEnd("rankCells");
}
// copy the hatching (patterns)
function copyHatching() {
document.getElementById("hatching").innerHTML = document.getElementById("defs-hatching").innerHTML;
}
// regenerate some zones
function addZones(number = 1) {
TIME && console.time("addZones");