miao-plugin/resources/meta/character/托马/calc.js
Aluxes c19c731ce7
新增刃伤害计算及评分规则 (#613)
* 新增刃伤害计算及评分规则

* 更新神子 托马 珐露珊 白术 赛诺 银狼 伤害计算
2023-07-30 15:15:11 +08:00

28 lines
845 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: 'E基础护盾量',
dmg: ({ attr, calc, talent }, { shield }) =>
shield(talent.e['护盾吸收量2'][0] * calc(attr.hp) / 100 + talent.e['护盾吸收量2'][1] * 1)
}, {
title: 'E最大护盾量',
params: { e: true },
dmg: ({ attr, calc, talent }, { shield }) =>
shield(talent.e['护盾吸收量上限2'][0] * calc(attr.hp) / 100 + talent.e['护盾吸收量上限2'][1] * 1)
}, {
title: 'Q每段伤害',
dmg: ({ talent }, dmg) => dmg(talent.q['炽火崩破伤害'], 'q')
}]
export const mainAttr = 'atk,cpct,cdmg'
export const buffs = [{
title: '托马被动5层Buff提高护盾强效25%',
data: {
shieldPlus: ({ params }) => params.e ? 25 : 0
}
}, {
title: '托马被动Q每段伤害提高[qPlus]',
data: {
qPlus: ({ calc, attr }) => calc(attr.hp) * 0.022
}
}]