City Centers can no longer be removed by nukes (#4423)

* City Centers can no longer be removed by nukes

* Implemented requested changes

* Implemented more requested changes
This commit is contained in:
Xander Lenstra 2021-07-09 11:13:45 +02:00 committed by GitHub
parent df7bba02a1
commit c327b54b1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -237,7 +237,7 @@
"civilopediaText": [{text:"Ancient ruins provide a one-time random bonus when explored"}] },
{ "name": "City ruins", "uniques": ["Unpillagable"],
"civilopediaText": [{text:"A bleak reminder of the destruction wreaked by War"}] },
{ "name": "City center", "uniques": ["Unpillagable"],
{ "name": "City center", "uniques": ["Unpillagable", "Indestructible"],
"civilopediaText": [{text:"Marks the center of a city"},{text:"Appearance changes with the technological era of the owning civilization"}] },
{ "name": "Barbarian encampment", "uniques": ["Unpillagable"],
"civilopediaText": [{text:"Home to uncivilized barbarians, will spawn a hostile unit from time to time"}] }

View File

@ -558,7 +558,9 @@ object Battle {
}
// Remove improvements, add fallout
tile.improvement = null
if (tile.improvement != null && !attacker.getTile().getTileImprovement()!!.hasUnique("Indestructible")) {
tile.improvement = null
}
tile.improvementInProgress = null
tile.turnsToImprovement = 0
tile.roadStatus = RoadStatus.None
@ -618,7 +620,9 @@ object Battle {
}
// Remove improvements
tile.improvement = null
if (tile.improvement != null && !attacker.getTile().getTileImprovement()!!.hasUnique("Indestructible")) {
tile.improvement = null
}
tile.improvementInProgress = null
tile.turnsToImprovement = 0
tile.roadStatus = RoadStatus.None