Don't buy tiles in the very early game. (#9117)

This commit is contained in:
WhoIsJohannes
2023-04-04 22:42:18 +02:00
committed by GitHub
parent 2150fc2244
commit 6b4003311b

View File

@ -336,6 +336,12 @@ object NextTurnAutomation {
private fun maybeBuyCityTiles(civInfo: Civilization) {
if (civInfo.gold <= 0)
return
// Don't buy tiles in the very early game. It is unlikely that we already have the required
// tech, the necessary worker and that there is a reasonable threat from another player to
// grab the tile. We could also check all that, but it would require a lot of cycles each
// turn and this is probably a good approximation.
if (civInfo.gameInfo.turns < (civInfo.gameInfo.speed.scienceCostModifier * 20).toInt())
return
val highlyDesirableTiles: SortedMap<Tile, MutableSet<City>> = TreeMap(
compareByDescending<Tile?> { it?.naturalWonder != null }