miao-plugin/resources/meta/character/班尼特/calc.js
yoimiya-kokomi 769e98ecad * #角色面板 伤害计算新增行秋、班尼特
* `#喵喵日历` 的一些样式微调
* 底层升级:抽象了部分公共组件为tpl模板以提高复用度,css改为less处理
2022-05-11 05:54:01 +08:00

41 lines
980 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: "点赞攻击力提升",
dmg: ({ attr, talent, cons }) => {
let baseAtk = attr.atk.base;
let pct = talent.q['攻击力加成比例'];
if (cons >= 1) {
pct += 20;
}
return {
avg: baseAtk * pct / 100
}
}
}, {
title: "Q+点E总伤害",
dmg: ({ attr, talent, cons }, dmg) => {
let eDmg = dmg(talent.e['点按伤害'], 'e'),
qDmg = dmg(talent.q['技能伤害'], 'q');
return {
avg: eDmg.avg + qDmg.avg,
dmg: eDmg.dmg + qDmg.dmg
}
}
}, {
title: "点赞每跳治疗",
dmg: ({ attr, calc, talent }, { heal }) => heal(talent.q['持续治疗2'][0] * calc(attr.hp) / 100 + talent.q['持续治疗2'][1] * 1)
}];
export const defDmgIdx = 1;
export const mainAttr = "atk,hp,cpct,cdmg";
export const buffs = [{
cons: 1,
title: "班尼特1命Q攻击力提升比例提高20%",
}, {
cons: 6,
title: "班尼特6命获得15%火伤加成",
data: {
dmg: 15
}
}];