mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-30 15:30:43 -04:00
AI only builds work boats for water resources whose improvement can actually be constructed
This commit is contained in:
parent
c41410812a
commit
a38034ed91
@ -154,7 +154,10 @@ class ConstructionAutomation(val cityConstructions: CityConstructions){
|
|||||||
}
|
}
|
||||||
for (i in 1..10) bfs.nextStep()
|
for (i in 1..10) bfs.nextStep()
|
||||||
if (!bfs.getReachedTiles()
|
if (!bfs.getReachedTiles()
|
||||||
.any { it.hasViewableResource(civInfo) && it.improvement == null && it.getOwner() == civInfo }
|
.any { it.hasViewableResource(civInfo) && it.improvement == null && it.getOwner() == civInfo
|
||||||
|
&& it.tileResource.improvement != null
|
||||||
|
&& it.canBuildImprovement(it.ruleset.tileImprovements[it.tileResource.improvement]!!, civInfo)
|
||||||
|
}
|
||||||
) return
|
) return
|
||||||
|
|
||||||
addChoice(
|
addChoice(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user