miao-plugin/resources/meta-gs/character/夏沃蕾/calc.js

51 lines
1.6 KiB
JavaScript
Raw Normal View History

export const details = [{
title: 'E点按伤害',
2024-01-09 12:25:48 +00:00
dmg: ({ talent }, dmg) => dmg(talent.e['点按伤害'], 'e')
}, {
title: 'E长按伤害',
dmg: ({ talent }, dmg) => dmg(talent.e['长按伤害'], 'e')
2024-01-09 12:25:48 +00:00
}, {
title: '「超量装药弹头」伤害',
dmg: ({ talent }, dmg) => dmg(talent.e['「超量装药弹头」伤害'], 'e')
2024-01-09 12:25:48 +00:00
}, {
title: '2命额外伤害',
check: ({ cons }) => cons >= 2,
2024-01-09 12:25:48 +00:00
dmg: ({ calc, attr }, { basic }) => basic(calc(attr.atk) * 120 / 100, 'e')
}, {
title: 'E持续治疗',
dmg: ({ attr, calc, talent }, { heal }) => heal(talent.e['持续治疗量2'][0] * calc(attr.hp) / 100 + talent.e['持续治疗量2'][1] * 1)
2024-01-09 12:25:48 +00:00
}, {
title: 'Q释放伤害',
dmg: ({ talent }, dmg) => dmg(talent.q['爆轰榴弹伤害'], 'q')
}, {
title: 'Q分裂弹伤害',
dmg: ({ talent }, dmg) => dmg(talent.q['二重毁伤弹伤害'], 'q')
2024-01-09 12:25:48 +00:00
}, {
title: '6命额外治疗',
check: ({ cons }) => cons >= 6,
2024-01-09 12:25:48 +00:00
dmg: ({ attr, calc }, { heal }) => heal(calc(attr.hp) * 10 / 100)
}]
2024-01-09 12:25:48 +00:00
export const defDmgIdx = 4
export const mainAttr = 'atk,hp,cpct,cdmg,heal'
export const buffs = [{
title: '夏沃蕾天赋:火元素与雷元素抗性降低[kx]%',
data: {
kx: 40
}
2024-01-09 12:25:48 +00:00
}, {
title: '夏沃蕾天赋:发射「超量装药弹头」后攻击力提升[atkPct]%',
data: {
2024-01-09 12:25:48 +00:00
atkPct: ({ calc, attr }) => Math.min(40, calc(attr.hp) / 1000)
}
2024-01-09 12:25:48 +00:00
}, {
title: '夏沃蕾6命队伍中的角色受到「近迫式急促拦射」的治疗后获得[dmg]%火元素伤害加成与雷元素伤害加成',
cons: 6,
data: {
dmg: 60
}
}]
2024-01-09 12:25:48 +00:00
export const createdBy = 'liangshi'