Resolved #3285 - added a notification when cities are no longer in resistance

This commit is contained in:
Yair Morgenstern 2020-10-24 22:43:04 +03:00
parent 93aa06bc99
commit 895ed528af
2 changed files with 6 additions and 1 deletions

View File

@ -447,6 +447,7 @@ Our proposed trade request is no longer relevant! =
Clearing a [forest] has created [amount] Production for [cityName] =
[civName] assigned you a new quest: [questName]. =
[civName] rewarded you with [influence] influence for completing the [questName] quest. =
The resistance in [cityName] has ended! =
# World Screen UI

View File

@ -313,7 +313,11 @@ class CityInfo {
cityStats.update()
tryUpdateRoadStatus()
attackedThisTurn = false
if (isInResistance()) resistanceCounter--
if (isInResistance()) {
resistanceCounter--
if (!isInResistance())
civInfo.addNotification("The resistance in [$name] has ended!", location, Color.YELLOW)
}
if (isPuppet) reassignPopulation()
}