miao-plugin/resources/meta/character/辛焱/calc.js

48 lines
1.3 KiB
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: ({ talent }, dmg) => dmg(talent.e['挥舞伤害'], 'e')
}, {
title: '三级护盾量',
dmg: ({ talent, calc, attr }, { shield }) =>
shield(talent.e['三级护盾吸收量2'][0] * calc(attr.def) / 100 + talent.e['三级护盾吸收量2'][1] * 1)
}, {
title: 'Q释放伤害',
params: { phy: true },
dmg: ({ talent }, dmg) => dmg(talent.q['技能伤害'], 'q', 'phy')
}, {
title: '重击循环伤害',
params: { a2: true, phy: true },
dmg: ({ talent }, dmg) => dmg(talent.a['重击循环伤害'], 'a2', 'phy')
}]
export const mainAttr = 'atk,def,cpct,cdmg'
export const enemyName = '魔偶/女士/雷神/丘丘'
export const buffs = [{
title: '辛焱被动处于护盾下物理伤害提高15%',
data: {
phy: 15
}
}, {
title: '辛焱2命Q的暴击率提升100%',
cons: 2,
data: {
qCpct: 100
}
}, {
title: '辛焱4命E造成伤害使敌人物理抗性降低15%',
cons: 4,
check: ({ params }) => params.phy === true,
data: {
kx: 15
}
}, {
title: '辛焱6命进行重击时基于防御力的50%获得[atkPlus]攻击力加成',
cons: 6,
sort: 9,
check: ({ params }) => params.a2 === true,
data: {
atkPlus: ({ attr, calc }) => calc(attr.def) * 0.5
}
}]