miao-plugin/resources/meta-gs/character/纳西妲/calc_auto.js

118 lines
3.5 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: 'E长按伤害',
params: { e: true, q: false, team: false },
dmg: ({ talent }, dmg) => dmg(talent.e['长按伤害'], 'e')
}, {
title: '灭净三业伤害',
params: { e2: true, q: false, team: false },
dmg: ({ talent, attr }, { basic }) => {
const td = talent.e['灭净三业伤害2']
const em = attr.mastery
const atk = attr.atk
return basic(td[0] * atk / 100 + td[1] * em / 100, 'e')
}
}, {
title: '开Q灭净三业伤害',
params: { e2: true, team: false },
dmg: ({ talent, attr }, { basic }) => {
const td = talent.e['灭净三业伤害2']
const em = attr.mastery
const atk = attr.atk
return basic(td[0] * atk / 100 + td[1] * em / 100, 'e')
}
}, {
title: '灭净三业·蔓激化',
params: { e2: true, q: false, team: false },
dmg: ({ talent, attr }, { basic }) => {
const td = talent.e['灭净三业伤害2']
const em = attr.mastery
const atk = attr.atk
return basic(td[0] * atk / 100 + td[1] * em / 100, 'e', 'spread')
}
}, {
title: '开Q灭净三业·蔓激化',
params: { e2: true, team: false },
dmg: ({ talent, attr }, { basic }) => {
const td = talent.e['灭净三业伤害2']
const em = attr.mastery
const atk = attr.atk
return basic(td[0] * atk / 100 + td[1] * em / 100, 'e', 'spread')
}
}, {
title: '提八纳皇开Q灭净三业·蔓激化',
params: { e2: true, team: true },
dmg: ({ talent, attr }, { basic }) => {
const td = talent.e['灭净三业伤害2']
const em = attr.mastery
const atk = attr.atk
return basic(td[0] * atk / 100 + td[1] * em / 100, 'e', 'spread')
}
}, {
title: '六命特殊E伤害',
cons: 6,
dmg: ({ attr }, { basic }) => basic(attr.atk * 2.00 + attr.mastery * 4.00, 'e')
}, {
title: '六命特殊E伤害·蔓激化',
cons: 6,
dmg: ({ attr }, { basic }) => basic(attr.atk * 2.00 + attr.mastery * 4.00, 'e', 'spread')
}]
export const defParams = {
q: true,
team: true,
mArtisDiffCount: 2
}
export const defDmgIdx = 5
export const mainAttr = 'atk,mastery,cpct,cdmg'
export const buffs = [{
title: '草神1命火元素队友额外计入1位',
cons: 1
}, {
title: '草神2命激化相关反应降低敌人防御力30%',
cons: 2,
data: {
enemyDef: 30
}
}, {
title: '草神4命E4个敌人提升精通160',
cons: 4,
data: {
mastery: 160
}
}, {
check: ({ cons, params }) => (cons <= 4 && params.team === true),
title: '提八皇组队buff双草教官精1终末皇女[mastery],[atkPct]%攻击力',
data: {
mastery: 320,
atkPct: 20
}
}, {
check: ({ cons, params }) => (cons > 4 && params.team === true),
title: '提八皇组队buff双草教官精5终末皇女4命提纳里[mastery],[atkPct]%攻击力',
data: {
mastery: 540,
atkPct: 40
}
}, {
title: '草神被动开Q元素精通提升[mastery]',
sort: 7,
data: {
mastery: ({ attr, params }) => (params.q === false ? 0 : 1) * Math.min(250, attr.mastery * 0.25)
}
}, {
title: '草神被动:基于元素精通提升灭净三业伤害[eDmg]%,暴击率[eCpct]%',
sort: 9,
data: {
eDmg: ({ attr, params }) => (params.e ? 0 : 1) * Math.min(80, (attr.mastery - 200) * 0.1),
eCpct: ({ attr, params }) => (params.e ? 0 : 1) * Math.min(24, (attr.mastery - 200) * 0.03)
}
}, {
title: '草神Q开Q提升灭净三业伤害[eDmg]%',
data: {
eDmg: ({ cons, talent, params }) => (params.q === false ? 0 : 1) *
(cons >= 1 ? talent.q['火2伤害提升'] : talent.q['火1伤害提升'])
}
}, 'spread']