miao-plugin/resources/meta/character/八重神子/calc_auto.js
Nahida 6efdc4c556
增加了胡桃、一斗、可莉的组队伤害计算,修复了八重组队计算的错误 (#388)
* 修复八重组队计算的错误

* 修复八重组队计算的错误

* 增加了胡桃、可莉、一斗的配队计算

* Fix: 胡桃配队计算补上了双水buff

* Adjust: 启用组队的情况下,默认胡桃伤害计算调整为双水配队的重击蒸发伤害
2023-01-07 02:53:29 +08:00

90 lines
2.4 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 = [{
check: ({ cons }) => cons < 2,
dmgKey: 'e',
title: '叄阶杀生樱伤害',
params: { team: false },
dmg: ({ talent, attr }, dmg) => dmg(talent.e['杀生樱伤害·叁阶'], 'e')
}, {
check: ({ cons }) => cons >= 2,
dmgKey: 'e',
title: '肆阶杀生樱伤害',
params: { team: false },
dmg: ({ talent, attr }, dmg) => dmg(talent.e['杀生樱伤害·肆阶'], 'e')
}, {
check: ({ cons }) => cons < 2,
dmgKey: 'e_t',
params: { team: true },
title: '温三雷叄阶杀生樱伤害',
dmg: ({ talent, attr }, dmg) => dmg(talent.e['杀生樱伤害·叁阶'], 'e')
}, {
check: ({ cons }) => cons >= 2,
dmgKey: 'e_t',
params: { team: true },
title: '温三雷肆阶杀生樱伤害',
dmg: ({ talent, attr }, dmg) => dmg(talent.e['杀生樱伤害·肆阶'], 'e')
}, {
title: 'Q天狐霆雷伤害',
params: { team: false },
dmg: ({ talent }, dmg) => dmg(talent.q['天狐霆雷伤害'], 'q')
}, {
title: '温三雷四段Q总伤害',
params: { team: true },
dmg: ({ talent }, dmg) => dmg(talent.q['技能伤害'] + talent.q['天狐霆雷伤害'] * 3, 'q')
}]
export const mainAttr = 'atk,cpct,cdmg,mastery'
export const defDmgKey = 'e'
export const defParams = {
team: true
}
export const buffs = [{
title: '被动天赋:基于元素精通提高杀生樱伤害[eDmg]%',
data: {
eDmg: ({ attr, calc }) => calc(attr.mastery) * 0.15
}
}, {
check: ({ cons }) => cons >= 4,
title: '4命效果杀生樱命中敌人后提高雷伤[dmg]%',
data: {
dmg: 20
}
}, {
cons: 6,
title: '6命效果杀生樱无视敌人[eDef]%防御',
data: {
eDef: 60
}
}, {
check: ({ cons, params }) => ((cons == 6) && params.team === true),
title: '精5终末6命温迪增加[atkPct]%攻击,减抗[kx]%,精通[mastery]',
data: {
atkPct: 40,
kx: 60,
mastery: 200
}
}, {
check: ({ cons, params }) => (cons <= 5 && params.team === true),
title: '精1终末0命温迪增加[atkPct]%攻击,减抗[kx]%,精通[mastery]',
data: {
atkPct: 20,
kx: 40,
mastery: 100
}
}, {
check: ({ params }) => params.team === true,
title: '天空宗室九条:增加[atkPlus]点攻击力,[atkPct]%攻击与[cdmg]%爆伤',
data: {
atkPlus: 794.2,
atkPct: 20,
cdmg: 60
}
}, {
check: ({ params }) => params.team === true,
title: '恶曜开眼开E元素爆发伤害提升[qDmg]%',
data: {
qDmg: 27
}
}]