Remove irrelevant counteroffer notifications when the trade request is invalid

This commit is contained in:
yairm210 2025-07-23 23:28:10 +03:00
parent 574856d3c9
commit 5fe0517c81

View File

@ -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" }
}
}