mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
v1.5.04 - Emblems layer and on map placement
This commit is contained in:
parent
968182512c
commit
549eefe7ba
12 changed files with 276 additions and 47 deletions
|
|
@ -191,7 +191,6 @@
|
|||
};
|
||||
|
||||
const generate = function(parent) {
|
||||
TIME && console.time("generateCOA");
|
||||
let usedPattern = null, usedTinctures = [];
|
||||
|
||||
// TODO
|
||||
|
|
@ -199,8 +198,10 @@
|
|||
// stringify coa on save and load
|
||||
// regenerateAll
|
||||
// generate on new item creation
|
||||
// shields for cultures
|
||||
// old versions auti migration
|
||||
// old versions auto migration: coa generation for cultures and states etc.
|
||||
// emblems layer for old maps
|
||||
// define emblems layer style for all styles
|
||||
// add coa on click events for loaded map
|
||||
|
||||
const t1 = parent && P(.25) ? parent.t1 : getTincture("field");
|
||||
const coa = {t1};
|
||||
|
|
@ -427,7 +428,6 @@
|
|||
return .7; // 1, 2
|
||||
}
|
||||
|
||||
TIME && console.timeEnd("generateCOA");
|
||||
return coa;
|
||||
}
|
||||
|
||||
|
|
@ -442,7 +442,8 @@
|
|||
}
|
||||
|
||||
const toString = coa => JSON.stringify(coa).replaceAll("#", "%23");
|
||||
const copy = coa => JSON.parse(JSON.stringify(coa));
|
||||
|
||||
return {generate, generateAll, toString};
|
||||
return {generate, generateAll, toString, copy};
|
||||
|
||||
})));
|
||||
Loading…
Add table
Add a link
Reference in a new issue