File tree 1 file changed +6
-2
lines changed
core/src/com/unciv/logic/map/tile
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -56,11 +56,15 @@ class TileStatFunctions(val tile: Tile) {
56
56
): List <Pair <String , Stats >> {
57
57
val stateForConditionals = StateForConditionals (civInfo = observingCiv, city = city, tile = tile)
58
58
val listOfStats = getTerrainStatsBreakdown(stateForConditionals)
59
+
60
+ val otherYieldsIgnored = tile.allTerrains.any { it.hasUnique(UniqueType .NullifyYields , stateForConditionals) }
59
61
60
- val improvement = tile.getUnpillagedTileImprovement()
62
+ val improvement = if (otherYieldsIgnored) null // Treat it as if there is no improvement
63
+ else tile.getUnpillagedTileImprovement()
61
64
val improvementStats = improvement?.cloneStats() ? : Stats .ZERO // If improvement==null, will never be added to
62
65
63
- val road = tile.getUnpillagedRoadImprovement()
66
+ val road = if (otherYieldsIgnored) null
67
+ else tile.getUnpillagedRoadImprovement()
64
68
val roadStats = road?.cloneStats() ? : Stats .ZERO
65
69
66
70
if (city != null ) {
You can’t perform that action at this time.
0 commit comments