mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 06:16:37 -04:00
Resolved #1307 - you no longer get a notification when conneccting to the cities of other Civs
New notification when cities have disconnected from your capital
This commit is contained in:
parent
d2121075f0
commit
d8ec67bb43
@ -703,6 +703,9 @@
|
|||||||
Russian:"От города [cityName] был проложен путь к столице!"
|
Russian:"От города [cityName] был проложен путь к столице!"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
"[cityName] has been disconnected from your capital!":{
|
||||||
|
}
|
||||||
|
|
||||||
// Trade
|
// Trade
|
||||||
"[civName] has accepted your trade request":{
|
"[civName] has accepted your trade request":{
|
||||||
Italian:"[civName] ha accettato la nostra offerta commerciale."
|
Italian:"[civName] ha accettato la nostra offerta commerciale."
|
||||||
|
@ -21,7 +21,7 @@ android {
|
|||||||
applicationId "com.unciv.app"
|
applicationId "com.unciv.app"
|
||||||
minSdkVersion 14
|
minSdkVersion 14
|
||||||
targetSdkVersion 29
|
targetSdkVersion 29
|
||||||
versionCode 321
|
versionCode 322
|
||||||
versionName "3.2.0-patch1"
|
versionName "3.2.0-patch1"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -136,8 +136,12 @@ class CivInfoTransientUpdater(val civInfo: CivilizationInfo){
|
|||||||
|
|
||||||
if(!initialSetup){ // In the initial setup we're loading an old game state, so it doesn't really count
|
if(!initialSetup){ // In the initial setup we're loading an old game state, so it doesn't really count
|
||||||
for(city in citiesReachedToMediums.keys)
|
for(city in citiesReachedToMediums.keys)
|
||||||
if(city !in civInfo.citiesConnectedToCapital)
|
if(city !in civInfo.citiesConnectedToCapital && city.civInfo == civInfo)
|
||||||
civInfo.addNotification("[${city.name}] has been connected to your capital!",city.location, Color.GOLD)
|
civInfo.addNotification("[${city.name}] has been connected to your capital!",city.location, Color.GOLD)
|
||||||
|
|
||||||
|
for(city in civInfo.citiesConnectedToCapital)
|
||||||
|
if(!citiesReachedToMediums.containsKey(city) && city.civInfo==civInfo)
|
||||||
|
civInfo.addNotification("[${city.name}] has been disconnected from your capital!",city.location, Color.GOLD)
|
||||||
}
|
}
|
||||||
|
|
||||||
civInfo.citiesConnectedToCapital = citiesReachedToMediums.keys.toList()
|
civInfo.citiesConnectedToCapital = citiesReachedToMediums.keys.toList()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user