miao-plugin/resources/meta-sr/character/穹·同谐/calc.js

66 lines
1.5 KiB
JavaScript
Raw Normal View History

2024-05-13 15:42:38 +00:00
import { Format } from '#miao'
export const details = [{
title: '战技伤害',
dmg: ({ talent, cons }, dmg) => {
let count = cons < 6 ? 5 : 7
return dmg(talent.e['技能伤害'] * count, 'e')
}
}, {
title: '终结技提高全队击破特攻',
dmg: ({ talent }) => {
return {
avg: Format.percent(talent.q['击破特攻提高']),
type: 'text'
}
}
}, {
title: '4魂提高队友击破特攻',
params: { q: true },
cons: 4,
dmg: ({ attr }) => {
return {
avg: Format.percent(attr.stance / 100 * 0.15),
type: 'text'
}
}
}, {
title: '普攻·超击破伤害',
params: { q: true },
dmg: ({ trees }, { reaction }) => {
let extraDmg = trees['101'] ? 1.6 : 1
return {
2024-06-20 22:43:11 +00:00
avg: reaction('superBreak').avg / 0.9 * extraDmg
2024-05-13 15:42:38 +00:00
}
}
}, {
title: '战技·超击破伤害',
dmgKey: 'e',
params: { q: true },
dmg: ({ cons, trees }, { reaction }) => {
let cost = (cons < 6 ? 3 : 4) + (trees['102'] ? 1 : 0)
let extraDmg = trees['101'] ? 1.6 : 1
return {
2024-06-20 22:43:11 +00:00
avg: reaction('superBreak').avg / 0.9 * cost * extraDmg
2024-05-13 15:42:38 +00:00
}
}
}]
export const mainAttr = 'atk,stance'
export const defDmgKey = 'e'
export const buffs = [{
title: '终结技Buff我方全体击破特攻提高[stance]%',
data: {
stance: ({ talent }) => talent.q['击破特攻提高'] * 100
}
}, {
title: '行迹-卫我起舞场上敌方数量为1时超击破伤害提高60%',
tree: 1
}, {
title: '开拓者6命战技的额外伤害次数增加2次',
cons: 6
}]
export const createdBy = 'Aluxes'