mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-24 03:53:12 -04:00
Update CityLocationTileRanker.kt
This commit is contained in:
parent
e6e7a21123
commit
c41436e043
@ -65,7 +65,7 @@ object CityLocationTileRanker {
|
|||||||
|
|
||||||
private fun canSettleTile(tile: Tile, civ: Civilization, nearbyCities: Sequence<City>): Boolean {
|
private fun canSettleTile(tile: Tile, civ: Civilization, nearbyCities: Sequence<City>): Boolean {
|
||||||
val modConstants = civ.gameInfo.ruleset.modOptions.constants
|
val modConstants = civ.gameInfo.ruleset.modOptions.constants
|
||||||
if (!tile.isLand || tile.isImpassible()) return false
|
if (tile.isImpassible()) return false
|
||||||
if (tile.getOwner() != null && tile.getOwner() != civ) return false
|
if (tile.getOwner() != null && tile.getOwner() != civ) return false
|
||||||
for (city in nearbyCities) {
|
for (city in nearbyCities) {
|
||||||
val distance = city.getCenterTile().aerialDistanceTo(tile)
|
val distance = city.getCenterTile().aerialDistanceTo(tile)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user