mirror of
https://github.com/yairm210/Unciv.git
synced 2025-03-06 07:31:26 +07:00
Resolve #7969 - Higher chance of starting bias for human players
This commit is contained in:
parent
d75233a932
commit
301f378bbf
@ -422,7 +422,7 @@ object GameStarter {
|
|||||||
civ.nation.startBias.isNotEmpty() && !gameSetupInfo.gameParameters.noStartBias -> 4 // less harsh
|
civ.nation.startBias.isNotEmpty() && !gameSetupInfo.gameParameters.noStartBias -> 4 // less harsh
|
||||||
else -> 5 // no requirements
|
else -> 5 // no requirements
|
||||||
}
|
}
|
||||||
}
|
}.sortedByDescending { it.isHuman() } // More important for humans to get their start biases!
|
||||||
|
|
||||||
for (minimumDistanceBetweenStartingLocations in tileMap.tileMatrix.size / 6 downTo 0) {
|
for (minimumDistanceBetweenStartingLocations in tileMap.tileMatrix.size / 6 downTo 0) {
|
||||||
val freeTiles = landTilesInBigEnoughGroup.asSequence()
|
val freeTiles = landTilesInBigEnoughGroup.asSequence()
|
||||||
@ -444,7 +444,8 @@ object GameStarter {
|
|||||||
getOneStartingLocation(civ, tileMap, freeTiles, startScores)
|
getOneStartingLocation(civ, tileMap, freeTiles, startScores)
|
||||||
}
|
}
|
||||||
startingLocations[civ] = startingLocation
|
startingLocations[civ] = startingLocation
|
||||||
freeTiles.removeAll(tileMap.getTilesInDistance(startingLocation.position, distanceToNext))
|
freeTiles.removeAll(tileMap.getTilesInDistance(startingLocation.position, distanceToNext)
|
||||||
|
.toSet())
|
||||||
}
|
}
|
||||||
if (startingLocations.size < civs.size) continue // let's try again with less minimum distance!
|
if (startingLocations.size < civs.size) continue // let's try again with less minimum distance!
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user