mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-22 10:54:19 -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
|
||||
}
|
||||
|
||||
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
|
||||
cityAIFocus.applyWeightTo(yieldStats)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user