feat: update NPC 건국/통일 및 선전포고 테스트 로직 개선

This commit is contained in:
2026-01-24 18:01:25 +00:00
parent b4ad9d0055
commit e3b1fb0812
3 changed files with 136 additions and 21 deletions
@@ -779,14 +779,7 @@ export class GeneralAI {
}
}
if ((this.dipState === d평화 || this.dipState === d선포) && this.worldRef) {
const hasCrew =
this.general.crew > 0 ||
this.worldRef.listGenerals().some((general) => general.nationId === nationId && general.crew > 0);
if (hasCrew) {
this.dipState = d징병;
}
}
// legacy GeneralAI.php 기준: 평화/선포 상태에서 병력 보유 여부로 d징병 전환하지 않음.
}
private calcRecentWarTurn(general: TurnGeneral): number {