mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-29 14:20:17 +07:00
More map editor normalization, because people will doo whatever they can to break the system
This commit is contained in:
@ -347,11 +347,14 @@ class TileEditorOptionsTable(val mapEditorScreen: MapEditorScreen): Table(Camera
|
||||
}
|
||||
else {
|
||||
val improvement = tileInfo.getTileImprovement()!!
|
||||
if(tileInfo.getBaseTerrain().impassable) tileInfo.improvement=null
|
||||
if (improvement.terrainsCanBeBuiltOn.isNotEmpty() // for "everywhere" improvements like city ruins, encampments, ancient ruins
|
||||
&& improvement.terrainsCanBeBuiltOn.none { it == tileInfo.baseTerrain || it == tileInfo.terrainFeature })
|
||||
tileInfo.improvement = null
|
||||
}
|
||||
}
|
||||
if(tileInfo.getBaseTerrain().impassable || tileInfo.isWater)
|
||||
tileInfo.roadStatus=RoadStatus.None
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user