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

93 lines
2.8 KiB
JavaScript
Raw Normal View History

export const details = [{
title: '附魔普攻第一段激化伤害',
dmg: ({ talent }, dmg) => dmg(talent.a['一段伤害'], 'a', '超激化')
},{
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')
}
}, {
title: '3枚光幕单段伤害',
dmg: ({ talent, calc, attr }, { basic }) => {
const td = talent.e['1枚光幕攻击伤害2']
const em = calc(attr.mastery)
const atk = calc(attr.atk)
return basic(td[0] * 0.5558 * atk / 100 + td[1] * 0.5558 * em / 100, 'e')
}
}, {
title: '3枚光幕单段激化伤害',
dmg: ({ talent, calc, attr }, { basic }) => {
const td = talent.e['1枚光幕攻击伤害2']
const em = calc(attr.mastery)
const atk = calc(attr.atk)
return basic(td[0] * 0.5558 * atk / 100 + td[1] * 0.5558 * 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 = {
q: false,
e:true
}
export const buffs = [ {
title: '艾尔海森被动基于元素精通提升EQ伤害[eDmg]%',
data: {
eDmg: ({ calc, attr }) => Math.min(100, (calc(attr.mastery) ) * 0.12),
qDmg: ({ calc, attr }) => Math.min(100, (calc(attr.mastery) ) * 0.12),
}
},{
title: '艾尔海森二命每1枚产生的琢光镜将使元素精通提升40点默认3层',
cons: 2,
data: {
mastery: 120
}
},{check: ({ params }) => params.q === false,
title: '艾尔海森四命每1枚产生的琢光镜将使草元素伤害提升10%默认3层,不加成Q',
cons: 4,
data: {
dmg: 30
}
},{check: ({ params }) => params.q === false,
title: '艾尔海森六命暴击率提升10%暴击伤害提升70%,不加成Q',
cons: 6,
data: {
cpct: 10,
cdmg:70
}
}]