miao-plugin/resources/meta/character/八重神子/calc.js
yoimiya-kokomi 9765c5af18 增加 #雷神伤害 功能
* 可计算圣遗物副词条置换带来的伤害变化,可用于圣遗物副词条侧重方向的参考
* 可以查看指定角色伤害计算的Buff列表
2022-05-01 05:06:17 +08:00

36 lines
1.0 KiB
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 = [{
check: ({ cons }) => cons < 2,
title: "叄阶杀生樱伤害",
dmg: ({ talent, attr }, dmg) => dmg(talent.e["杀生樱伤害·叁阶"], "e")
}, {
check: ({ cons }) => cons >= 2,
title: "肆阶杀生樱伤害",
dmg: ({ talent, attr }, dmg) => dmg(talent.e["杀生樱伤害·肆阶"], "e")
}, {
title: "Q天狐霆雷伤害",
dmg: ({ talent }, dmg) => dmg(talent.q['天狐霆雷伤害'], "q")
}, {
title: "四段Q总伤害",
dmg: ({ talent }, dmg) => dmg(talent.q['技能伤害'] + talent.q['天狐霆雷伤害'] * 3, 'q')
}];
export const mainAttr = "atk,cpct,cdmg,mastery";
export const buffs = [{
title: `被动天赋:基于元素精通提高杀生樱伤害[eDmg]%`,
data: {
"eDmg": ({ attr, calc }) => calc(attr.mastery) * 0.15
}
}, {
check: ({ cons }) => cons >= 4,
title: "4命效果杀生樱命中敌人后提高雷伤[dmg]%",
data: {
dmg: 20
}
}, {
cons: 6,
title: "6命效果杀生樱无视敌人[eDef]%防御",
data: {
eDef: 60
}
}];