miao-plugin/resources/meta/character/迪奥娜/calc.js

38 lines
1.0 KiB
JavaScript
Raw Normal View History

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