feat: NPC 징병 및 예약 턴 핸들러 개선, 대형 테스트 맵 인구 수정

This commit is contained in:
2026-01-24 10:32:38 +00:00
parent 753abdaf47
commit 2964c8ea59
8 changed files with 225 additions and 24 deletions
+1
View File
@@ -53,6 +53,7 @@ const resolveConstraintEnv = (
startYear,
relYear,
openingPartYear: env.openingPartYear,
minAvailableRecruitPop: env.minAvailableRecruitPop,
};
};
@@ -351,6 +351,10 @@ export const do징병 = (ai: GeneralAI) => {
const goldCost = (picked.cost * getTechCost(tech) * crewAmount) / 100;
const riceCost = crewAmount / 100;
if (ai.general.gold <= 0 || ai.general.rice <= 0) {
return null;
}
if (ai.generalPolicy.can('모병') && ai.general.gold >= goldCost * 6) {
const hire = ai.buildGeneralCandidate('che_모병', { crewType: crewTypeId, amount: crewAmount }, '징병');
if (hire) {