miao-plugin/resources/meta/character/夜兰/calc_auto.js
panganqi 72daeac477
自动根据当前命座匹配队友命座,在单人伤害栏增加组队伤害 (#334)
* add team dmg

* add auto team calc

* Update calc_auto.js

* 增加妮露丰穰之核伤害

增加妮露丰穰之核伤害

* Create calc.js

* 增加散兵专武数据

* 余响改为按期望计算
2022-12-04 03:47:23 +08:00

123 lines
3.7 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: { q: false,team:false },
dmg: ({ talent, attr, calc }, { basic }) => basic(calc(attr.hp) * talent.e['技能伤害'] / 100, 'e')
}, {
title: 'E络命丝蒸发',
params: { q: false,team:false },
dmg: ({ talent, attr, calc }, { basic }) => basic(calc(attr.hp) * talent.e['技能伤害'] / 100, 'e', '蒸发')
}, {
title: 'Q协同单段伤害',
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次连携',
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
let q = basic(calc(attr.hp) * (talent.q['玄掷玲珑伤害'] / 3 / 100), 'q',)
return {
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双蒸',
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 q = basic(calc(attr.hp) * (talent.q['玄掷玲珑伤害'] / 3 / 100), 'q',)
let a = basic(calc(attr.hp) * talent.a['破局矢伤害']*1.56 / 100, 'a2')
return {
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'
export const defParams = {
q: true,
team:true
}
export const buffs = [{
title: '夜兰被动有4个不同元素类型角色时夜兰生命值上限提高30%',
data: {
hpPct: 30
}
}, {
title: '夜兰4命E络命丝爆发提高生命值满Buff下提高40%',
cons: 4,
data: {
hpPct: 40
}
}, {
title: '夜兰被动Q持续过程中满层Buff下提高伤害50%',
data: {
dmg: ({ params }) => params.q ? 50 : 0
}
}, {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,
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']