miao-plugin/resources/meta/character/八重神子/calc_auto.js
panganqi 72daeac477
自动根据当前命座匹配队友命座,在单人伤害栏增加组队伤害 (#334)
* add team dmg

* add auto team calc

* Update calc_auto.js

* 增加妮露丰穰之核伤害

增加妮露丰穰之核伤害

* Create calc.js

* 增加散兵专武数据

* 余响改为按期望计算
2022-12-04 03:47:23 +08:00

87 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 && cons >1) && params.team === true),
title: '精5终末6命温迪增加[atkPct]%攻击,减抗[kx]%,精通[mastery]',
data: {
atkPct:40,
kx:60,
mastery:200
}
}, {check: ({ cons,params }) => (cons >= 6 && 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
}
}]