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

45 lines
1.1 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: '三岩Q伤害',
dmg: ({ talent, attr, calc }, { basic }) => {
let ret = talent.q['技能伤害'] * calc(attr.def) / 100 + attr.q.plus * 1
return basic(ret, 'q')
}
}, {
title: '三岩Q每跳伤害',
dmg: ({ talent, attr, calc }, { basic }) => {
let ret = talent.q['岩晶崩破伤害'] * calc(attr.def) / 100 + attr.q.plus * 1
return basic(ret, 'q')
}
}, {
title: 'Q每跳治疗',
cons: 4,
dmg: ({ attr, calc }, { heal }) => heal(0.5 * calc(attr.def))
}]
export const mainAttr = 'atk,def,cpct,cdmg'
export const buffs = [{
title: '五郎天赋释放E或Q后防御力提高[defPlus]岩伤提高15%',
data: {
defPlus: ({ talent }) => talent.e['防御力提升'] * 1,
dmg: 15
}
}, {
title: '五郎被动释放E后防御力提高25%',
data: {
defPct: 25
}
}, {
title: '五郎4命Q每跳回复防御力50%',
cons: 4
}, {
title: '五郎6命三岩队伍提高40%岩伤',
cons: 6,
data: {
dmg: 40
}
}]