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

36 lines
1.1 KiB
JavaScript
Raw Normal View History

2023-02-05 18:16:08 +00:00
export const details = [{
title: 'E每跳治疗',
dmg: ({ talent, calc, attr }, { heal }) =>
heal(talent.e['白玉萝卜治疗量2'][0] * calc(attr.hp) / 100 + talent.e['白玉萝卜治疗量2'][1])
}, {
title: 'E每跳伤害',
dmg: ({ talent }, dmg) => dmg(talent.e['白玉萝卜伤害'], 'e')
}, {
title: 'Q每跳治疗',
dmg: ({ talent, calc, attr }, { heal }) =>
heal(talent.q['桂子仙机白玉萝卜治疗量2'][0] * calc(attr.hp) / 100 + talent.q['桂子仙机白玉萝卜治疗量2'][1])
}, {
title: '萝卜炸裂天赋治疗',
dmg: ({ talent, calc, attr }, { heal }) => heal(calc(attr.hp) * 0.8 / 100)
}, {
title: '6命大萝卜治疗',
cons: 6,
dmg: ({ talent, calc, attr }, { heal }) => heal(calc(attr.hp) * 7.5 / 100)
}]
export const mainAttr = 'atk,hp,cpct,cdmg'
export const buffs = [{
title: '瑶瑶1命萝卜炸裂获得15%草伤加成',
cons: 1,
data: {
dmg: 15
}
}, {
title: '瑶瑶4命释放E或Q后提升元素精通[mastery]点',
cons: 4,
data: {
mastery: ({ calc, attr }) => calc(attr.hp) * 0.3 / 100
}
}]