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",
|
name:"Fishing Boats",
|
||||||
|
terrainsCanBeBuiltOn:["Coast"],
|
||||||
food:1,
|
food:1,
|
||||||
techRequired:"Sailing",
|
techRequired:"Sailing",
|
||||||
improvingTech:"Compass",
|
improvingTech:"Compass",
|
||||||
|
|
|
@ -347,11 +347,14 @@ class TileEditorOptionsTable(val mapEditorScreen: MapEditorScreen): Table(Camera
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
val improvement = tileInfo.getTileImprovement()!!
|
val improvement = tileInfo.getTileImprovement()!!
|
||||||
|
if(tileInfo.getBaseTerrain().impassable) tileInfo.improvement=null
|
||||||
if (improvement.terrainsCanBeBuiltOn.isNotEmpty() // for "everywhere" improvements like city ruins, encampments, ancient ruins
|
if (improvement.terrainsCanBeBuiltOn.isNotEmpty() // for "everywhere" improvements like city ruins, encampments, ancient ruins
|
||||||
&& improvement.terrainsCanBeBuiltOn.none { it == tileInfo.baseTerrain || it == tileInfo.terrainFeature })
|
&& improvement.terrainsCanBeBuiltOn.none { it == tileInfo.baseTerrain || it == tileInfo.terrainFeature })
|
||||||
tileInfo.improvement = null
|
tileInfo.improvement = null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(tileInfo.getBaseTerrain().impassable || tileInfo.isWater)
|
||||||
|
tileInfo.roadStatus=RoadStatus.None
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue