징병 모병 병종 활성화 조건을 표시

This commit is contained in:
2026-08-31 14:29:40 +00:00
parent 96f6d85cf4
commit 7080ae5504
3 changed files with 25 additions and 4 deletions
+5 -1
View File
@@ -26,6 +26,7 @@ import { getTechAbility, getTechLevel, isCrewTypeAvailable } from '@sammo-ts/log
import { asRecord, isRecord } from '@sammo-ts/common';
import type { CityRow, GeneralRow, NationRow, WorldStateRow } from '../context.js';
import { formatCrewTypeRequirement } from '../services/gameDisplayNames.js';
import {
buildTurnCommandInputFields,
loadTurnCommandSpecs,
@@ -558,7 +559,10 @@ export const buildRecruitmentCommandInfo = (options: {
avoid: crewType.avoid,
baseCost: displayCost.gold,
baseRice: displayCost.rice,
info: [...crewType.info],
info: [
...crewType.info,
...crewType.requirements.map(formatCrewTypeRequirement).filter(Boolean),
],
};
}),
}));
+11 -2
View File
@@ -676,7 +676,11 @@ describe('buildTurnCommandTable', () => {
magicCoef: 0,
cost: 12,
rice: 10,
requirements: [{ type: 'ReqTech', tech: 2000 }],
requirements: [
{ type: 'ReqTech', tech: 2000 },
{ type: 'ReqRegions', regions: ['중원'] },
{ type: 'ReqCities', cities: ['TestCity'] },
],
attackCoef: {},
defenceCoef: {},
info: ['강력하지만 기술이 필요합니다.'],
@@ -734,7 +738,12 @@ describe('buildTurnCommandTable', () => {
special: true,
attack: 175,
defence: 225,
info: ['강력하지만 기술이 필요합니다.'],
info: [
'강력하지만 기술이 필요합니다.',
'기술력 2000 이상 필요',
'중원 지역 소유시 가능',
'TestCity 소유시 가능',
],
});
});
});