Fixed bug where gold from rivers wasn't doubled during golden ages (#4462)

This commit is contained in:
Xander Lenstra 2021-07-10 20:09:21 +02:00 committed by GitHub
parent 0c916e85fb
commit 74b3db5927
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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