miao-plugin/resources/meta/character/雷电将军/calc.js

55 lines
1.3 KiB
JavaScript
Raw Normal View History

export const details = [{
2022-08-07 18:26:25 +00:00
title: '零愿力Q首刀',
params: {
type: 1,
num: 0
},
2022-08-07 18:26:25 +00:00
dmg: ({ talent, attr }, dmg) => dmg(talent.q['梦想一刀基础伤害'], 'q')
}, {
2022-08-07 18:26:25 +00:00
title: '满愿力Q首刀',
params: {
type: 0,
num: 60
},
2022-08-07 18:26:25 +00:00
dmg: ({ talent, attr }, dmg) => dmg(talent.q['梦想一刀基础伤害'], 'q')
}, {
2022-08-07 18:26:25 +00:00
title: '满愿力Q后重击',
params: {
type: 1,
num: 60
},
2022-08-07 18:26:25 +00:00
dmg: ({ talent, attr }, dmg) => dmg(talent.q['重击伤害'], 'q')
}]
export const defParams = {
num: 60,
type: 0
2022-08-07 18:26:25 +00:00
}
2022-08-07 18:26:25 +00:00
export const defDmgIdx = 1
export const mainAttr = 'atk,cpct,cdmg,recharge'
export const buffs = [
{
2022-08-07 18:26:25 +00:00
title: '恶曜开眼开E元素爆发伤害提升[qDmg]%',
data: {
2022-08-07 18:26:25 +00:00
qDmg: ({ talent }) => talent.e['元素爆发伤害提高'] * 90
}
}, {
2022-08-07 18:26:25 +00:00
title: '梦想真说Q满愿力获得[qPct]%大招倍率加成',
data: {
2022-08-07 18:26:25 +00:00
qPct: ({ talent, params }) => talent.q['愿力加成'][params.type || 0] * params.num
}
}, {
check: ({ cons }) => cons >= 2,
2022-08-07 18:26:25 +00:00
title: '雷神2命大招无视敌人[qIgnore]%防御力',
data: {
2022-08-07 18:26:25 +00:00
qIgnore: 60
}
}, {
2022-08-18 10:13:42 +00:00
title: '雷神被动:基于元素充能获得[dmg]%雷伤加成',
data: {
2022-08-18 10:13:42 +00:00
dmg: ({ attr }) => Math.max(attr.recharge.base + attr.recharge.plus - 100, 0) * 0.4
}
2022-08-07 18:26:25 +00:00
}]