miao-plugin/resources/meta-gs/character/北斗/calc.js
2024-04-30 20:10:36 +08:00

39 lines
1.0 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.

import { Format } from '#miao'
export const details = [{
title: 'E伤害',
dmg: ({ talent }, dmg) => dmg(talent.e['基础伤害'], 'e')
}, {
title: '2层E伤害',
dmg: ({ talent }, dmg) => dmg(talent.e['基础伤害'] + talent.e['受击时伤害提升'] * 2, 'e')
}, {
title: 'Q每跳伤害',
params: { q: true },
dmg: ({ talent }, dmg) => dmg(talent.q['闪雷伤害'], 'q')
}, {
title: 'E弹反护盾量',
dmg: ({ talent, attr }, { shield }) => shield(talent.e['护盾吸收量2'][0] / 100 * attr.hp + talent.e['护盾吸收量2'][1])
}, {
title: 'Q护盾量',
check: ({ cons }) => cons >= 1,
dmg: ({ attr }, { shield }) => shield(0.16 * attr.hp)
}, {
title: 'Q伤害减免',
dmg: ({ talent }) => {
return {
avg: Format.percent(talent.q['伤害减免'] / 100),
type: 'text'
}
}
}]
export const mainAttr = 'atk,cpct,cdmg'
export const buffs = [{
title: '北斗6命Q持续期间周围敌人的雷元素抗性降低15%',
cons: 6,
data: {
kx: ({ params }) => params.q ? 15 : 0
}
}]