miao-plugin/resources/meta-sr/character/银枝/calc.js
2023-11-18 02:58:57 +08:00

62 lines
1.6 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: '普攻伤害',
dmg: ({ talent }, dmg) => dmg(talent.a['技能伤害'], 'a')
}, {
title: '战技伤害',
dmg: ({ talent }, dmg) => dmg(talent.e['技能伤害'], 'e')
}, {
title: '终结技伤害',
params: { q: true },
dmg: ({ talent }, dmg) => dmg(talent.q['技能伤害'], 'q')
}, {
title: '强化终结技总伤害',
params: { q: true },
dmg: ({ talent }, dmg) => {
const td = talent.q2['技能伤害'] + talent.q2['额外随机伤害'] * 6
return dmg(td, 'q')
}
}]
export const defDmgIdx = 3
export const mainAttr = 'atk,cpct,cdmg'
export const buffs = [{
title: '行迹-勇气对当前生命百分比小于等于50%的敌人目标造成的伤害提高[dmg]%',
trees: 2,
data: {
dmg: 15
}
}, {
title: '天赋-崇高的客体:[_count]层【升格】提升暴击率[cpct]%',
data: {
_count: ({ cons }) => cons < 4 ? 10 : 12,
cpct: ({ cons }) => cons < 4 ? 25 : 30
}
}, {
title: '银枝1命[_count]层【升格】提升暴击伤害[cdmg]%',
cons: 1,
data: {
_count: ({ cons }) => cons < 4 ? 10 : 12,
cdmg: ({ cons }) => cons < 4 ? 40 : 48
}
}, {
title: '银枝2命释放终结技命中3名及以上敌人时攻击力提高[atkPct]%',
cons: 2,
check: ({ params }) => params.q === true,
data: {
atkPct: 40
}
}, {
title: '银枝4命天赋【升格】可叠加上限提高至12层',
cons: 4
}, {
title: '银枝6命释放终结技时无视敌方目标[ignore]%的防御力',
cons: 6,
check: ({ params }) => params.q === true,
data: {
ignore: 30
}
}]
export const createdBy = 'Aluxes'