mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 20:11:24 +01:00
Copies hatching from defElements into map svg, and hatching removed from saved map files.
This commit is contained in:
parent
ec7f53454f
commit
e7503d14b7
4 changed files with 13 additions and 7 deletions
6
main.js
6
main.js
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue