miao-plugin/resources/meta-gs/character/克洛琳德/calc_auto.js
2024-05-25 20:12:07 +08:00

106 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: { blPct: 0.5 },
dmg: ({ talent }, dmg) => dmg(talent.e['驰猎伤害2'][1], 'a')
}, {
title: 'E后穿透射击激化',
params: { blPct: 0.5 },
dmg: ({ talent }, dmg) => dmg(talent.e['驰猎伤害2'][1], 'a', 'aggravate')
}, {
title: 'E贯夜·契令伤害',
dmg: ({ talent }, dmg) => dmg(talent.e['贯夜伤害2'][2], 'a')
}, {
title: 'E贯夜·契令激化',
dmg: ({ talent }, dmg) => dmg(talent.e['贯夜伤害2'][2], 'a', 'aggravate')
}, {
title: 'Q完整伤害',
dmg: ({ talent }, dmg) => {
let q1 = dmg(talent.q['技能伤害2'][0], 'q')
return {
dmg: q1.dmg * 5,
avg: q1.avg * 5
}
}
}, {
title: '克皇 AAAE一轮激化',
params: { team: true, blPct: 0.5 },
dmg: ({ talent }, dmg) => {
let a1 = dmg(talent.e['驰猎伤害2'][1], 'a')
let a2 = dmg(talent.e['驰猎伤害2'][1], 'a', 'aggravate')
let e1 = dmg(talent.e['贯夜伤害2'][2], 'a', 'aggravate')
return {
dmg: a1.dmg * 2 + a2.dmg + e1.dmg,
avg: a1.avg * 2 + a2.avg + e1.avg
}
}
}, {
title: '克皇 Q完整激化',
params: { team: true },
dmg: ({ talent }, dmg) => {
let q1 = dmg(talent.q['技能伤害2'][0], 'q')
let q2 = dmg(talent.q['技能伤害2'][0], 'q', 'aggravate')
return {
dmg: q1.dmg * 3 + q2.dmg * 2,
avg: q1.avg * 3 + q2.avg * 2
}
}
}]
export const defParams = ({ weapon }) => weapon.name === '海渊终曲' ? { BondOfLife: 35 * 3 + 25, blPct: 1 } : { BondOfLife: 35 * 3, blPct: 1 }// 生命之契在此调整,请勿超过200,默认生命之契未计入队友治疗转化
export const defDmgIdx = 4
export const mainAttr = 'atk,cpct,cdmg,mastery,dmg'
export const buffs = [{
title: '克洛琳德天赋:触发雷元素反应普通攻击与残光将终造成的伤害提升[aPlus]',
data: {
aPlus: ({ attr, cons }) => Math.min((attr.atk * (cons >= 2 ? 30 : 20) / 100 * 3), (cons >= 2 ? 2700 : 1800)),
qPlus: ({ attr, cons }) => Math.min((attr.atk * (cons >= 2 ? 30 : 20) / 100 * 3), (cons >= 2 ? 2700 : 1800))
}
}, {
title: '克洛琳德天赋:生命之契的数值提升或降低时,暴击率提升[cpct]% ',
data: {
cpct: 10 * 2
}
}, {
title: '克洛琳德4命[buffCount]%最大生命值的生命之契使残光将终造成的伤害提升[qDmg]',
cons: 4,
data: {
buffCount: ({ talent, params, weapon }) => Math.min(params.blPct * (talent.q['赋予生命之契'] + params.BondOfLife), 200),
qDmg: ({ talent, params, weapon }) => Math.min((params.blPct * (talent.q['赋予生命之契'] + params.BondOfLife) * 2), 200)
}
}, {
title: '克洛琳德6命施放狩夜之巡后暴击率提高[cpct]%,暴击伤害提高[cdmg]%',
cons: 6,
data: {
cpct: 10,
cdmg: 70
}
}, {
check: ({ cons, params }) => (cons >= 2 && params.team === true),
title: '千夜2命纳西妲增加精通[mastery],减防[enemyDef]%',
data: {
mastery: 40,
enemyDef: 30
}
}, {
check: ({ cons, params }) => (cons < 2 && params.team === true),
title: '千夜0命纳西妲增加精通[mastery]',
data: {
mastery: 40
}
}, {
check: ({ params }) => params.team === true,
sort: 7,
title: '纳西妲-净善摄受明论Q范围内在场角色增加精通[mastery]',
data: {
mastery: 250
}
}, {
check: ({ params }) => params.team === true,
title: '钟离:降低敌人[kx]%全抗',
data: {
kx: 20
}
}]
export const createdBy = 'liangshi'