More normalization - can no longer add "everywhere" improvements on Water tiles.
This commit is contained in:
parent
6ab58fd8ab
commit
c32e3fce3c
1 changed files with 2 additions and 0 deletions
|
@ -348,6 +348,8 @@ class TileEditorOptionsTable(val mapEditorScreen: MapEditorScreen): Table(Camera
|
|||
else {
|
||||
val improvement = tileInfo.getTileImprovement()!!
|
||||
if(tileInfo.getBaseTerrain().impassable) tileInfo.improvement=null
|
||||
if(improvement.terrainsCanBeBuiltOn.isEmpty() && tileInfo.isWater)
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue