From 3802ac9e9ffbc12a4288beff2a366184aacc1a61 Mon Sep 17 00:00:00 2001 From: Gualdimar Date: Thu, 9 Feb 2023 21:55:17 +0200 Subject: [PATCH] Research agreement cost display (#8639) --- core/src/com/unciv/logic/trade/TradeOffer.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/com/unciv/logic/trade/TradeOffer.kt b/core/src/com/unciv/logic/trade/TradeOffer.kt index 41657cef2f..6a97ceef20 100644 --- a/core/src/com/unciv/logic/trade/TradeOffer.kt +++ b/core/src/com/unciv/logic/trade/TradeOffer.kt @@ -42,8 +42,8 @@ data class TradeOffer(val name: String, val type: TradeType, var amount: Int = 1 else -> name }.tr() - if (type.numberType == TradeTypeNumberType.Simple || name == Constants.researchAgreement) offerText += " ($amount)" - else if (type.numberType == TradeTypeNumberType.Gold) offerText += " ($amount)" + if (type.numberType == TradeTypeNumberType.Simple || type.numberType == TradeTypeNumberType.Gold) offerText += " ($amount)" + else if (name == Constants.researchAgreement) offerText += " (-$amount${Fonts.gold})" if (duration > 0) offerText += "\n" + duration + Fonts.turn