mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-02-04 17:41:23 +01:00
fix: burg regeneration for ports
This commit is contained in:
parent
cf2c91da62
commit
d6109a4919
3 changed files with 68 additions and 66 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue