fix(game-ui): 내 정보 전투 누적 수치를 실제 기록에 연결
명장 일람과 같은 rank_data 원천을 general.me에 투영하고 Ref 비율식으로 표시한다. 전투 누적과 무쌍 승리수 배율을 회귀 테스트로 고정한다.
This commit is contained in:
@@ -55,6 +55,18 @@ describe('Ref event domestic traits', () => {
|
||||
expect(eventMusang!.getWarPowerMultiplier?.(context, unit, unit)).toEqual([1, 1]);
|
||||
});
|
||||
|
||||
it('applies the persisted victory count to the ordinary 무쌍 battle multiplier', async () => {
|
||||
const musang = await new WarTraitLoader().load('che_무쌍');
|
||||
const unit = {
|
||||
getGeneral: () => ({ meta: { rank_killnum: 40 } }),
|
||||
} as unknown as WarUnit;
|
||||
const context = { unit } as unknown as WarActionContext;
|
||||
|
||||
const multiplier = musang.getWarPowerMultiplier?.(context, unit, unit);
|
||||
expect(multiplier?.[0]).toBeCloseTo(1.2, 12);
|
||||
expect(multiplier?.[1]).toBeCloseTo(0.92, 12);
|
||||
});
|
||||
|
||||
it('keeps event and ordinary 견고 injury-prevention triggers distinct by raise type', async () => {
|
||||
const [eventGyeongo] = await loadEventDomesticTraitModules(['che_event_견고']);
|
||||
const canonical = await new WarTraitLoader().load('che_견고');
|
||||
|
||||
Reference in New Issue
Block a user