miao-plugin/resources/meta/character/夜兰/calc_auto.js

128 lines
3.7 KiB
JavaScript
Raw Normal View History

2022-12-07 06:22:39 +00:00
export const details = [{
title: 'E络命丝伤害',
2022-12-07 06:22:39 +00:00
params: { q: false, team: false },
dmg: ({ talent, attr, calc }, { basic }) => basic(calc(attr.hp) * talent.e['技能伤害'] / 100, 'e')
}, {
title: 'E络命丝蒸发',
2022-12-07 06:22:39 +00:00
params: { q: false, team: false },
dmg: ({ talent, attr, calc }, { basic }) => basic(calc(attr.hp) * talent.e['技能伤害'] / 100, 'e', '蒸发')
}, {
2022-12-07 06:22:39 +00:00
title: 'Q协同单段伤害',
2022-12-07 06:22:39 +00:00
params: { q: true, team: false },
dmg: ({ talent, attr, calc, cons }, { basic }) => {
return basic(calc(attr.hp) * (talent.q['玄掷玲珑伤害'] / 3 / 100), 'q')
}
}, {
check: ({ cons }) => cons < 6,
dmgKey: 'q',
title: '夜莫万EE双蒸7次连携',
2022-12-07 06:22:39 +00:00
params: { q: true, team: true },
dmg: ({ talent, attr, calc, cons }, { basic }) => {
let e_v = basic(calc(attr.hp) * talent.e['技能伤害'] / 100, 'e', '蒸发')
let erming = basic(calc(attr.hp) * (14 / 100), 'q')
let count = cons * 1 >= 2 ? 1 : 0
2022-12-07 06:22:39 +00:00
let q = basic(calc(attr.hp) * (talent.q['玄掷玲珑伤害'] / 3 / 100), 'q')
return {
2022-12-07 06:22:39 +00:00
dmg: 2 * e_v.dmg + 4 * erming.dmg * count + 21 * q.dmg,
avg: 2 * e_v.avg + 4 * erming.avg * count + 21 * q.avg
}
}
}, {
check: ({ cons }) => cons >= 6,
dmgKey: 'q',
title: '夜莫万6命EaEaaaa双蒸',
2022-12-07 06:22:39 +00:00
params: { q: true, team: true },
dmg: ({ talent, attr, calc, cons }, { basic }) => {
let e_v = basic(calc(attr.hp) * talent.e['技能伤害'] / 100, 'e', '蒸发')
let erming = basic(calc(attr.hp) * (14 / 100), 'q')
2022-12-07 06:22:39 +00:00
let q = basic(calc(attr.hp) * (talent.q['玄掷玲珑伤害'] / 3 / 100), 'q')
let a = basic(calc(attr.hp) * talent.a['破局矢伤害'] * 1.56 / 100, 'a2')
return {
2022-12-07 06:22:39 +00:00
dmg: 2 * e_v.dmg + 2 * erming.dmg + 15 * q.dmg + 5 * a.dmg,
avg: 2 * e_v.avg + 2 * erming.avg + 15 * q.avg + 5 * a.avg
}
}
}]
export const defDmgKey = 'q'
export const mainAttr = 'hp,cpct,cdmg,mastery'
export const defParams = {
2022-12-07 06:22:39 +00:00
q: true,
team: true
}
export const buffs = [{
title: '夜兰被动有3个不同元素类型角色时夜兰生命值上限提高18%',
data: {
hpPct: 18
}
}, {
title: '夜兰4命E络命丝爆发提高生命值满Buff下提高40%',
cons: 4,
data: {
hpPct: 40
}
}, {
title: '夜兰被动Q持续过程中满层Buff下提高伤害50%',
data: {
dmg: ({ params }) => params.q ? 50 : 0
}
2022-12-07 06:22:39 +00:00
}, {
check: ({ cons, params }) => cons <= 1 && params.team === true,
title: '精1苍古0命万叶获得[dmg]%增伤(苍古普攻16增伤),增加[atkPct]%攻击,减抗[kx]%',
data: {
aDmg: 16,
a2Dmg: 16,
a3Dmg: 16,
dmg: 40,
atkPct: 20,
kx: 40
}
}, {
check: ({ cons, params }) => ((cons < 6 && cons > 1) && params.team === true),
title: '精1苍古2命万叶获得[dmg]%增伤(苍古普攻16增伤),增加[atkPct]%攻击,减抗[kx]%,精通[mastery]',
data: {
aDmg: 16,
a2Dmg: 16,
a3Dmg: 16,
dmg: 48,
atkPct: 20,
kx: 40,
mastery: 200
}
}, {
check: ({ cons, params }) => (cons >= 6 && params.team === true),
title: '精5苍古6命万叶获得[dmg]%增伤(苍古普攻32增伤),增加[atkPct]%攻击,减抗[kx]%,精通[mastery]',
data: {
aDmg: 32,
a2Dmg: 32,
a3Dmg: 32,
dmg: 48,
atkPct: 40,
kx: 40,
mastery: 200
}
}, {
check: ({ cons, params }) => (cons >= 2 && params.team === true),
title: '千夜教官满命莫娜:获得[dmg]%增伤,双水,暴击[cpct]%,精通[mastery]',
data: {
dmg: 60,
vaporize: 15,
2022-12-07 06:22:39 +00:00
hpPct: 25,
cpct: 15,
mastery: 168
}
}, {
check: ({ cons, params }) => (cons < 2 && params.team === true),
title: '千夜教官0命莫娜获得[dmg]%增伤,双水,精通[mastery]',
data: {
dmg: 60,
hpPct: 25,
mastery: 168
}
}, 'vaporize']