Azgaar / Fantasy-Map-Generator

Web application generating interactive and highly customizable maps

Home Page:https://azgaar.github.io/Fantasy-Map-Generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Burg Regeneration takes into account deleted states

DeuzeksMcKinna opened this issue · comments

Describe the bug
When working on a map that initially has X states number, after deleting these states (X or any lower number deleted) and Regenerating Burgs, the amount of burgs generated will be X+N where N is the number set on "Towns Number".

Steps to reproduce

  1. Create a map with 10 States
  2. Delete All States
  3. Set the "Towns Number" Slider to 6
  4. Click Regenerate Burgs
  5. 16 burgs will be generated

Expected behavior
Burgs generated via Regeneration being equal in amount to the "Towns Number" slider when on an empty map, and having the minimum limit only for existing States

.map file
Adankan_2023-12-04-22-12.zip
38 States with "Removed:TRUE"
Will happen on newly-generated maps too

Screenshots

image

Thanks. Burgs number should be Number of existing states + Number of burgs from options. So just need to filter our the removed burgs in code.

@DeuzeksMcKinna, please check now

Working as intended!