miao-plugin/resources/meta-sr/character/停云/calc.js
2023-05-23 03:19:45 +08:00

32 lines
628 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.

import { Format } from '#miao'
export const details = [{
title: '普攻伤害',
dmg: ({ talent }, dmg) => dmg(talent.a['技能伤害'], 'a')
}, {
title: 'E赐福提高攻击力上限',
dmg: ({ attr, calc, talent }) => {
return {
avg: calc(attr.atk) * talent.e['攻击力上限']
}
}
}, {
title: 'Q伤害提高',
dmg: ({ talent }) => {
return {
avg: Format.percent(talent.q['伤害提高']),
type: 'text'
}
}
}]
export const mainAttr = 'atk,cpct,cdmg'
export const buffs = [{
title: '行迹-止厄普攻造成的伤害提高40%',
tree: 2,
data: {
aDmg: 40
}
}]