miao-plugin/resources/meta-gs/character/闲云/calc.js
2024-01-31 06:43:41 +08:00

60 lines
1.9 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: ({ attr, cons }) => {
return {
avg: cons < 2 ? Math.min(attr.atk * 2, 9000) : Math.min(attr.atk * 4, 18000)
}
}
}, {
title: 'E释放伤害',
dmg: ({ talent }, dmg) => dmg(talent.e['技能伤害'], 'e')
}, {
title: 'E一段跳冲击波伤害',
params: { btt: 1 },
dmg: ({ talent }, dmg) => dmg(talent.e['闲云冲击波伤害'][0], 'a3')
}, {
title: 'E二段跳冲击波伤害',
params: { btt: 2 },
dmg: ({ talent }, dmg) => dmg(talent.e['闲云冲击波伤害'][1], 'a3')
}, {
title: 'E三段跳冲击波伤害',
params: { btt: 3 },
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])
}]
export const defDmgIdx = 0
export const mainAttr = 'atk,cpct,cdmg,heal'
export const buffs = [{
title: '闲云天赋Q后下落攻击坠地冲击造成的伤害提升[a3Plus]',
sort: 9,
data: {
a3Plus: ({ attr, cons }) => cons < 2 ? Math.min(attr.atk * 2, 9000) : Math.min(attr.atk * 4, 18000)
}
}, {
title: '闲云2命施放E后攻击力提升[atkPct]%',
cons: 2,
data: {
atkPct: 20
}
}, {
check: ({ params }) => params.btt !== undefined,
title: '闲云6命施展了[buffCount]次步天梯,闲云冲击波的暴击伤害提升[a3Cdmg]%',
cons: 6,
data: {
buffCount: ({ params }) => params.btt,
a3Cdmg: ({ params }) => 15 + Math.floor(params.btt / 2) * 20 + Math.floor(params.btt / 3) * 35
}
}]
export const createdBy = 'liangshi'