miao-plugin/resources/meta-sr/character/景元/calc.js

60 lines
1.7 KiB
JavaScript
Raw Normal View History

2023-05-23 19:30:30 +00:00
export const details = [{
title: '普攻伤害',
2023-05-23 19:30:30 +00:00
dmg: ({ talent }, dmg) => dmg(talent.a['技能伤害'], 'a')
}, {
title: '战技伤害',
2023-05-23 19:30:30 +00:00
dmg: ({ talent }, dmg) => dmg(talent.e['技能伤害'], 'e')
}, {
title: '终结技伤害',
2023-05-23 19:30:30 +00:00
dmg: ({ talent }, dmg) => dmg(talent.q['技能伤害'], 'q')
}, {
title: '10层神君单体伤害',
2023-10-10 18:49:38 +00:00
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 })
2023-10-10 18:49:38 +00:00
return {
dmg: t1dmg.dmg + t2dmg.dmg + t3dmg.dmg + t4dmg.dmg * 7,
avg: t1dmg.avg + t2dmg.avg + t3dmg.avg + t4dmg.avg * 7
}
}
2023-05-23 19:30:30 +00:00
}]
2023-11-17 17:04:44 +00:00
export const defParams = { tArtisBuffCount: 8 }
2023-10-10 18:49:38 +00:00
export const defDmgKey = 't'
2023-05-23 19:30:30 +00:00
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层',
2023-10-10 18:49:38 +00:00
cons: 6
2023-05-23 19:30:30 +00:00
}, {
title: '行迹-破阵攻击段数大于等于6段则其下回合的暴击伤害提高25%',
tree: 1,
data: {
2023-10-10 18:49:38 +00:00
tCdmg: 25
2023-05-23 19:30:30 +00:00
}
}, {
title: '行迹-遣将施放战技后暴击率提升10%',
tree: 3,
data: {
cpct: 10
}
}]