mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 06:16:37 -04:00
Greatly increased distance between civ starting locations
This commit is contained in:
parent
89a720f7b2
commit
5444fd705b
@ -75,7 +75,7 @@ class GameStarter{
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun getStartingLocations(numberOfPlayers:Int,tileMap: TileMap): Stack<TileInfo> {
|
fun getStartingLocations(numberOfPlayers:Int,tileMap: TileMap): Stack<TileInfo> {
|
||||||
for(minimumDistanceBetweenStartingLocations in 7 downTo 0){
|
for(minimumDistanceBetweenStartingLocations in tileMap.tileMatrix.size/2 downTo 0){
|
||||||
val freeTiles = tileMap.values
|
val freeTiles = tileMap.values
|
||||||
.filter { it.isLand() && vectorIsWithinNTilesOfEdge(it.position,min(3,minimumDistanceBetweenStartingLocations),tileMap)}
|
.filter { it.isLand() && vectorIsWithinNTilesOfEdge(it.position,min(3,minimumDistanceBetweenStartingLocations),tileMap)}
|
||||||
.toMutableList()
|
.toMutableList()
|
||||||
|
@ -77,7 +77,7 @@ class CityExpansionManager {
|
|||||||
relinquishOwnership(tile)
|
relinquishOwnership(tile)
|
||||||
|
|
||||||
cityInfo.getCenterTile().getTilesInDistance(1)
|
cityInfo.getCenterTile().getTilesInDistance(1)
|
||||||
.filter { it.getCity()!=null } // can't take ownership of owned tiles
|
.filter { it.getCity()==null } // can't take ownership of owned tiles
|
||||||
.forEach { takeOwnership(it) }
|
.forEach { takeOwnership(it) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user