feat: crewTypeId 및 defaultCrewTypeId 추가로 시나리오 부트스트랩 개선

This commit is contained in:
2025-12-28 16:40:28 +00:00
parent f7d9d423fa
commit 45c238ab38
4 changed files with 18 additions and 0 deletions
@@ -105,6 +105,7 @@ describe('scenario bootstrap', () => {
const unitSet: UnitSetDefinition = {
id: 'test-unit',
name: 'test-unit',
defaultCrewTypeId: 1200,
};
const result = buildScenarioBootstrap({ scenario, map, unitSet });
@@ -115,6 +116,7 @@ describe('scenario bootstrap', () => {
expect(result.snapshot.cities[0]?.nationId).toBe(1);
expect(result.seed.cities[0]?.nationId).toBe(1);
expect(result.snapshot.generals[0]?.cityId).toBe(1);
expect(result.snapshot.generals[0]?.crewTypeId).toBe(1200);
expect(result.seed.generals[0]?.npcType).toBe(2);
expect(result.snapshot.scenarioMeta?.title).toBe('Test Scenario');
});