miao-plugin/resources/meta-sr/character/白露/calc.js
2023-05-23 03:19:45 +08:00

36 lines
970 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.a['技能伤害'], 'a')
}, {
title: 'E主目标生命恢复',
dmg: ({ calc, attr, talent }, { heal }) => heal(calc(attr.hp) * talent.e['百分比生命'] + talent.e['固定值'])
}, {
title: 'Q生命恢复',
dmg: ({ calc, attr, talent }, { heal }) => heal(calc(attr.hp) * talent.q['百分比生命'] + talent.q['固定值'])
}, {
title: '天赋生息恢复',
dmg: ({ calc, attr, talent }, { heal }) => heal(calc(attr.hp) * talent.t['生息·百分比生命'] + talent.t['生息·固定值'])
}]
export const mainAttr = 'atk,cpct,cdmg,hp'
export const buffs = [{
title: '白露2命释放终结技后治疗提高15%',
cons: 2,
data: {
heal: 15
}
}, {
title: '希儿2命释放战技后2层Buff速度提高50%',
cons: 2,
data: {
speedPct: 50
}
}, {
title: '行迹-夜行抗性穿透提高20',
tree: 2,
data: {
kx: 20
}
}]