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

29 lines
856 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]',
sort: 9,
data: {
qPlus: ({ calc, attr }) => calc(attr.hp) * 0.022
}
}]