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
@@ -488,6 +488,23 @@ export class GeneralAI {
return message;
}
syncGeneralAfterNationAction(general: TurnGeneral): void {
const meta = { ...general.meta } as Record<string, unknown>;
for (const key of [
'fullLeadership',
'fullStrength',
'fullIntelligence',
'effectiveLeadership',
'effectiveStrength',
'effectiveIntelligence',
]) {
if (Object.prototype.hasOwnProperty.call(this.general.meta, key)) {
meta[key] = this.general.meta[key];
}
}
this.general = { ...general, meta: meta as TurnGeneral['meta'] };
}
chooseGeneralTurn(reservedTurn: ReservedTurnEntry): AiCommandCandidate | null {
this.updateInstance();
if (!this.worldRef) {