mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
fix: regenerate burgs - don't regenerate tags for locked burgs
This commit is contained in:
parent
e137ca1312
commit
40c3a38350
1 changed files with 1 additions and 1 deletions
|
|
@ -248,7 +248,7 @@ window.BurgsAndStates = (() => {
|
|||
const {cells} = pack;
|
||||
|
||||
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 => {
|
||||
const pop = b.population;
|
||||
b.citadel = Number(b.capital || (pop > 50 && P(0.75)) || (pop > 15 && P(0.5)) || P(0.1));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue