fix: align scenario 2400 battle replay parity

This commit is contained in:
2026-08-05 03:08:12 +00:00
parent bbb6de6971
commit 0dc860feee
12 changed files with 668 additions and 51 deletions
@@ -163,6 +163,11 @@ const fireTriggers = (keys: string[], self: WarUnit, attacker: WarUnit, defender
};
describe('crew type catalog', () => {
it('uses the legacy display-width limit for battle log crew names', () => {
expect(new WarCrewType(crewType(1405, 4, '남귀병')).getShortName()).toBe('남귀');
expect(new WarCrewType(crewType(1, 1, 'AB한C')).getShortName()).toBe('AB한');
});
it('compiles every shipped unit set and resolves all crew handlers', async () => {
const unitSetDirectory = new URL('../../../resources/unitset/', import.meta.url);
const fileNames = (await readdir(unitSetDirectory)).filter((fileName) => fileName.endsWith('.json'));