miao-plugin/resources/meta-sr/character/布洛妮娅/calc.js

48 lines
1.0 KiB
JavaScript
Raw Normal View History

import { Format } from '#miao'
export const details = [{
title: '普攻伤害',
dmg: ({ talent }, dmg) => dmg(talent.a['技能伤害'], 'a')
}, {
title: '战技Buff加伤',
dmg: ({ talent }) => {
return {
avg: Format.percent(talent.e['伤害提高']),
type: 'text'
}
}
}, {
title: '终结技Buff攻击力提高',
dmg: ({ talent }) => {
return {
avg: Format.percent(talent.q['攻击力提高']),
type: 'text'
}
}
}, {
title: '终结技Buff爆伤提高',
dmg: ({ attr, calc, talent }) => {
return {
avg: Format.percent(calc(attr.cdmg) * talent.q['百分比暴伤'] / 100 + talent.q['固定暴伤']),
type: 'text'
}
}
}]
2024-03-01 14:09:34 +00:00
export const defDmgIdx = 3
export const mainAttr = 'atk,cpct,cdmg'
export const buffs = [{
title: '行迹-军势布洛妮娅在场时我方全体造成的伤害提高10%',
2023-09-27 13:20:05 +00:00
tree: 3,
data: {
dmg: 10
}
2023-09-27 13:20:05 +00:00
}, {
title: '行迹-号令:普攻的暴击率提高至[aCpct]%',
tree: 1,
data: {
aCpct: 100
}
}]