fix: 자동 참모 교체 시 기존 참모를 해임한다
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user