From 0c71c39bc2d21037bad064e14767ad423edaaf6a Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Tue, 12 Jun 2018 21:21:35 +0300 Subject: [PATCH] If you raze your capital and you have another city, it becomes the new capital --- core/src/com/unciv/logic/city/CityInfo.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/com/unciv/logic/city/CityInfo.kt b/core/src/com/unciv/logic/city/CityInfo.kt index 7416c52ebc..04e58bfc58 100644 --- a/core/src/com/unciv/logic/city/CityInfo.kt +++ b/core/src/com/unciv/logic/city/CityInfo.kt @@ -138,6 +138,8 @@ class CityInfo { if(population.population==0){ civInfo.addNotification("$name has been razed to the ground!",location, Color.RED) civInfo.cities.remove(this) + if(isCapital() && civInfo.cities.isNotEmpty()) // Yes, we actually razed the capital. Some people do this. + civInfo.cities.first().cityConstructions.builtBuildings.add("Palace") } }