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:
Yair Morgenstern
2019-11-06 21:43:48 +02:00
parent d2121075f0
commit d8ec67bb43
3 changed files with 9 additions and 2 deletions

View File

@ -703,6 +703,9 @@
Russian:"От города [cityName] был проложен путь к столице!"
}
"[cityName] has been disconnected from your capital!":{
}
// Trade
"[civName] has accepted your trade request":{
Italian:"[civName] ha accettato la nostra offerta commerciale."

View File

@ -21,7 +21,7 @@ android {
applicationId "com.unciv.app"
minSdkVersion 14
targetSdkVersion 29
versionCode 321
versionCode 322
versionName "3.2.0-patch1"
}

View File

@ -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
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)
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()