mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-29 15:01:09 -04:00
Priority tuning part 2.
This commit is contained in:
parent
cb9f032e35
commit
af48f80e1a
@ -136,7 +136,7 @@ class Automation {
|
|||||||
//Wonders
|
//Wonders
|
||||||
if (buildableWonders.isNotEmpty()) {
|
if (buildableWonders.isNotEmpty()) {
|
||||||
val wonder = buildableWonders.getRandom()
|
val wonder = buildableWonders.getRandom()
|
||||||
buildingValues[wonder.name] = wonder.cost / cityProduction / 4.0f
|
buildingValues[wonder.name] = wonder.cost / cityProduction / 5.0f
|
||||||
}
|
}
|
||||||
|
|
||||||
//other buildings
|
//other buildings
|
||||||
@ -161,8 +161,7 @@ class Automation {
|
|||||||
//Army
|
//Army
|
||||||
val militaryUnit = chooseCombatUnit(cityInfo)
|
val militaryUnit = chooseCombatUnit(cityInfo)
|
||||||
buildingValues[militaryUnit] =
|
buildingValues[militaryUnit] =
|
||||||
buildableUnits.first{ it.name == militaryUnit }.cost / cityProduction * 2.0f *
|
buildableUnits.first{ it.name == militaryUnit }.cost / cityProduction * 1.5f * militaryUnits / (cities+1)
|
||||||
(militaryUnits/(cities+1))
|
|
||||||
if (isAtWar) {
|
if (isAtWar) {
|
||||||
buildingValues[militaryUnit] = buildingValues[militaryUnit]!! / 3.0f
|
buildingValues[militaryUnit] = buildingValues[militaryUnit]!! / 3.0f
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user