fix: 자동 참모 교체 시 기존 참모를 해임한다

This commit is contained in:
2026-08-28 06:20:13 +00:00
parent ab0f1b9cd5
commit f43a1db136
2 changed files with 54 additions and 0 deletions
@@ -1198,6 +1198,13 @@ export class GeneralAI {
) {
continue;
}
const oldChief = this.chiefGenerals[11];
if (oldChief && oldChief.id !== candidate.id) {
oldChief.officerLevel = 1;
oldChief.meta = { ...oldChief.meta, officer_city: 0 };
this.promotionPatches.push({ generalId: oldChief.id, officerLevel: 1, officerCity: 0 });
effectiveOfficerLevel.set(oldChief.id, 1);
}
const permission = penalty.noAmbassador === true ? undefined : 'ambassador';
candidate.officerLevel = 11;
candidate.meta = {