miao-plugin/resources/meta-gs/character/菲米尼/calc.js
2023-11-07 04:34:05 +08:00

68 lines
2.3 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', 'phy')
}, {
title: 'E伤害',
dmg: ({ talent }, dmg) => dmg(talent.e['上挑攻击伤害'], 'e')
}, {
title: '0阶E伤害',
dmg: ({ talent }, { dynamic }) => dynamic(talent.e['零阶高压粉碎伤害'], 'e', { dynamicDmg: 40, dynamicCpct: 15 })
}, {
title: '4阶E伤害',
dmg: ({ talent }, { dynamic }) => dynamic(talent.e['四阶高压粉碎伤害'], 'e', { dynamicPhy: 40, dynamicCpct: 15 }, 'phy')
}, {
title: 'Q伤害',
dmg: ({ talent }, dmg) => dmg(talent.q['技能伤害'], 'q')
}, {
title: 'Q状态·冰伤流4轮EEA',
check: ({ calc, attr }) => calc(attr.phy) < 58,
dmgKey: 'q',
dmg: ({ talent }, dmg) => {
let normalEDmg = dmg(talent.e['上挑攻击伤害'], 'e')
let e2Dmg = dmg.dynamic(talent.e['零阶高压粉碎伤害'], 'e', { dynamicDmg: 40, dynamicCpct: 15 })
let a1Dmg = dmg(talent.a['一段伤害'], 'a', 'phy')
return {
dmg: (normalEDmg.dmg + e2Dmg.dmg + a1Dmg.dmg) * 4,
avg: (normalEDmg.avg + e2Dmg.avg + a1Dmg.avg) * 4
}
}
}, {
title: 'Q状态·物理流3轮EAAAA',
check: ({ calc, attr }) => calc(attr.phy) >= 58,
dmgKey: 'q',
dmg: ({ talent }, dmg) => {
let normalEDmg = dmg(talent.e['上挑攻击伤害'], 'e')
let a1Dmg = dmg(talent.a['一段伤害'], 'a', 'phy')
let a2Dmg = dmg(talent.a['二段伤害'], 'a', 'phy')
let e2Dmg = dmg.dynamic(talent.e['四阶高压粉碎伤害'], 'e', { dynamicPhy: 40, dynamicCpct: 15 }, 'phy')
return {
dmg: (normalEDmg.dmg + a1Dmg.dmg * 2 + a2Dmg.dmg + e2Dmg.dmg) * 3,
avg: (normalEDmg.avg + a1Dmg.avg * 2 + a2Dmg.avg + e2Dmg.avg) * 3
}
}
}]
export const defDmgKey = 'q'
export const mainAttr = 'atk,cpct,cdmg'
export const buffs = [{
title: '天赋-并流式冷凝机关触发碎冰反应后使浮冰增压·高压粉碎造成的伤害提高40%'
}, {
title: '菲米尼1命浮冰增压·高压粉碎的暴击率提高15%',
cons: 1
}, {
title: '菲米尼4命触发冰冻、碎冰、超导反应后满层Buff提升攻击力[atkPct]%',
cons: 4,
data: {
atkPct: 18
}
}, {
title: '菲米尼6命触发冰冻、碎冰、超导反应后满层Buff提升暴击伤害[cdmg]%',
cons: 6,
data: {
cdmg: 36
}
}]
export const createdBy = 'Aluxes'