fix: minot fixes

This commit is contained in:
Azgaar 2024-09-16 01:20:31 +02:00
parent 2744d32ca0
commit 580c98adaf
2 changed files with 4 additions and 4 deletions

View file

@ -2108,7 +2108,7 @@
<button id="regenerateRoutes" data-tip="Click to regenerate all unlocked routes">Routes</button>
<button
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
</button>

View file

@ -146,7 +146,7 @@ function recalculatePopulation() {
b.population = rn(b.population * gauss(2, 3, 0.6, 20, 3), 3);
});
if (layerIsOn("togglePopulation")) drawPopulation();
layerIsOn("togglePopulation") ? drawPopulation() : togglePopulation();
}
function regenerateStates() {
@ -342,7 +342,7 @@ function regenerateProvinces() {
Provinces.getPoles();
if (layerIsOn("toggleBorders")) drawBorders();
if (layerIsOn("toggleProvinces")) drawProvinces();
layerIsOn("toggleProvinces") ? drawProvinces() : toggleProvinces();
// remove emblems
document.querySelectorAll("[id^=provinceCOA]").forEach(el => el.remove());
@ -508,7 +508,7 @@ function regenerateEmblems() {
province.coa.shield = COA.getShield(culture, province.state);
});
if (layerIsOn("toggleEmblems")) drawEmblems(); // redrawEmblems
layerIsOn("toggleEmblems") ? drawEmblems() : toggleEmblems();
}
function regenerateReligions() {