miao-plugin/resources/meta-gs/character/北斗/calc.js

39 lines
1.0 KiB
JavaScript
Raw Normal View History

2024-04-30 12:10:36 +00:00
import { Format } from '#miao'
2022-08-18 21:04:31 +00:00
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')
2024-04-30 12:10:36 +00:00
}, {
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'
}
}
2022-08-18 21:04:31 +00:00
}]
export const mainAttr = 'atk,cpct,cdmg'
export const buffs = [{
title: '北斗6命Q持续期间周围敌人的雷元素抗性降低15%',
cons: 6,
data: {
kx: ({ params }) => params.q ? 15 : 0
}
}]