Fix PercentProductionBuildings and PercentProductionWonders (#5588)

This commit is contained in:
SomeTroglodyte 2021-10-29 10:29:03 +02:00 committed by GitHub
parent 03cebbdd42
commit 6172a893b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -273,9 +273,9 @@ class CityStats(val cityInfo: CityInfo) {
}
val uniquesToCheck =
if (currentConstruction is Building && !currentConstruction.isAnyWonder()) {
if (currentConstruction is Building && currentConstruction.isAnyWonder()) {
uniques.filter { it.isOfType(UniqueType.PercentProductionWonders) }
} else if (currentConstruction is Building && currentConstruction.isAnyWonder()) {
} else if (currentConstruction is Building && !currentConstruction.isAnyWonder()) {
uniques.filter { it.isOfType(UniqueType.PercentProductionBuildings) }
} else if (currentConstruction is BaseUnit) {
uniques.filter { it.isOfType(UniqueType.PercentProductionUnits) }