fix: burg regeneration for ports

This commit is contained in:
Azgaar 2026-01-08 15:51:18 +01:00
parent cf2c91da62
commit d6109a4919
3 changed files with 68 additions and 66 deletions

View file

@ -428,6 +428,7 @@ function regenerateBurgs() {
}
pack.burgs = newBurgs; // assign new burgs array
Burgs.shift();
// add a capital at former place for states without added capitals
states
@ -444,10 +445,6 @@ function regenerateBurgs() {
Burgs.changeGroup(burg);
});
features.forEach(f => {
if (f.port) f.port = 0; // reset features ports counter
});
Burgs.specify();
regenerateRoutes();