mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
Merge branch 'master' into alpha
This commit is contained in:
commit
305d355ad5
5 changed files with 168 additions and 1 deletions
|
|
@ -74,6 +74,7 @@
|
|||
ERROR && console.error("Name base is empty, default nameBases will be applied");
|
||||
nameBases = Names.getNameBases();
|
||||
}
|
||||
|
||||
cultures.forEach(c => c.base = c.base % nameBases.length);
|
||||
|
||||
function getRandomCultures(c) {
|
||||
|
|
@ -380,6 +381,7 @@
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
TIME && console.timeEnd('expandCultures');
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -100,6 +100,7 @@ function showMapTooltip(point, e, i, g) {
|
|||
tip(e.target.parentNode.dataset.name + ". Click to edit");
|
||||
return;
|
||||
}
|
||||
|
||||
if (group === "emblems" && e.target.tagName === "use") {
|
||||
const parent = e.target.parentNode;
|
||||
const [g, type] = parent.id === "burgEmblems" ? [pack.burgs, "burg"] :
|
||||
|
|
@ -115,6 +116,7 @@ function showMapTooltip(point, e, i, g) {
|
|||
tip(`${name} ${type} emblem. Click to edit. Hold Shift to show associated area or place`);
|
||||
return;
|
||||
}
|
||||
|
||||
if (group === "rivers") {
|
||||
const river = +e.target.id.slice(5);
|
||||
const r = pack.rivers.find(r => r.i === river);
|
||||
|
|
|
|||
|
|
@ -954,7 +954,6 @@ function getProvincesVertices() {
|
|||
chain.push([start, province, land]); // add starting vertex to sequence to close the path
|
||||
return chain;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function toggleGrid(event) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue