miao-plugin/resources/meta-gs/character/闲云/calc.js

60 lines
1.9 KiB
JavaScript
Raw Normal View History

2023-12-22 14:45:20 +00:00
export const details = [{
2023-12-22 14:03:36 +00:00
title: '仙力助推下落攻击伤害提升值',
2024-01-30 22:43:41 +00:00
dmg: ({ attr, cons }) => {
2023-12-22 14:03:36 +00:00
return {
2024-01-30 22:43:41 +00:00
avg: cons < 2 ? Math.min(attr.atk * 2, 9000) : Math.min(attr.atk * 4, 18000)
2023-12-22 14:03:36 +00:00
}
}
2024-01-30 22:43:41 +00:00
}, {
title: 'E释放伤害',
dmg: ({ talent }, dmg) => dmg(talent.e['技能伤害'], 'e')
}, {
title: 'E一段跳冲击波伤害',
2023-12-22 14:03:36 +00:00
params: { btt: 1 },
2024-01-30 22:43:41 +00:00
dmg: ({ talent }, dmg) => dmg(talent.e['闲云冲击波伤害'][0], 'a3')
}, {
title: 'E二段跳冲击波伤害',
2023-12-22 14:03:36 +00:00
params: { btt: 2 },
2024-01-30 22:43:41 +00:00
dmg: ({ talent }, dmg) => dmg(talent.e['闲云冲击波伤害'][1], 'a3')
}, {
title: 'E三段跳冲击波伤害',
2023-12-22 14:03:36 +00:00
params: { btt: 3 },
2024-01-30 22:43:41 +00:00
dmg: ({ talent }, dmg) => dmg(talent.e['闲云冲击波伤害'][2], 'a3')
}, {
title: 'Q释放伤害',
dmg: ({ talent }, dmg) => dmg(talent.q['技能伤害'], 'q')
}, {
title: 'Q释放治疗量',
dmg: ({ attr, talent }, { heal }) => heal(talent.q['治疗量2'][0] * attr.atk / 100 + talent.q['治疗量2'][1])
}, {
title: 'Q持续治疗量',
dmg: ({ attr, talent }, { heal }) => heal(talent.q['持续治疗量2'][0] * attr.atk / 100 + talent.q['持续治疗量2'][1])
2023-12-22 14:03:36 +00:00
}]
export const defDmgIdx = 0
2024-01-30 22:43:41 +00:00
export const mainAttr = 'atk,cpct,cdmg,heal'
2023-12-22 14:03:36 +00:00
2023-12-22 14:45:20 +00:00
export const buffs = [{
2023-12-22 14:03:36 +00:00
title: '闲云天赋Q后下落攻击坠地冲击造成的伤害提升[a3Plus]',
sort: 9,
data: {
2024-01-30 22:43:41 +00:00
a3Plus: ({ attr, cons }) => cons < 2 ? Math.min(attr.atk * 2, 9000) : Math.min(attr.atk * 4, 18000)
2023-12-22 14:03:36 +00:00
}
2024-01-30 22:43:41 +00:00
}, {
title: '闲云2命施放E后攻击力提升[atkPct]%',
2023-12-22 14:03:36 +00:00
cons: 2,
data: {
atkPct: 20
}
2024-01-30 22:43:41 +00:00
}, {
check: ({ params }) => params.btt !== undefined,
2023-12-22 14:03:36 +00:00
title: '闲云6命施展了[buffCount]次步天梯,闲云冲击波的暴击伤害提升[a3Cdmg]%',
cons: 6,
data: {
2024-01-30 22:43:41 +00:00
buffCount: ({ params }) => params.btt,
a3Cdmg: ({ params }) => (5 / 3) * Math.pow(params.btt, 3) - (5 / 2) * Math.pow(params.btt, 2) + (95 / 6) * params.btt
2023-12-22 14:03:36 +00:00
}
2023-12-22 14:45:20 +00:00
}]
2023-12-22 14:03:36 +00:00
2024-01-30 22:43:41 +00:00
export const createdBy = 'liangshi'