fix: 사령턴 이후 자율행동 상태를 갱신한다

This commit is contained in:
2026-09-01 05:35:46 +00:00
parent 9c82eb0cf5
commit 426e1127ef
3 changed files with 279 additions and 0 deletions
@@ -1994,6 +1994,10 @@ export const createReservedTurnHandler = async (options: {
// The following general command therefore observes and adds to
// those fractions before the turn's final persistence boundary.
worldOverlay?.syncGeneral(currentGeneral);
// Ref keeps one mutable General object across nation/general AI
// selection. Core uses immutable patches, so carry the executed
// nation action back into the shared AI without resetting its RNG.
sharedAi?.syncGeneralAfterNationAction(currentGeneral);
if (
worldView &&
(process.env.CORE_AI_TRACE_GENERAL_IDS?.split(',') ?? []).includes(String(currentGeneral.id))