Perf: remove AI personality for citizen assignment (#13676)

This commit is contained in:
EmperorPinguin 2025-07-23 21:22:52 +02:00 committed by GitHub
parent 5b6e86126c
commit 4e766464a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)