feat: improve analysis and release v1.0.2

This commit is contained in:
2026-08-19 13:47:49 +09:00
parent 488d652e61
commit e259f82b69
30 changed files with 1222 additions and 205 deletions
+27
View File
@@ -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);
});