miao-plugin/resources/meta/character/迪奥娜/calc.js
yoimiya-kokomi 658217ee8f * #喵喵设置 支持设置 面板查询 的功能开关
* `#喵喵版本` 使用图片展示更新信息
* 页面版权信息展示Yunzai及喵喵版本号
* `#角色面板` 伤害计算增加 迪奥娜ⁿᵉʷ、安柏ⁿᵉʷ、凯亚ⁿᵉʷ
2022-05-22 21:10:10 +08:00

36 lines
1003 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['猫爪伤害'] * 5, 'e')
}, {
title: "长按E总伤害",
dmg: ({ talent, attr, calc }, { shield }) =>
shield(talent.e['护盾基础吸收量2'][0] * calc(attr.hp) / 100 + talent.e['护盾基础吸收量2'][1] * 1)
}, ({ cons }) => {
return {
title: `${cons === 6 ? "半血" : ""}Q每跳治疗`,
dmg: ({ talent, calc, attr }, { heal }) =>
heal(talent.q['持续治疗量2'][0] * calc(attr.hp) / 100 + talent.q['持续治疗量2'][1] * 1)
}
}];
export const mainAttr = "atk,hp,cpct,cdmg";
export const buffs = [{
title: "迪奥娜天赋长按E获得75%护盾吸收量加成",
data: {
shield: 75
}
}, {
title: "迪奥娜2命猫爪冻冻造成的伤害提高15%护盾吸收量提高15%",
cons: 2,
data: {
eDmg: 15,
shield: 15
}
}, {
title: "迪奥娜6命生命值低于50%时受治疗加成提升30%",
cons: 6,
data: {
heal: 30
}
}];