mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-22 02:42:16 -04:00
Cities beyond the 15th get "New" names properly
This commit is contained in:
parent
e267a7a6be
commit
64f8b3fef8
@ -89,7 +89,7 @@ class CityInfo {
|
||||
val allExistingCityNames = civInfo.gameInfo.civilizations.flatMap { it.cities }.map { it.name }.toHashSet()
|
||||
val probablyName = civInfo.getCivilization().cities.firstOrNull { !allExistingCityNames.contains(it) }
|
||||
if(probablyName!=null) name=probablyName
|
||||
else name = civInfo.getCivilization().cities.first { !allExistingCityNames.contains("New $it") }
|
||||
else name = civInfo.getCivilization().cities.map { "New $it" }.first { !allExistingCityNames.contains(it) }
|
||||
|
||||
this.location = cityLocation
|
||||
civInfo.cities.add(this)
|
||||
|
Loading…
x
Reference in New Issue
Block a user