mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-14 01:39:40 +07:00
Add notification when a civ is resurrected through liberation (#7276)
This commit is contained in:

committed by
GitHub

parent
e69789a683
commit
4f6a2eb2f4
@ -848,6 +848,9 @@ Your [unitName] lost its faith after spending too long inside enemy territory! =
|
|||||||
You have unlocked [ability] =
|
You have unlocked [ability] =
|
||||||
A new b'ak'tun has just begun! =
|
A new b'ak'tun has just begun! =
|
||||||
A Great Person joins you! =
|
A Great Person joins you! =
|
||||||
|
[civ1] has liberated [civ2] =
|
||||||
|
[civ] has liberated an unknown civilization =
|
||||||
|
An unknown civilization has liberated [civ] =
|
||||||
|
|
||||||
|
|
||||||
# World Screen UI
|
# World Screen UI
|
||||||
|
@ -205,7 +205,22 @@ class CityInfoConquestFunctions(val city: CityInfo){
|
|||||||
|
|
||||||
conquerCity(conqueringCiv, oldCiv, foundingCiv)
|
conquerCity(conqueringCiv, oldCiv, foundingCiv)
|
||||||
|
|
||||||
if (foundingCiv.cities.size == 1) cityConstructions.addBuilding(capitalCityIndicator()) // Resurrection!
|
if (foundingCiv.cities.size == 1) {
|
||||||
|
// Resurrection!
|
||||||
|
cityConstructions.addBuilding(capitalCityIndicator())
|
||||||
|
for (civ in civInfo.gameInfo.civilizations) {
|
||||||
|
if (civ == foundingCiv || civ == conqueringCiv) continue // don't need to notify these civs
|
||||||
|
when {
|
||||||
|
civ.knows(conqueringCiv) && civ.knows(foundingCiv) ->
|
||||||
|
civ.addNotification("[$conqueringCiv] has liberated [$foundingCiv]", foundingCiv.civName, NotificationIcon.Diplomacy, conqueringCiv.civName)
|
||||||
|
civ.knows(conqueringCiv) && !civ.knows(foundingCiv) ->
|
||||||
|
civ.addNotification("[$conqueringCiv] has liberated an unknown civilization", NotificationIcon.Diplomacy, conqueringCiv.civName)
|
||||||
|
!civ.knows(conqueringCiv) && civ.knows(foundingCiv) ->
|
||||||
|
civ.addNotification("An unknown civilization has liberated [$foundingCiv]", NotificationIcon.Diplomacy, foundingCiv.civName)
|
||||||
|
else -> continue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
isPuppet = false
|
isPuppet = false
|
||||||
cityStats.update()
|
cityStats.update()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user