mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 06:16:37 -04:00
Some ridiculous people have passed the 15-city mark. Crazy.
This commit is contained in:
parent
c828b57577
commit
3db82c2400
@ -39,7 +39,11 @@ class CityInfo {
|
||||
val allExistingCityNames = civInfo.gameInfo.civilizations.flatMap { it.cities }.map { it.name }.toHashSet()
|
||||
val probablyName = civInfo.getNation().cities.firstOrNull { !allExistingCityNames.contains(it) }
|
||||
if(probablyName!=null) name=probablyName
|
||||
else name = civInfo.getNation().cities.map { "New $it" }.first { !allExistingCityNames.contains(it) }
|
||||
else {
|
||||
val newName = civInfo.getNation().cities.map { "New $it" }.firstOrNull{ !allExistingCityNames.contains(it) }
|
||||
if(newName!=null) name=newName
|
||||
else name = civInfo.getNation().cities.map { "Newer $it" }.first{ !allExistingCityNames.contains(it) }
|
||||
}
|
||||
|
||||
this.location = cityLocation
|
||||
civInfo.cities.add(this)
|
||||
|
Loading…
x
Reference in New Issue
Block a user