miao-plugin/resources/meta/character/迪奥娜/calc.js
2022-08-08 02:26:25 +08:00

37 lines
1001 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: ({ talent }, dmg) => dmg(talent.e['猫爪伤害'] * 5, 'e')
}, {
title: '长按E护盾量',
dmg: ({ talent, attr, calc }, { shield }) =>
shield(talent.e['护盾基础吸收量2'][0] * calc(attr.hp) / 100 + talent.e['护盾基础吸收量2'][1] * 1)
}, ({ cons }) => {
return {
title: `${cons === 6 ? '半血' : ''}Q每跳治疗`,
dmg: ({ talent, calc, attr }, { heal }) =>
heal(talent.q['持续治疗量2'][0] * calc(attr.hp) / 100 + talent.q['持续治疗量2'][1] * 1)
}
}]
export const mainAttr = 'atk,hp,cpct,cdmg'
export const buffs = [{
title: '迪奥娜天赋长按E获得75%护盾吸收量加成',
data: {
shield: 75
}
}, {
title: '迪奥娜2命猫爪冻冻造成的伤害提高15%护盾吸收量提高15%',
cons: 2,
data: {
eDmg: 15,
shield: 15
}
}, {
title: '迪奥娜6命生命值低于50%时受治疗加成提升30%',
cons: 6,
data: {
heal: 30
}
}]