miao-plugin/resources/meta/character//calc.js

34 lines
947 B
JavaScript
Raw Normal View History

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