Changes check to remove national wonders on city ownership changes to rely on building.isNationalWonder (#3386)

This commit is contained in:
9kgsofrice 2020-12-02 16:49:37 +00:00 committed by GitHub
parent 0feb9bdefc
commit 0e39d47dab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -537,7 +537,7 @@ class CityInfo {
.forEach { workedTiles = workedTiles.withoutItem(it); population.autoAssignPopulation() }
// Remove all national wonders
for(building in cityConstructions.getBuiltBuildings().filter { it.requiredBuildingInAllCities!=null })
for(building in cityConstructions.getBuiltBuildings().filter { it.isNationalWonder })
cityConstructions.removeBuilding(building.name)
// Remove/relocate palace for old Civ