miao-plugin/resources/meta/character//calc.js
2022-08-08 02:26:25 +08:00

33 lines
920 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

export const details = [{
title: '风压剑伤害',
dmg: ({ talent }, dmg) => dmg(talent.e['技能伤害'], 'e')
}, {
title: 'Q爆发伤害',
params: { q: true },
dmg: ({ talent }, dmg) => dmg(talent.q['爆发伤害'], 'q')
}, {
title: 'Q爆发治疗',
dmg: ({ talent, calc, attr }, { heal }) =>
heal(talent.q['领域发动治疗量2'][0] * calc(attr.atk) / 100 + talent.q['领域发动治疗量2'][1] * 1)
}, {
title: 'Q每跳治疗',
dmg: ({ talent, calc, attr }, { heal }) =>
heal(talent.q['持续治疗2'][0] * calc(attr.atk) / 100 + talent.q['持续治疗2'][1] * 1)
}]
export const mainAttr = 'atk,cpct,cdmg'
export const buffs = [{
cons: 1,
title: '琴1命长按1秒后风压剑伤害提升40%',
data: {
eDmg: 40
}
}, {
cons: 4,
title: '琴4命蒲公英之风的领域内敌人风元素抗性降低40%',
data: {
kx: ({ params }) => params.q ? 40 : 0
}
}]