From 386095a9d0df85f1a7b6a1198f524d17267c2364 Mon Sep 17 00:00:00 2001 From: Xander Lenstra <71121390+xlenstra@users.noreply.github.com> Date: Sat, 7 Aug 2021 22:43:04 +0200 Subject: [PATCH] One with nature yield for spain is now doubled (#4794) --- core/src/com/unciv/logic/map/TileInfo.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/com/unciv/logic/map/TileInfo.kt b/core/src/com/unciv/logic/map/TileInfo.kt index 30ac5f24be..ebd2431ec0 100644 --- a/core/src/com/unciv/logic/map/TileInfo.kt +++ b/core/src/com/unciv/logic/map/TileInfo.kt @@ -223,7 +223,7 @@ open class TileInfo { else stats.add(terrainFeatureBase) } - + if (city != null) { var tileUniques = city.getMatchingUniques("[] from [] tiles []") .filter { city.matchesFilter(it.params[2]) } @@ -236,6 +236,9 @@ open class TileInfo { if (tileType == improvement) continue // This is added to the calculation in getImprovementStats. we don't want to add it twice if (matchesTerrainFilter(tileType, observingCiv)) stats.add(unique.stats) + if (tileType == "Natural Wonder" && naturalWonder != null && city.civInfo.hasUnique("Tile yields from Natural Wonders doubled")) { + stats.add(unique.stats) + } } for (unique in city.getMatchingUniques("[] from [] tiles without [] []"))