mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-24 03:53:12 -04:00
AI: Recognize when no further techs can be researched, even if some techs are blocked (#7755)
This commit is contained in:
parent
11bfe93ce7
commit
ab1236683f
@ -32,7 +32,8 @@ class ConstructionAutomation(val cityConstructions: CityConstructions){
|
|||||||
private val militaryUnits = civUnits.count { it.baseUnit.isMilitary() }
|
private val militaryUnits = civUnits.count { it.baseUnit.isMilitary() }
|
||||||
private val workers = civUnits.count { it.hasUniqueToBuildImprovements && it.isCivilian() }.toFloat()
|
private val workers = civUnits.count { it.hasUniqueToBuildImprovements && it.isCivilian() }.toFloat()
|
||||||
private val cities = civInfo.cities.size
|
private val cities = civInfo.cities.size
|
||||||
private val allTechsAreResearched = civInfo.tech.getNumberOfTechsResearched() >= civInfo.gameInfo.ruleSet.technologies.size
|
private val allTechsAreResearched = civInfo.gameInfo.ruleSet.technologies.values
|
||||||
|
.all { civInfo.tech.isResearched(it.name) || !civInfo.tech.canBeResearched(it.name)}
|
||||||
|
|
||||||
private val isAtWar = civInfo.isAtWar()
|
private val isAtWar = civInfo.isAtWar()
|
||||||
private val buildingsForVictory = civInfo.gameInfo.getEnabledVictories().values
|
private val buildingsForVictory = civInfo.gameInfo.getEnabledVictories().values
|
||||||
|
Loading…
x
Reference in New Issue
Block a user