mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-20 09:17:47 +07:00
If you raze your capital and you have another city, it becomes the new capital
This commit is contained in:
parent
a380f7aa95
commit
0c71c39bc2
@ -138,6 +138,8 @@ class CityInfo {
|
|||||||
if(population.population==0){
|
if(population.population==0){
|
||||||
civInfo.addNotification("$name has been razed to the ground!",location, Color.RED)
|
civInfo.addNotification("$name has been razed to the ground!",location, Color.RED)
|
||||||
civInfo.cities.remove(this)
|
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")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user