feat: NPC 징병 및 예약 턴 핸들러 개선, 대형 테스트 맵 인구 수정
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user