mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-11 11:28:03 +07:00
Another small improvement, speeds up chooseNextConstruction by about 40%, but this wouldn't really be an issue if tileInfo.hasUnique was fast since that's the main time clog...
This commit is contained in:
parent
1732d951d2
commit
2130cf20e0
@ -21,9 +21,10 @@ class ConstructionAutomation(val cityConstructions: CityConstructions){
|
||||
val cityInfo = cityConstructions.cityInfo
|
||||
val civInfo = cityInfo.civInfo
|
||||
|
||||
val buildableNotWonders = cityConstructions.getBuildableBuildings()
|
||||
val buildableBuildings = cityConstructions.getBuildableBuildings().toList()
|
||||
val buildableNotWonders = buildableBuildings
|
||||
.filterNot { it.isAnyWonder() }
|
||||
private val buildableWonders = cityConstructions.getBuildableBuildings()
|
||||
private val buildableWonders = buildableBuildings
|
||||
.filter { it.isAnyWonder() }
|
||||
|
||||
val civUnits = civInfo.getCivUnits()
|
||||
|
Loading…
Reference in New Issue
Block a user