mirror of
https://github.com/yairm210/Unciv.git
synced 2025-10-03 17:03:20 -04:00
Merge pull request #599 from ninjatao/wonder_priority
wonder building priority.
This commit is contained in:
commit
a3542597ae
@ -142,7 +142,7 @@ class Automation {
|
|||||||
val citiesBuildingWonders = cityInfo.civInfo.cities
|
val citiesBuildingWonders = cityInfo.civInfo.cities
|
||||||
.count { it.cityConstructions.isBuildingWonder() }
|
.count { it.cityConstructions.isBuildingWonder() }
|
||||||
val wonder = buildableWonders.getRandom()
|
val wonder = buildableWonders.getRandom()
|
||||||
relativeCostEffectiveness.add(ConstructionChoice(wonder.name,3f / (citiesBuildingWonders + 1)))
|
relativeCostEffectiveness.add(ConstructionChoice(wonder.name,5f / (citiesBuildingWonders + 1)))
|
||||||
}
|
}
|
||||||
|
|
||||||
//other buildings
|
//other buildings
|
||||||
@ -158,7 +158,7 @@ class Automation {
|
|||||||
|
|
||||||
//Work boat
|
//Work boat
|
||||||
if (needWorkboat) {
|
if (needWorkboat) {
|
||||||
relativeCostEffectiveness.add(ConstructionChoice("Work Boats",1.5f))
|
relativeCostEffectiveness.add(ConstructionChoice("Work Boats",0.6f))
|
||||||
}
|
}
|
||||||
|
|
||||||
//Army
|
//Army
|
||||||
|
Loading…
x
Reference in New Issue
Block a user