miao-plugin/resources/meta/character/久岐忍/calc.js
yoimiya-kokomi 1f41823f17 修正部分角色的伤害计算错误:蒸发、久岐忍治疗
`#角色持有率` 增加提示说明
`#圣遗物列表` 展示个数提升至28
部分页面样式调整及提示优化
2022-06-22 06:07:12 +08:00

29 lines
894 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每跳治疗",
showDetail: true,
dmg: ({ talent, calc, attr }, { heal }) => {
let ec = talent.e['越祓草轮治疗量2'];
return heal(calc(attr.hp) * ec[0] / 100 + ec[1] * 1 + calc(attr.mastery) * 0.75)
}
}, {
title: "Q每跳伤害",
dmg: ({ talent, calc, attr }, { basic }) => basic(talent.q['单次伤害'] * calc(attr.hp) / 100, 'q')
}];
export const mainAttr = "hp,atk,cpct,cdmg,mastery";
export const buffs = [{
title: "久岐忍被动生命低于50%时提高治疗加成15%",
data: {
heal: 15
}
}, {
title: "久岐忍被动:基于元素精通提高治疗量[healNum],伤害[ePlus]",
data: {
healNum: ({ attr, calc }) => calc(attr.mastery) * 0.75,
ePlus: ({ attr, calc }) => calc(attr.mastery) * 0.25
}
}];