fix: 장수 런타임 레벨 상한을 Ref 기준으로 복구

가입 능력치 배분 상한과 런타임 레벨 상한을 분리하고, Ref 기본값 255를 공유 상수로 통합한다. 모병 후 레벨 유지와 국가 장수 목록의 고레벨 표시를 회귀 테스트로 고정한다.
This commit is contained in:
2026-08-21 08:37:38 +00:00
parent bba0d3b5c0
commit deb01f7f2b
21 changed files with 124 additions and 49 deletions
@@ -92,4 +92,17 @@ describe('tracked scenario resources', () => {
expect([...secretScenarioKeys!].filter((key) => key.startsWith('event_전투특기_'))).toHaveLength(20);
expect(secretScenarioKeys?.has('event_전투특기_격노')).toBe(true);
});
it('keeps join allocation bounds separate from the Ref runtime stat level limit', async () => {
const scenario = await loadScenarioDefinitionById(1);
expect(scenario.config.stat.max).toBe(80);
expect(buildCommandEnv(scenario.config).maxStatLevel).toBe(255);
expect(
buildCommandEnv({
...scenario.config,
const: { ...scenario.config.const, maxLevel: 512 },
}).maxStatLevel
).toBe(512);
});
});