miao-plugin/resources/meta/character/温迪/calc.js
yoimiya-kokomi 7094262acf * #角色面板 伤害计算增加 皇女、温迪、夜兰
* `#角色面板` 部分细节样式调整
2022-05-25 09:05:51 +08:00

41 lines
943 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.

export const details = [{
title: "E点按伤害",
dmg: ({ talent }, dmg) => dmg(talent.e['点按伤害'], 'e')
}, {
title: "E长按伤害",
dmg: ({ talent }, dmg) => dmg(talent.e['长按伤害'], 'e')
}, {
title: "Q单段伤害",
params: { q: true },
dmg: ({ talent }, dmg) => {
let basic = dmg(talent.q['持续伤害'], 'q');
//暂时以物伤近似计算
let fj = dmg(talent.q['附加元素伤害'], 'q', 'phy');
return {
dmg: basic.dmg + fj.dmg,
avg: basic.avg + fj.avg
}
}
}];
export const mainAttr = "atk,cpct,cdmg";
export const buffs = [{
title: "温迪2命E降低12%风抗与物抗",
cons: 2,
data: {
kx: 12
}
}, {
title: "温迪4命温迪获取元素晶球或元素微粒后获得25%风元素伤害加成",
cons: 4,
data: {
dmg: 25
}
}, {
title: "温迪6命Q降低20%风抗",
cons: 6,
data: {
kx: ({ params }) => params.q ? 20 : 0
}
}];