From aefbeae6bc6cb6c0deca7ee7d57810c45a2a1bde Mon Sep 17 00:00:00 2001 From: EmperorPinguin <99119424+EmperorPinguin@users.noreply.github.com> Date: Tue, 17 Jun 2025 15:09:56 +0200 Subject: [PATCH] Autoplay: don't assign citizens according to AI Personality (#13453) * Update Automation.kt * Update core/src/com/unciv/logic/automation/Automation.kt --------- Co-authored-by: Yair Morgenstern --- core/src/com/unciv/logic/automation/Automation.kt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/src/com/unciv/logic/automation/Automation.kt b/core/src/com/unciv/logic/automation/Automation.kt index 4537df5a9b..f036d3d661 100644 --- a/core/src/com/unciv/logic/automation/Automation.kt +++ b/core/src/com/unciv/logic/automation/Automation.kt @@ -170,9 +170,11 @@ object Automation { yieldStats.production /= 6 } - for (stat in Stat.entries) { - val scaledFocus = civPersonality.scaledFocus(PersonalityValue[stat]) - if (scaledFocus != 1f) yieldStats[stat] *= scaledFocus + 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