Research agreement cost display (#8639)

This commit is contained in:
Gualdimar
2023-02-09 21:55:17 +02:00
committed by GitHub
parent 0664cba7ea
commit 3802ac9e9f

View File

@ -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