mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-24 03:53:12 -04:00
Perf: remove AI personality for citizen assignment (#13676)
This commit is contained in:
parent
5b6e86126c
commit
4e766464a7
@ -169,13 +169,6 @@ object Automation {
|
|||||||
yieldStats.production /= 6
|
yieldStats.production /= 6
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!city.civ.isHuman()) { // Don't mess things up with a single turn of Autoplay
|
|
||||||
for (stat in Stat.entries) {
|
|
||||||
val scaledFocus = civPersonality.scaledFocus(PersonalityValue[stat])
|
|
||||||
if (scaledFocus != 1f) yieldStats[stat] *= scaledFocus
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Apply City focus
|
// Apply City focus
|
||||||
cityAIFocus.applyWeightTo(yieldStats)
|
cityAIFocus.applyWeightTo(yieldStats)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user