feat: improve analysis and release v1.0.2
This commit is contained in:
@@ -91,3 +91,30 @@ test('조건부 기수 패시브는 복수 소속 멤버도 대상으로 삼는
|
||||
|
||||
assert.equal(result.passiveTotal, 20);
|
||||
});
|
||||
|
||||
test('지정 인원 능력치 패시브는 해당 능력치가 아닌 전체 파라미터 합계 상위 멤버에게 적용한다', () => {
|
||||
const source = {
|
||||
...card('source', '퓨어 타입 2명의 퍼포먼스가 10% UP'),
|
||||
type: '해피'
|
||||
};
|
||||
const targets = [
|
||||
{ id: 'performance-high', performance: 200, technique: 0, sense: 0 },
|
||||
{ id: 'total-high', performance: 100, technique: 200, sense: 0 },
|
||||
{ id: 'total-second', performance: 150, technique: 100, sense: 0 }
|
||||
].map(({ id, performance, technique, sense }) => ({
|
||||
card: {
|
||||
...card(id, ''),
|
||||
type: '퓨어',
|
||||
power: { maxLevel: 80, statsAtMaxLevel: { performance, technique, sense } }
|
||||
},
|
||||
awakening: 0
|
||||
}));
|
||||
|
||||
const result = calculateUnitPower([
|
||||
{ card: source, awakening: 0 },
|
||||
...targets,
|
||||
{ card: card('other', ''), awakening: 0 }
|
||||
]);
|
||||
|
||||
assert.equal(result.passiveTotal, 25);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user