miao-plugin/resources/meta/character/五郎/calc.js

45 lines
1.1 KiB
JavaScript
Raw Normal View History

2022-08-18 21:04:31 +00:00
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
}
}]