miao-plugin/resources/meta-sr/character/星·存护/calc.js
2024-05-13 23:42:38 +08:00

45 lines
1.3 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, attr }, { basic }) => {
let atkTd = talent.a['技能伤害']
let defTd = cons >= 1 ? 0.25 : 0
return basic(atkTd * attr.atk + defTd * attr.def, 'a')
}
}, {
title: '强化普攻扩散伤害',
dmg: ({ talent, cons, attr }, { basic }) => {
let atkTd = talent.a2['技能伤害'] + talent.a2['相邻目标伤害'] * 2
let defTd = cons >= 1 ? 0.5 * 3 : 0
return basic(atkTd * attr.atk + defTd * attr.def, 'a')
}
}, {
title: '终结技伤害',
dmg: ({ talent, attr }, { basic }) => {
let atkTd = talent.q['攻击力倍率']
let defTd = talent.q['防御力倍率']
return basic(atkTd * attr.atk + defTd * attr.def, 'q')
}
}, {
title: '天赋护盾量',
dmg: ({ talent, attr, cons }, { shield }) => {
let extraDefTd = cons >= 2 ? 0.02 : 0
let extraConstTd = cons >= 2 ? 27 : 0
let defTd = extraDefTd + talent.t['百分比防御']
let constTd = extraConstTd + talent.t['固定值']
return shield(defTd * attr.def + constTd)
}
}]
export const defDmgIdx = 3
export const mainAttr = 'atk,cpct,cdmg,def'
export const buffs = [{
title: '开拓者6命提高防御力[defPct]%',
cons: 6,
data: {
defPct: 30
}
}]
export const createdBy = 'Aluxes'