mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-29 23:10:39 -04:00
Fix peace popup with city-state.
This commit is contained in:
parent
1434ca3f30
commit
06f25b5b5b
@ -121,15 +121,12 @@ class DiplomacyScreen:CameraStageBaseScreen() {
|
|||||||
val PeaceButton = TextButton("Negociate Peace".tr(), skin)
|
val PeaceButton = TextButton("Negociate Peace".tr(), skin)
|
||||||
PeaceButton.onClick {
|
PeaceButton.onClick {
|
||||||
YesNoPopupTable("Peace with [${otherCiv.civName}]?".tr(), {
|
YesNoPopupTable("Peace with [${otherCiv.civName}]?".tr(), {
|
||||||
diplomacyManager.makePeace()
|
|
||||||
updateLeftSideTable()
|
|
||||||
}, this)
|
|
||||||
|
|
||||||
val tradeLogic = TradeLogic(currentPlayerCiv, otherCiv)
|
val tradeLogic = TradeLogic(currentPlayerCiv, otherCiv)
|
||||||
tradeLogic.currentTrade.ourOffers.add(TradeOffer("Peace Treaty", TradeType.Treaty, 20))
|
tradeLogic.currentTrade.ourOffers.add(TradeOffer("Peace Treaty", TradeType.Treaty, 20))
|
||||||
tradeLogic.currentTrade.theirOffers.add(TradeOffer("Peace Treaty", TradeType.Treaty, 20))
|
tradeLogic.currentTrade.theirOffers.add(TradeOffer("Peace Treaty", TradeType.Treaty, 20))
|
||||||
tradeLogic.acceptTrade()
|
tradeLogic.acceptTrade()
|
||||||
|
updateLeftSideTable()
|
||||||
|
}, this)
|
||||||
}
|
}
|
||||||
diplomacyTable.add(PeaceButton).row()
|
diplomacyTable.add(PeaceButton).row()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user