miao-plugin/resources/meta-gs/character/艾尔海森/calc.js

97 lines
2.8 KiB
JavaScript
Raw Normal View History

export const details = [{
2023-02-05 18:14:38 +00:00
title: 'E普攻第一段激化',
dmg: ({ talent }, dmg) => dmg(talent.a['一段伤害'], 'a', '蔓激化')
2023-02-05 18:14:38 +00:00
}, {
title: 'E突进激化',
params: { e: true, q: false },
dmg: ({ talent, calc, attr }, { basic }) => {
const td = talent.e['突进攻击伤害2']
const em = calc(attr.mastery)
const atk = calc(attr.atk)
return basic(td[0] * atk / 100 + td[1] * em / 100, 'e', 'spread')
}
}, {
2023-02-05 18:14:38 +00:00
title: '3枚光幕单段',
dmg: ({ talent, calc, attr }, { basic }) => {
const td = talent.e['1枚光幕攻击伤害2']
const em = calc(attr.mastery)
const atk = calc(attr.atk)
2023-02-05 18:14:38 +00:00
return basic(td[0] * atk / 100 + td[1] * em / 100, 'e')
}
}, {
2023-02-05 18:14:38 +00:00
title: '3枚光幕单段激化',
dmg: ({ talent, calc, attr }, { basic }) => {
const td = talent.e['1枚光幕攻击伤害2']
const em = calc(attr.mastery)
const atk = calc(attr.atk)
2023-02-05 18:14:38 +00:00
return basic(td[0] * atk / 100 + td[1] * em / 100, 'e', 'spread')
}
}, {
title: 'Q激化总伤-4段',
params: { e: false, q: true },
dmg: ({ talent, calc, attr }, { basic }) => {
const td = talent.q['单次伤害2']
const em = calc(attr.mastery)
const atk = calc(attr.atk)
let q = basic(td[0] * atk / 100 + td[1] * em / 100, 'q', 'spread')
let q_spread = basic(td[0] * atk / 100 + td[1] * em / 100, 'q')
return {
dmg: q.dmg * 2 + q_spread.dmg * 2,
avg: q.avg * 2 + q_spread.avg * 2
}
}
}, {
title: 'Q激化总伤-10段',
params: { e: false, q: true },
dmg: ({ talent, calc, attr }, { basic }) => {
const td = talent.q['单次伤害2']
const em = calc(attr.mastery)
const atk = calc(attr.atk)
let q_spread = basic(td[0] * atk / 100 + td[1] * em / 100, 'q', 'spread')
let q = basic(td[0] * atk / 100 + td[1] * em / 100, 'q')
return {
dmg: q.dmg * 6 + q_spread.dmg * 4,
avg: q.avg * 6 + q_spread.avg * 4
}
}
}]
export const defDmgIdx = 3
export const mainAttr = 'atk,cpct,cdmg,mastery'
export const defParams = {
2023-02-05 18:14:38 +00:00
q: false,
e: true,
mArtisDiffCount: 2
}
2023-02-05 18:14:38 +00:00
export const buffs = [{
title: '艾尔海森被动基于元素精通提升EQ伤害[eDmg]%',
sort: 9,
data: {
2023-02-05 18:14:38 +00:00
eDmg: ({ calc, attr }) => Math.min(100, (calc(attr.mastery)) * 0.1),
qDmg: ({ calc, attr }) => Math.min(100, (calc(attr.mastery)) * 0.1)
}
2023-02-05 18:14:38 +00:00
}, {
title: '海森2命每1枚产生的琢光镜将使元素精通提升50点默认3层',
cons: 2,
data: {
2023-01-18 23:24:57 +00:00
mastery: 150
}
2023-02-05 18:14:38 +00:00
}, {
check: ({ params }) => params.q === false,
title: '海森4命每1枚产生的琢光镜将使草元素伤害提升10%默认3层,不加成Q',
cons: 4,
data: {
dmg: 30
}
2023-02-05 18:14:38 +00:00
}, {
check: ({ params }) => params.q === false,
title: '艾尔海森六命暴击率提升10%暴击伤害提升70%,不加成Q',
cons: 6,
data: {
cpct: 10,
2023-02-05 18:14:38 +00:00
cdmg: 70
}
}, 'spread']