From 74b3db59272195baa258ca28e2df40640a859964 Mon Sep 17 00:00:00 2001 From: Xander Lenstra <71121390+xlenstra@users.noreply.github.com> Date: Sat, 10 Jul 2021 20:09:21 +0200 Subject: [PATCH] Fixed bug where gold from rivers wasn't doubled during golden ages (#4462) --- core/src/com/unciv/logic/map/TileInfo.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/com/unciv/logic/map/TileInfo.kt b/core/src/com/unciv/logic/map/TileInfo.kt index 43ba74dd04..394b56eb34 100644 --- a/core/src/com/unciv/logic/map/TileInfo.kt +++ b/core/src/com/unciv/logic/map/TileInfo.kt @@ -260,11 +260,11 @@ open class TileInfo { if (stats.production < 1) stats.production = 1f } + if (isAdjacentToRiver()) stats.gold++ + if (stats.gold != 0f && observingCiv.goldenAges.isGoldenAge()) stats.gold++ - if (isAdjacentToRiver()) stats.gold++ - if (stats.production < 0) stats.production = 0f return stats