More map editor normalization, because people will doo whatever they can to break the system
This commit is contained in:
parent
3ea4f8bc82
commit
6ab58fd8ab
2 changed files with 4 additions and 0 deletions
|
@ -73,6 +73,7 @@
|
|||
},
|
||||
{
|
||||
name:"Fishing Boats",
|
||||
terrainsCanBeBuiltOn:["Coast"],
|
||||
food:1,
|
||||
techRequired:"Sailing",
|
||||
improvingTech:"Compass",
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue