Unremovable terrain features e.g. Flood plains are no longer removed by great improvements
This commit is contained in:
parent
cb9687a1c9
commit
1fe8d704a0
1 changed files with 3 additions and 1 deletions
|
@ -362,7 +362,9 @@ object UnitActions {
|
|||
uncivSound = UncivSound.Chimes,
|
||||
action = {
|
||||
val unitTile = unit.getTile()
|
||||
unitTile.terrainFeature = null // remove forest/jungle/marsh
|
||||
if (unitTile.terrainFeature != null &&
|
||||
unitTile.ruleset.tileImprovements.containsKey("Remove " + unitTile.terrainFeature))
|
||||
unitTile.terrainFeature = null // remove forest/jungle/marsh
|
||||
unitTile.improvement = improvementName
|
||||
unitTile.improvementInProgress = null
|
||||
unitTile.turnsToImprovement = 0
|
||||
|
|
Loading…
Reference in a new issue