miao-plugin/resources/meta-sr/character/景元/calc.js
2023-11-18 01:04:44 +08:00

60 lines
1.7 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')
}, {
title: '战技伤害',
dmg: ({ talent }, dmg) => dmg(talent.e['技能伤害'], 'e')
}, {
title: '终结技伤害',
dmg: ({ talent }, dmg) => dmg(talent.q['技能伤害'], 'q')
}, {
title: '10层神君单体伤害',
check: ({ cons }) => cons < 6,
dmgKey: 't',
dmg: ({ talent }, dmg) => dmg(talent.t['技能伤害'] * 10, 't')
}, {
title: '10层神君单体伤害',
check: ({ cons }) => cons >= 6,
dmgKey: 't',
dmg: ({ talent }, { dynamic }) => {
const dynamicEnemyDmg = 12
let t1dmg = dynamic(talent.t['技能伤害'], 't')
let t2dmg = dynamic(talent.t['技能伤害'], 't', { dynamicEnemyDmg })
let t3dmg = dynamic(talent.t['技能伤害'], 't', { dynamicEnemyDmg: dynamicEnemyDmg * 2 })
let t4dmg = dynamic(talent.t['技能伤害'], 't', { dynamicEnemyDmg: dynamicEnemyDmg * 3 })
return {
dmg: t1dmg.dmg + t2dmg.dmg + t3dmg.dmg + t4dmg.dmg * 7,
avg: t1dmg.avg + t2dmg.avg + t3dmg.avg + t4dmg.avg * 7
}
}
}]
export const defParams = { tArtisBuffCount: 8 }
export const defDmgKey = 't'
export const mainAttr = 'atk,cpct,cdmg,speed'
export const buffs = [{
title: '景元2命神君行动后普攻战技及终结技的伤害提高20%',
cons: 2,
data: {
aDmg: 20,
eDmg: 20,
qDmg: 20
}
}, {
title: '景元6命神君会使目标陷入易伤状态使伤害提高12%最多3层',
cons: 6
}, {
title: '行迹-破阵攻击段数大于等于6段则其下回合的暴击伤害提高25%',
tree: 1,
data: {
tCdmg: 25
}
}, {
title: '行迹-遣将施放战技后暴击率提升10%',
tree: 3,
data: {
cpct: 10
}
}]