Unremovable terrain features e.g. Flood plains are no longer removed by great improvements

This commit is contained in:
Yair Morgenstern 2020-07-08 19:10:31 +03:00
parent cb9687a1c9
commit 1fe8d704a0

View file

@ -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