mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-18 05:30:32 +00:00
72daeac477
* add team dmg * add auto team calc * Update calc_auto.js * 增加妮露丰穰之核伤害 增加妮露丰穰之核伤害 * Create calc.js * 增加散兵专武数据 * 余响改为按期望计算
123 lines
3.7 KiB
JavaScript
123 lines
3.7 KiB
JavaScript
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']
|