From 64f8b3fef8f597ed38ea4d321906ace4258d69b9 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Thu, 17 May 2018 10:44:27 +0300 Subject: [PATCH] Cities beyond the 15th get "New" names properly --- core/src/com/unciv/logic/city/CityInfo.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/logic/city/CityInfo.kt b/core/src/com/unciv/logic/city/CityInfo.kt index e66e17f655..6a3f14f39b 100644 --- a/core/src/com/unciv/logic/city/CityInfo.kt +++ b/core/src/com/unciv/logic/city/CityInfo.kt @@ -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)