miao-plugin/resources/meta-gs/character/阿贝多/calc.js

47 lines
1.3 KiB
JavaScript
Raw Normal View History

export const details = [{
2022-08-07 18:26:25 +00:00
title: 'E阳华伤害',
talent: 'e',
dmg: ({ talent }, dmg) => dmg(talent.e['技能伤害'], 'e')
}, {
2022-08-07 18:26:25 +00:00
title: 'E刹那之花伤害',
2023-11-12 21:06:03 +00:00
dmg: ({ talent, attr }, { basic }) => {
let ret = talent.e['刹那之花伤害'] * attr.def / 100 + attr.e.plus
2022-08-07 18:26:25 +00:00
return basic(ret, 'e')
}
}, {
2022-08-07 18:26:25 +00:00
title: 'E刹那之花(打半血)',
params: {
half: true
},
2023-11-12 21:06:03 +00:00
dmg: ({ talent, attr }, { basic }) => {
let ret = talent.e['刹那之花伤害'] * attr.def / 100 + attr.e.plus
2022-08-07 18:26:25 +00:00
return basic(ret, 'e')
}
}, {
2022-08-07 18:26:25 +00:00
title: 'Q总伤害',
check: ({ cons }) => cons < 2,
params: { buff: 0 },
dmg: ({ talent }, dmg) => dmg(talent.q['爆发伤害'] + talent.q['生灭之花伤害'] * 7, 'q')
}, {
2022-08-07 18:26:25 +00:00
title: '满BuffQ总伤害',
cons: 2,
dmg: ({ talent }, dmg) => dmg(talent.q['爆发伤害'] + talent.q['生灭之花伤害'] * 7, 'q')
2022-08-07 18:26:25 +00:00
}]
export const defDmgIdx = 1
2022-08-07 18:26:25 +00:00
export const mainAttr = 'def,atk,cpct,cdmg'
export const buffs = [{
2022-08-07 18:26:25 +00:00
title: '阿贝多被动刹那之花对生命值低于50%的敌人造成的伤害提高25%',
data: {
eDmg: ({ params }) => params.half ? 25 : 0
}
}, {
2023-12-28 15:12:49 +00:00
title: '阿贝多2命4层Buff提高Q [qPlus]伤害',
cons: 2,
sort: 9,
data: {
2023-11-12 21:06:03 +00:00
qPlus: ({ params, attr }) => params.buff === 0 ? 0 : attr.def * 1.2
}
}]