Skip to content

Commit cda1a0b

Browse files
Update TileImprovementFunctions.kt
1 parent 8b5cff1 commit cda1a0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/com/unciv/logic/map/tile/TileImprovementFunctions.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,8 @@ class TileImprovementFunctions(val tile: Tile) {
314314
var stats = Stats()
315315
for (unique in tile.getTerrainMatchingUniques(UniqueType.ProductionBonusWhenRemoved)) {
316316
stats.add(unique.stats)
317-
if (stats.isEmpty()) return
318317
}
318+
if (stats.isEmpty()) return
319319
val ruleset = civ.gameInfo.ruleset
320320
val choppingYieldsIncreaseWithGameProgress =
321321
ruleset.modOptions.constants.choppingYieldsIncreaseWithGameProgress
@@ -328,7 +328,7 @@ class TileImprovementFunctions(val tile: Tile) {
328328
stats *= (1 + 9 * gameProgress)
329329
}
330330
if (distance > 5) stats *= 0
331-
else if (distance != 1) stats *= (6 - distance) / 4
331+
else if (distance != 1) stats *= (6 - distance) / 4f
332332
if (tile.owningCity == null || tile.owningCity!!.civ != civ) stats *= 2 / 3f
333333
stats *= civ.gameInfo.speed.productionCostModifier
334334
if (closestCity != null) {

0 commit comments

Comments
 (0)