miao-plugin/resources/meta/character/夜兰/calc.js
yoimiya-kokomi e503488a7e #面板更新命令增加uid合法性校验
`#角色持有率`、`#深渊出场率` 页面细节样式调整
2022-06-07 04:59:47 +08:00

29 lines
800 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: ({ talent, attr, calc }, { basic }) => basic(calc(attr.hp) * talent.a['破局矢伤害'] / 100, 'a2')
}, {
title: "E络命丝伤害",
dmg: ({ talent, attr, calc }, { basic }) => basic(calc(attr.hp) * talent.e['技能伤害'] / 100, 'e')
}, {
title: "Q协同单段伤害",
dmg: ({ talent, attr, calc, cons }, { basic }) => {
return basic(calc(attr.hp) * (talent.q['玄掷玲珑伤害'] / 3 / 100), 'q')
}
}];
export const mainAttr = "hp,cpct,cdmg";
export const buffs = [{
title: "夜兰被动有4个不同元素类型角色时夜兰生命值上限提高30%",
data: {
hpPct: 30
}
}, {
title: "夜兰4命E络命丝爆发提高生命值满Buff下提高40%",
cons: 4,
data: {
hpPct: 40
}
}];