mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-22 02:42:16 -04:00
Remove irrelevant counteroffer notifications when the trade request is invalid
This commit is contained in:
parent
574856d3c9
commit
5fe0517c81
@ -92,6 +92,8 @@ class TurnManager(val civInfo: Civilization) {
|
||||
civInfo.tradeRequests.remove(tradeRequest)
|
||||
// Yes, this is the right direction. I checked.
|
||||
offeringCiv.addNotification("Our proposed trade is no longer relevant!", NotificationCategory.Trade, NotificationIcon.Trade)
|
||||
// If it's a counteroffer, remove notification
|
||||
civInfo.notifications.removeAll { it.text == "[${offeringCiv.civName}] has made a counteroffer to your trade request" }
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user