fix: regenerate burgs - don't regenerate tags for locked burgs

This commit is contained in:
Azgaar 2024-04-27 13:46:48 +02:00
parent e137ca1312
commit 40c3a38350

View file

@ -248,7 +248,7 @@ window.BurgsAndStates = (() => {
const {cells} = pack; const {cells} = pack;
pack.burgs pack.burgs
.filter(b => (newburg ? b.i == newburg.i : b.i && !b.removed && b.lock)) .filter(b => (newburg ? b.i == newburg.i : b.i && !b.removed && !b.lock))
.forEach(b => { .forEach(b => {
const pop = b.population; const pop = b.population;
b.citadel = Number(b.capital || (pop > 50 && P(0.75)) || (pop > 15 && P(0.5)) || P(0.1)); b.citadel = Number(b.capital || (pop > 50 && P(0.75)) || (pop > 15 && P(0.5)) || P(0.1));