miao-plugin/resources/meta/character/钟离/calc.js
yoimiya-kokomi 48e1588af8 * #角色面板 新增 钟离 的伤害计算
* #角色面板支持对治疗量、护盾量的计算与展示
* #角色面板修复冰融化、少女4等buff等buff遗漏或错误导致的伤害计算偏差
2022-05-03 06:32:36 +08:00

39 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 = [{
title: "玉璋护盾量",
talent: "e",
dmg: ({ attr, calc, talent }, { shield }) => shield(talent.e['护盾基础吸收量'] + calc(attr.hp) * talent.e['护盾附加吸收量'] / 100)
}, {
title: "共鸣伤害",
talent: "e",
dmg: ({ talent }, dmg) => dmg(talent.e['岩脊伤害/共鸣伤害'][1], 'e') // 6856
}, {
title: "天星伤害",
talent: "q",
dmg: ({ talent }, dmg) => dmg(talent.q['技能伤害'], 'q')
}];
export const defDmgIdx = 2;
export const mainAttr = "hp,atk,cpct,cdmg";
export const buffs = [{
title: "钟离被动满层Buff下护盾强效提高25%",
data: {
shield: 25
}
}, {
title: "岩系护盾岩系护盾吸收效率150%",
data: {
shieldInc: 50
}
}, {
title: "钟离被动:基于生命值上限,共鸣伤害提高[ePlus],天星伤害提高[qPlus]",
data: {
ePlus: ({ attr, calc }) => calc(attr.hp) * 0.019,
qPlus: ({ attr, calc }) => calc(attr.hp) * 0.33
}
}, {
title: "玉璋护盾降低敌人全抗性20%",
data: {
kx: 20
}
}];