miao-plugin/resources/meta-sr/character/黄泉/calc.js

71 lines
2.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: '普攻伤害',
dmg: ({ talent, cons }, dmg) => {
return cons < 6 ? dmg(talent.a['技能伤害'], 'a') : dmg(talent.a['技能伤害'], 'a,q')
}
}, {
title: '战技伤害·主目标',
dmg: ({ talent, cons }, dmg) => {
return cons < 6 ? dmg(talent.e['单体伤害'], 'e') : dmg(talent.e['单体伤害'], 'e,q')
}
}, {
title: '战技伤害·副目标',
dmg: ({ talent, cons }, dmg) => {
return cons < 6 ? dmg(talent.e['相邻目标伤害'], 'e') : dmg(talent.e['相邻目标伤害'], 'e,q')
}
}, {
title: '终结技伤害·对单',
params: { q: true },
dmg: ({ talent, trees }, dmg) => {
let extraTd = trees['103'] ? 1.5 : 0
return dmg(talent.q['单体伤害'] + extraTd, 'q')
}
}, {
title: '终结技伤害·对无花目标',
params: { q: true },
dmg: ({ talent }, dmg) => dmg(talent.q['相邻目标伤害'], 'q')
}]
export const mainAttr = 'atk,cpct,cdmg,dmg'
export const defDmgIdx = 3
export const buffs = [{
title: '天赋:终结技期间使敌方全属性抗性降低[kx]%',
check: ({ params }) => params.q === true,
data: {
kx: ({ talent }) => talent.t['全属性抗性降低'] * 100
}
}, {
title: '行迹-奈落黄泉普攻、战技、终结技造成的伤害为原伤害的160%',
tree: 2,
data: {
multi: 60
}
}, {
title: '行迹-雷心:黄泉造成的伤害提高[dmg]%终结技额外造成150%攻击力的伤害(仅在对单时计算)',
tree: 3,
data: {
dmg: 90
}
}, {
title: '黄泉1命对处于负面状态敌方造成伤害时暴击率提高[cpct]%',
cons: 1,
data: {
cpct: 18
}
}, {
title: '黄泉4命使敌方陷入终结技易伤状态受到终结技伤害提高[qEnemydmg]%',
cons: 4,
data: {
qEnemydmg: 8
}
}, {
title: '黄泉6命造成的终结技伤害全属性抗性穿透提高[kx]%,释放的普攻、战技伤害同时视为终结技伤害',
cons: 6,
data: {
kx: 20
}
}]
export const createdBy = 'Aluxes'