mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-02-06 18:41:24 +01:00
fix: minot fixes
This commit is contained in:
parent
2744d32ca0
commit
580c98adaf
2 changed files with 4 additions and 4 deletions
|
|
@ -2108,7 +2108,7 @@
|
||||||
<button id="regenerateRoutes" data-tip="Click to regenerate all unlocked routes">Routes</button>
|
<button id="regenerateRoutes" data-tip="Click to regenerate all unlocked routes">Routes</button>
|
||||||
<button
|
<button
|
||||||
id="regenerateStates"
|
id="regenerateStates"
|
||||||
data-tip="Click to select new capitals and regenerate non-locked states. Emblems and military forces will be regenerated as well, burgs will remain as they are"
|
data-tip="Click to regenerate non-locked states. Emblems and military forces will be regenerated as well, burgs will remain as they are, but capitals will be different"
|
||||||
>
|
>
|
||||||
States
|
States
|
||||||
</button>
|
</button>
|
||||||
|
|
|
||||||
|
|
@ -146,7 +146,7 @@ function recalculatePopulation() {
|
||||||
b.population = rn(b.population * gauss(2, 3, 0.6, 20, 3), 3);
|
b.population = rn(b.population * gauss(2, 3, 0.6, 20, 3), 3);
|
||||||
});
|
});
|
||||||
|
|
||||||
if (layerIsOn("togglePopulation")) drawPopulation();
|
layerIsOn("togglePopulation") ? drawPopulation() : togglePopulation();
|
||||||
}
|
}
|
||||||
|
|
||||||
function regenerateStates() {
|
function regenerateStates() {
|
||||||
|
|
@ -342,7 +342,7 @@ function regenerateProvinces() {
|
||||||
Provinces.getPoles();
|
Provinces.getPoles();
|
||||||
|
|
||||||
if (layerIsOn("toggleBorders")) drawBorders();
|
if (layerIsOn("toggleBorders")) drawBorders();
|
||||||
if (layerIsOn("toggleProvinces")) drawProvinces();
|
layerIsOn("toggleProvinces") ? drawProvinces() : toggleProvinces();
|
||||||
|
|
||||||
// remove emblems
|
// remove emblems
|
||||||
document.querySelectorAll("[id^=provinceCOA]").forEach(el => el.remove());
|
document.querySelectorAll("[id^=provinceCOA]").forEach(el => el.remove());
|
||||||
|
|
@ -508,7 +508,7 @@ function regenerateEmblems() {
|
||||||
province.coa.shield = COA.getShield(culture, province.state);
|
province.coa.shield = COA.getShield(culture, province.state);
|
||||||
});
|
});
|
||||||
|
|
||||||
if (layerIsOn("toggleEmblems")) drawEmblems(); // redrawEmblems
|
layerIsOn("toggleEmblems") ? drawEmblems() : toggleEmblems();
|
||||||
}
|
}
|
||||||
|
|
||||||
function regenerateReligions() {
|
function regenerateReligions() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue