From ca3172b2cfbded2c948896141b313d15cbfae1a4 Mon Sep 17 00:00:00 2001 From: Duan Tao Date: Fri, 7 Dec 2018 15:59:05 +0800 Subject: [PATCH] Give food a little bit more weight. --- core/src/com/unciv/logic/automation/Automation.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/com/unciv/logic/automation/Automation.kt b/core/src/com/unciv/logic/automation/Automation.kt index 88a7e59af8..5f54ba0272 100644 --- a/core/src/com/unciv/logic/automation/Automation.kt +++ b/core/src/com/unciv/logic/automation/Automation.kt @@ -35,8 +35,8 @@ class Automation { fun rankStatsValue(stats: Stats, civInfo: CivilizationInfo): Float { 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 (stats.food <= 2) rank += (stats.food * 1.2f) //food get more value to kepp city growing + else rank += (2.4f + (stats.food - 2) / 2) // 1.2 point for each food up to 2, from there on half a point if (civInfo.gold < 0 && civInfo.getStatsForNextTurn().gold <= 0) rank += stats.gold else rank += stats.gold / 2