Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated cities have at least size 2 #51769

Merged
merged 1 commit into from
Sep 21, 2021
Merged

Generated cities have at least size 2 #51769

merged 1 commit into from
Sep 21, 2021

Conversation

Night-Pryanik
Copy link
Contributor

Summary

Bugfixes "Generated cities have at least size 2."

Purpose of change

Closes #37856 - Mapgen sometimes generates completely empty towns.

Describe the solution

World option of city sizes 4 or less could sometimes generate city with size 1 or even less, which is then automatically set to a minimum of 1. Increased this minimum to size 2, so any city can have some buildings in it.

Describe alternatives you've considered

Don't generate cities with size 1 at all.

Testing

Teleported around 10 overmaps, looked at cities. No cities consisting of just crossroad observed.

Additional context

None.

@Night-Pryanik Night-Pryanik added <Bug> This needs to be fixed Map / Mapgen Overmap, Mapgen, Map extras, Map display <Bugfix> This is a fix for a bug (or closes open issue) and removed <Bug> This needs to be fixed labels Sep 21, 2021
@kevingranade kevingranade merged commit 839eb8c into CleverRaven:master Sep 21, 2021
@Night-Pryanik Night-Pryanik deleted the fix-one-tile-cities branch September 21, 2021 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) Map / Mapgen Overmap, Mapgen, Map extras, Map display
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mapgen sometimes generates completely empty towns
2 participants