miao-plugin/resources/meta/character/艾尔海森/calc.js
panganqi 422b782cae
增加妮露蒸发伤害,妮露组队伤害,修复海哥小bug (#507)
* 修复海哥伤害中的小错误

修复海哥伤害中的小错误

* 妮露组队伤害(蒸发版),种子版后续更新

种子版没怎么研究配队,后面再更

* 增加妮露单人蒸发伤害

单纯加了两个蒸发
2023-03-08 01:44:22 +08:00

95 lines
2.8 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普攻第一段激化',
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] * atk / 100 + td[1] * 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] * 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 = {
q: false,
e: true
}
export const buffs = [{
title: '艾尔海森被动基于元素精通提升EQ伤害[eDmg]%',
data: {
eDmg: ({ calc, attr }) => Math.min(100, (calc(attr.mastery)) * 0.1),
qDmg: ({ calc, attr }) => Math.min(100, (calc(attr.mastery)) * 0.1)
}
}, {
title: '海森2命每1枚产生的琢光镜将使元素精通提升50点默认3层',
cons: 2,
data: {
mastery: 150
}
}, {
check: ({ params }) => params.q === false,
title: '海森4命每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
}
}]