From bf4d9b609d462b02cabb3cee871a847435438d16 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Wed, 21 Nov 2018 18:45:02 +0200 Subject: [PATCH] Dev: when getting tile stats, we only check the gold-per-turn of the viewing civ if its current gold is negative --- core/src/com/unciv/logic/automation/Automation.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/src/com/unciv/logic/automation/Automation.kt b/core/src/com/unciv/logic/automation/Automation.kt index bbd45b6e5a..cde7b34cee 100644 --- a/core/src/com/unciv/logic/automation/Automation.kt +++ b/core/src/com/unciv/logic/automation/Automation.kt @@ -19,8 +19,10 @@ class Automation { var rank = 0.0f if (stats.food <= 2) rank += stats.food else rank += (2 + (stats.food - 2) / 2) // 1 point for each food up to 2, from there on half a point - if(civInfo.gold>0 && civInfo.getStatsForNextTurn().gold>0) rank += stats.gold / 2 - else rank += stats.gold + + if (civInfo.gold < 0 && civInfo.getStatsForNextTurn().gold <= 0) rank += stats.gold + else rank += stats.gold / 2 + rank += stats.production rank += stats.science rank += stats.culture