diff --git a/index.html b/index.html index 6f7cf509..e95e59d6 100644 --- a/index.html +++ b/index.html @@ -5337,6 +5337,7 @@ class="icon-download" > + { + // Filter the burgs based on certain conditions using the previously defined constants + const filteredBurgs = burgs.filter(b => + b.cell && + b.port && + !b.citadel && + b.walls && + b.plaza && + b.temple && + b.shanty && + b.population >= minpop && + b.population <= maxpop && + !b.capital + ); + + // Move the filtered burgs to the 'towns' group + filteredBurgs.forEach(b => moveBurgToGroup(b.i, 'towns')); + } + } + function triggerAllBurgsRemove() { const number = pack.burgs.filter(b => b.i && !b.removed && !b.capital && !b.lock).length; confirmationDialog({