mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-24 03:53:12 -04:00
Research agreement cost display (#8639)
This commit is contained in:
parent
0664cba7ea
commit
3802ac9e9f
@ -42,8 +42,8 @@ data class TradeOffer(val name: String, val type: TradeType, var amount: Int = 1
|
|||||||
else -> name
|
else -> name
|
||||||
}.tr()
|
}.tr()
|
||||||
|
|
||||||
if (type.numberType == TradeTypeNumberType.Simple || name == Constants.researchAgreement) offerText += " ($amount)"
|
if (type.numberType == TradeTypeNumberType.Simple || type.numberType == TradeTypeNumberType.Gold) offerText += " ($amount)"
|
||||||
else if (type.numberType == TradeTypeNumberType.Gold) offerText += " ($amount)"
|
else if (name == Constants.researchAgreement) offerText += " (-$amount${Fonts.gold})"
|
||||||
|
|
||||||
if (duration > 0) offerText += "\n" + duration + Fonts.turn
|
if (duration > 0) offerText += "\n" + duration + Fonts.turn
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user