mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 14:24:43 -04:00
Unremovable terrain features e.g. Flood plains are no longer removed by great improvements
This commit is contained in:
parent
cb9687a1c9
commit
1fe8d704a0
@ -362,7 +362,9 @@ object UnitActions {
|
|||||||
uncivSound = UncivSound.Chimes,
|
uncivSound = UncivSound.Chimes,
|
||||||
action = {
|
action = {
|
||||||
val unitTile = unit.getTile()
|
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.improvement = improvementName
|
||||||
unitTile.improvementInProgress = null
|
unitTile.improvementInProgress = null
|
||||||
unitTile.turnsToImprovement = 0
|
unitTile.turnsToImprovement = 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user