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

Avoid built buildings #9806

Merged
merged 4 commits into from
Jul 16, 2023
Merged

Conversation

SeventhM
Copy link
Collaborator

PR attempts to removes almost every call to cityConstructions.builtBuildings. Most other systems does not use it (it uses builtBuildingObjects in some way or form) and it opens the way for possible other bugs. The primary places where it was left was in setTransients, the add/remove functions, the clone function, and any places where the other PR of mine already removed the intraction. The only place where I'm not sure builtBuildingObjects is necessarily better is for the wonder overview tab, but everything else should be consistent with how it looks like it should be used

There's the function for changeBuildingNameIfNotInRuleset. From what I can tell, it's currently only used for the Hanse, it was done 2 years ago (past deprecation period likely), and seems imo more likely to cause issues in mods than it is to help (given it was done 2 years ago). This PR removes the call to the function for now

@yairm210 yairm210 merged commit 1e66c2e into yairm210:master Jul 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants