miao-plugin/resources/meta-sr/character/白露/calc.js
2023-09-20 23:35:39 +08:00

25 lines
806 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: '普攻伤害',
dmg: ({ talent }, dmg) => dmg(talent.a['技能伤害'], 'a')
}, {
title: '战技主目标生命恢复',
dmg: ({ calc, attr, talent }, { heal }) => heal(calc(attr.hp) * talent.e['百分比生命'] + talent.e['固定值'])
}, {
title: '终结技生命恢复',
dmg: ({ calc, attr, talent }, { heal }) => heal(calc(attr.hp) * talent.q['百分比生命'] + talent.q['固定值'])
}, {
title: '天赋生息恢复',
dmg: ({ calc, attr, talent }, { heal }) => heal(calc(attr.hp) * talent.t['生息·百分比生命'] + talent.t['生息·固定值'])
}]
export const mainAttr = 'atk,cpct,cdmg,hp'
export const defDmgIdx = 2
export const buffs = [{
title: '白露2命释放终结技后治疗提高15%',
cons: 2,
data: {
heal: 15
}
}]