AIs don't add double agreements to counteroffers

This commit is contained in:
Yair Morgenstern 2022-04-18 11:46:37 +03:00
parent e11a32bb41
commit 3d93dafb13

View File

@ -139,6 +139,8 @@ object NextTurnAutomation {
continue // For example resources gained by trade or CS
if (offer.type == TradeType.City)
continue // Players generally don't want to give up their cities, and they might misclick
if (offer.type == TradeType.Agreement && tradeLogic.currentTrade.theirOffers.contains(offer))
continue // So you don't get double offers of open borders etc.
val value = evaluation.evaluateBuyCost(offer, civInfo, otherCiv)
if (value > 0)
potentialAsks[offer] = value