miao-plugin/resources/meta-gs/character/云堇/calc.js
2023-10-25 03:34:36 +08:00

27 lines
671 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: 'Q提供普攻基础伤害',
dmg: ({ talent, attr, calc }) => {
return {
avg: (talent.q['伤害值提升'] / 100 + 0.115) * calc(attr.def)
}
}
}, {
title: '二段蓄力E伤害',
dmg: ({ talent, attr, calc }, { basic }) => {
let ret = talent.e['二段蓄力伤害'] * calc(attr.def) / 100 + (attr.e.plus || 0)
return basic(ret, 'e')
}
}]
export const mainAttr = 'atk,def,cpct,cdmg'
export const buffs = [{
title: '云堇被动队伍存在4元素类型角色时Q提供的普攻伤害提高[_q]',
sort: 9,
data: {
_q: ({ attr, calc }) => {
return calc(attr.def) * 0.115
}
}
}]