Merge pull request #599 from ninjatao/wonder_priority

wonder building priority.
This commit is contained in:
Yair Morgenstern 2019-03-22 07:38:14 +02:00 committed by GitHub
commit a3542597ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -142,7 +142,7 @@ class Automation {
val citiesBuildingWonders = cityInfo.civInfo.cities
.count { it.cityConstructions.isBuildingWonder() }
val wonder = buildableWonders.getRandom()
relativeCostEffectiveness.add(ConstructionChoice(wonder.name,3f / (citiesBuildingWonders + 1)))
relativeCostEffectiveness.add(ConstructionChoice(wonder.name,5f / (citiesBuildingWonders + 1)))
}
//other buildings
@ -158,7 +158,7 @@ class Automation {
//Work boat
if (needWorkboat) {
relativeCostEffectiveness.add(ConstructionChoice("Work Boats",1.5f))
relativeCostEffectiveness.add(ConstructionChoice("Work Boats",0.6f))
}
//Army