miao-plugin/resources/meta/character/枫原万叶/calc.js

30 lines
750 B
JavaScript
Raw Normal View History

export const details = [{
2022-08-06 19:06:12 +00:00
title: 'E长按伤害',
dmg: ({ talent }, dmg) => dmg(talent.e['长按技能伤害'], 'e')
}, {
2022-08-06 19:06:12 +00:00
title: 'Q斩击伤害',
dmg: ({ talent }, dmg) => dmg(talent.q['斩击伤害'], 'q')
}, {
2022-08-06 19:06:12 +00:00
title: 'Q无转化每段伤害',
dmg: ({ talent }, dmg) => dmg(talent.q['持续伤害'], 'q')
}, {
2022-08-06 19:06:12 +00:00
title: '扩散反应伤害',
dmg: ({}, { reaction }) => reaction('swirl')
2022-08-06 19:06:12 +00:00
}]
2022-08-06 19:06:12 +00:00
export const mainAttr = 'atk,cpct,cdmg,mastery'
export const buffs = [{
2022-08-06 19:06:12 +00:00
title: '万叶2命开Q后精通提高200',
cons: 2,
data: {
mastery: 200
}
}, {
title: '元素精通:扩散伤害提高[swirlPlus]%',
sort: 2,
2022-12-07 06:22:39 +00:00
data: {
swirlPlus: ({ calc, attr }) => 1600 * calc(attr.mastery) / (calc(attr.mastery) + 2000)
}
2022-08-06 19:06:12 +00:00
}]