mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-25 15:19:51 +07:00
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:
@ -237,7 +237,7 @@
|
|||||||
"civilopediaText": [{text:"Ancient ruins provide a one-time random bonus when explored"}] },
|
"civilopediaText": [{text:"Ancient ruins provide a one-time random bonus when explored"}] },
|
||||||
{ "name": "City ruins", "uniques": ["Unpillagable"],
|
{ "name": "City ruins", "uniques": ["Unpillagable"],
|
||||||
"civilopediaText": [{text:"A bleak reminder of the destruction wreaked by War"}] },
|
"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"}] },
|
"civilopediaText": [{text:"Marks the center of a city"},{text:"Appearance changes with the technological era of the owning civilization"}] },
|
||||||
{ "name": "Barbarian encampment", "uniques": ["Unpillagable"],
|
{ "name": "Barbarian encampment", "uniques": ["Unpillagable"],
|
||||||
"civilopediaText": [{text:"Home to uncivilized barbarians, will spawn a hostile unit from time to time"}] }
|
"civilopediaText": [{text:"Home to uncivilized barbarians, will spawn a hostile unit from time to time"}] }
|
||||||
|
@ -558,7 +558,9 @@ object Battle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove improvements, add fallout
|
// Remove improvements, add fallout
|
||||||
tile.improvement = null
|
if (tile.improvement != null && !attacker.getTile().getTileImprovement()!!.hasUnique("Indestructible")) {
|
||||||
|
tile.improvement = null
|
||||||
|
}
|
||||||
tile.improvementInProgress = null
|
tile.improvementInProgress = null
|
||||||
tile.turnsToImprovement = 0
|
tile.turnsToImprovement = 0
|
||||||
tile.roadStatus = RoadStatus.None
|
tile.roadStatus = RoadStatus.None
|
||||||
@ -618,7 +620,9 @@ object Battle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove improvements
|
// Remove improvements
|
||||||
tile.improvement = null
|
if (tile.improvement != null && !attacker.getTile().getTileImprovement()!!.hasUnique("Indestructible")) {
|
||||||
|
tile.improvement = null
|
||||||
|
}
|
||||||
tile.improvementInProgress = null
|
tile.improvementInProgress = null
|
||||||
tile.turnsToImprovement = 0
|
tile.turnsToImprovement = 0
|
||||||
tile.roadStatus = RoadStatus.None
|
tile.roadStatus = RoadStatus.None
|
||||||
|
Reference in New Issue
Block a user