miao-plugin/resources/meta/character/八重神子/calc.js
Aluxes d110a8c8b5
fix一些伤害计算和数据,新增琳妮特伤害计算 (#636)
* fix:星铁日历显示

* fix:神子 提纳里 林尼 赛诺 伤害计算

* fix:部分武器特效数据

* 新增琳妮特及烟绯四命伤害计算

* fix:星铁数据
2023-09-04 11:17:27 +08:00

56 lines
1.6 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: '叄阶杀生樱伤害',
dmg: ({ talent }, dmg) => dmg(talent.e['杀生樱伤害·叁阶'], 'e')
}, {
check: ({ cons }) => cons >= 2,
dmgKey: 'e',
title: '肆阶杀生樱伤害',
dmg: ({ talent }, dmg) => dmg(talent.e['杀生樱伤害·肆阶'], 'e')
}, {
check: ({ cons }) => cons < 2,
title: '叄阶杀生樱激化伤害',
dmg: ({ talent }, dmg) => dmg(talent.e['杀生樱伤害·叁阶'], 'e', 'aggravate')
}, {
check: ({ cons }) => cons >= 2,
title: '肆阶杀生樱激化伤害',
dmg: ({ talent }, dmg) => dmg(talent.e['杀生樱伤害·肆阶'], 'e', 'aggravate')
}, {
title: '四段Q总伤害',
dmg: ({ talent }, dmg) => dmg(talent.q['技能伤害'] + talent.q['天狐霆雷伤害'] * 3, 'q')
}, {
title: '四段Q总激化伤害',
dmg: ({ talent }, dmg) => {
let q1j = dmg(talent.q['技能伤害'], 'q', '超激化')
let q2j = dmg(talent.q['天狐霆雷伤害'], 'q', '超激化')
return {
dmg: q1j.dmg + q2j.dmg * 3,
avg: q1j.avg + q2j.avg * 3
}
}
}]
export const mainAttr = 'atk,cpct,cdmg,mastery'
export const defDmgKey = 'e'
export const buffs = [{
title: '被动天赋:基于元素精通提高杀生樱伤害[eDmg]%',
sort: 5,
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
}
}]