Resolved #11950 - Rome/Babylon capital takeover no longer renames like city state

This commit is contained in:
yairm210 2024-07-14 09:48:04 +03:00
parent eaaf588144
commit 904f7f3af6

View File

@ -976,7 +976,7 @@ class Civilization : IsPartOfGameInfoSerialization {
// Slight "Easter egg": see #11486: In the rare case a City-state loses their last city but it's not their original capital, the notification names the Nation which confuses players. // Slight "Easter egg": see #11486: In the rare case a City-state loses their last city but it's not their original capital, the notification names the Nation which confuses players.
// Rename the newly conquered city when the conquering Nation's first-city name is equal to the nation name (meaning Babylon too) and the civ has lost that... // Rename the newly conquered city when the conquering Nation's first-city name is equal to the nation name (meaning Babylon too) and the civ has lost that...
val currentCapital = getCapital() val currentCapital = getCapital()
if (currentCapital != null && currentCapital.isOriginalCapital && civName == currentCapital.name) if (isCityState && currentCapital != null && currentCapital.isOriginalCapital && civName == currentCapital.name)
newCapital.name = "New [${civName}]\n(formerly known as [${newCapital.name}])" newCapital.name = "New [${civName}]\n(formerly known as [${newCapital.name}])"
moveCapitalTo(newCapital, oldCapital) moveCapitalTo(newCapital, oldCapital)