From 5f3da79484febec9ac109c8e2f6bb20d125b12e8 Mon Sep 17 00:00:00 2001 From: Duan Tao Date: Sun, 30 Dec 2018 19:22:40 +0800 Subject: [PATCH] Fix evalutate peace treaty bug. --- core/src/com/unciv/logic/trade/TradeLogic.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/com/unciv/logic/trade/TradeLogic.kt b/core/src/com/unciv/logic/trade/TradeLogic.kt index abccc618bc..d80e534980 100644 --- a/core/src/com/unciv/logic/trade/TradeLogic.kt +++ b/core/src/com/unciv/logic/trade/TradeLogic.kt @@ -155,8 +155,8 @@ class TradeLogic(val ourCivilization:CivilizationInfo, val otherCivilization: Ci val ourCombatStrength = Automation().evaluteCombatStrength(ourCivilization) val theirCombatStrength = Automation().evaluteCombatStrength(otherCivilization) if(ourCombatStrength==theirCombatStrength) return 0 - if(ourCombatStrength==0) return 1000 - if(theirCombatStrength==0) return -1000 // Chumps got no cities or units + if(ourCombatStrength==0) return -1000 + if(theirCombatStrength==0) return 1000 // Chumps got no cities or units if(ourCombatStrength>theirCombatStrength){ val absoluteAdvantage = ourCombatStrength-theirCombatStrength val percentageAdvantage = absoluteAdvantage / theirCombatStrength.toFloat()