fix research agreement button. (#2080)

This commit is contained in:
Yair Morgenstern 2020-03-04 20:13:15 +02:00 committed by GitHub
parent 97a07d3530
commit 955dff89b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -240,7 +240,7 @@ class DiplomacyScreen(val viewingCiv:CivilizationInfo):CameraStageBaseScreen() {
GameSpeed.Epic -> 45
GameSpeed.Marathon -> 90
}
val researchAgreement = TradeOffer(Constants.researchAgreement, TradeType.Treaty, duration)
val researchAgreement = TradeOffer(Constants.researchAgreement, TradeType.Treaty, duration, requiredGold)
val goldCostOfSignResearchAgreement = TradeOffer("Gold".tr(), TradeType.Gold, 0, -requiredGold)
tradeTable.tradeLogic.currentTrade.theirOffers.add(researchAgreement)
tradeTable.tradeLogic.ourAvailableOffers.add(researchAgreement)