miao-plugin/resources/meta/character/胡桃/calc.js
yoimiya-kokomi 9bea49cc96 #喵喵帮助增加对自定义配置文件的支持
* 已有配置文件可更名为help-cfg.js,防止后续更新冲突,后续会支持更多配置项
* 在默认配置中增加部分新帮助命令
`#喵喵日历`现在可通过`#日历 #日历列表`触发
修正胡桃E伤害计算错误
2022-06-29 04:30:34 +08:00

30 lines
857 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, attr }, dmg) => dmg(talent.a["重击伤害"], "a2")
}, {
title: "半血开E重击蒸发",
dmg: ({ talent, attr }, dmg) => dmg(talent.a["重击伤害"], "a2", "zf")
}, {
title: "半血开E后Q",
dmg: ({ talent, attr }, dmg) => dmg(talent.q["低血量时技能伤害"], "q")
}];
export const defDmgIdx = 1;
export const mainAttr = "hp,atk,cpct,cdmg,mastery";
export const buffs = [{
title: "蝶引来生开E获得[atkPlus]点攻击力加成",
data: {
atkPlus: ({ talent, attr, calc }) => {
return Math.min(talent.e['攻击力提高'] * calc(attr.hp) / 100, attr.atk.base * 4);
}
}
}, {
title: `胡桃被动半血获得33%火伤加成`,
data: {
"dmg": 33
}
}, {
title: "元素精通:蒸发融化伤害提高[zf]%",
mastery: "zf,rh"
}];