miao-plugin/resources/meta-sr/character/罗刹/calc.js
2023-11-01 04:07:47 +08:00

46 lines
1.2 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, calc, attr }, { heal }) => heal(calc(attr.atk) * talent.e['攻击力百分比'] + talent.e['固定生命值'])
}, {
title: '终结技伤害',
dmg: ({ talent }, dmg) => dmg(talent.q['技能伤害'], 'q')
}, {
title: '天赋治疗量',
dmg: ({ talent, calc, attr }, { heal }) => heal(calc(attr.atk) * talent.t['攻击力百分比'] + talent.t['固定生命值'])
}, {
title: '行迹额外治疗量',
dmg: ({ calc, attr }, { heal }) => heal(calc(attr.atk) * 0.07 + 93)
}, {
title: '2命护盾量',
cons: 2,
dmg: ({ calc, attr }, { shield }) => shield(calc(attr.atk) * 0.18 + 240)
}]
export const defDmgIdx = 1
export const mainAttr = 'atk,cpct,cdmg'
export const buffs = [{
title: '罗刹1命结界中我方全体攻击力提高[atkPct]%',
cons: 1,
data: {
atkPct: 20
}
}, {
title: '罗刹2命指定治疗目标生命值小于等于50%时治疗量提高30%',
cons: 2,
data: {
heal: 30
}
}, {
title: '罗刹6命使敌方全属性抗性降低20%',
cons: 6,
data: {
kx: 20
}
}]
export const createdBy = 'Aluxes'