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
|
|
@ -29,9 +29,9 @@ window.Routes = (function () {
|
|||
const capitalsByFeature = {};
|
||||
const portsByFeature = {};
|
||||
|
||||
const addBurg = (object, feature, burg) => {
|
||||
if (!object[feature]) object[feature] = [];
|
||||
object[feature].push(burg);
|
||||
const addBurg = (collection, feature, burg) => {
|
||||
if (!collection[feature]) collection[feature] = [];
|
||||
collection[feature].push(burg);
|
||||
};
|
||||
|
||||
for (const burg of burgs) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue