mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-21 21:30:20 +07:00
Fix peace popup with city-state.
This commit is contained in:

committed by
Yair Morgenstern

parent
1434ca3f30
commit
06f25b5b5b
@ -121,15 +121,12 @@ class DiplomacyScreen:CameraStageBaseScreen() {
|
||||
val PeaceButton = TextButton("Negociate Peace".tr(), skin)
|
||||
PeaceButton.onClick {
|
||||
YesNoPopupTable("Peace with [${otherCiv.civName}]?".tr(), {
|
||||
diplomacyManager.makePeace()
|
||||
val tradeLogic = TradeLogic(currentPlayerCiv, otherCiv)
|
||||
tradeLogic.currentTrade.ourOffers.add(TradeOffer("Peace Treaty", TradeType.Treaty, 20))
|
||||
tradeLogic.currentTrade.theirOffers.add(TradeOffer("Peace Treaty", TradeType.Treaty, 20))
|
||||
tradeLogic.acceptTrade()
|
||||
updateLeftSideTable()
|
||||
}, this)
|
||||
|
||||
val tradeLogic = TradeLogic(currentPlayerCiv, otherCiv)
|
||||
tradeLogic.currentTrade.ourOffers.add(TradeOffer("Peace Treaty", TradeType.Treaty, 20))
|
||||
tradeLogic.currentTrade.theirOffers.add(TradeOffer("Peace Treaty", TradeType.Treaty, 20))
|
||||
tradeLogic.acceptTrade()
|
||||
|
||||
}
|
||||
diplomacyTable.add(PeaceButton).row()
|
||||
}
|
||||
|
Reference in New Issue
Block a user