From 32772c7f73542e1982cb2aeabd4fa3433e6dad78 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Thu, 19 Jan 2023 12:01:12 +0200 Subject: [PATCH] Korea's unique applies to Library --- core/src/com/unciv/models/ruleset/Building.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/models/ruleset/Building.kt b/core/src/com/unciv/models/ruleset/Building.kt index 58bb156be3..5c6dbbabb6 100644 --- a/core/src/com/unciv/models/ruleset/Building.kt +++ b/core/src/com/unciv/models/ruleset/Building.kt @@ -684,7 +684,7 @@ class Building : RulesetStatsObject(), INonPerpetualConstruction { civInfo.cache.updateHasActiveEnemyMovementPenalty() // Korean unique - apparently gives the same as the research agreement - if (science > 0 && civInfo.hasUnique(UniqueType.TechBoostWhenScientificBuildingsBuiltInCapital)) + if (isStatRelated(Stat.Science) && civInfo.hasUnique(UniqueType.TechBoostWhenScientificBuildingsBuiltInCapital)) civInfo.tech.addScience(civInfo.tech.scienceOfLast8Turns.sum() / 8) cityConstructions.cityInfo.cityStats.update() // new building, new stats