miao-plugin/resources/meta/character/神里绫人/calc_auto.js

120 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: '瞬水剑三段伤害',
params: {
q: 0,
team: false
},
dmg: ({ talent }, dmg) => dmg(talent.e['三段瞬水剑伤害'], 'a')
}, {
title: '瞬水剑三段蒸发',
params: {
q: 1,
team: false
},
dmg: ({ talent }, dmg) => dmg(talent.e['三段瞬水剑伤害'], 'a', 'vaporize')
}, {
title: '绫夜万班瞬水剑三段蒸发',
params: {
q: 1,
team: true
},
dmg: ({ talent }, dmg) => dmg(talent.e['三段瞬水剑伤害'], 'a', 'vaporize')
}, {
title: 'Q每段伤害',
params: {
q: 1,
team: false
},
dmg: ({ talent }, dmg) => dmg(talent.q['水花剑伤害'], 'q')
}]
export const defDmgIdx = 2
export const mainAttr = 'hp,atk,cpct,cdmg,mastery'
export const defParams = {
q: 1,
team: true
}
export const buffs = [{
title: '绫人元素爆发普通攻击伤害提升伤害提升20%',
data: {
dmg: 20
}
}, {
cons: 1,
title: '绫人1命对于生命值低于或等于50%的敌人瞬水剑造成的伤害提升40%',
data: {
dmg: 40
}
}, {
cons: 2,
title: '绫人2命3层浪闪以上时提高50%生命值',
data: {
hpPct: ({ params }) => params.q ? 0 : 50
}
}, {
check: ({ cons }) => cons < 2,
sort: 9,
title: '4层浪闪提高瞬水剑伤害[aPlus]',
data: {
aPlus: ({ attr, calc, talent }) => calc(attr.hp) * talent.e['浪闪伤害值提高'] / 100 * 4
}
}, {
cons: 2,
sort: 9,
title: '绫人2命5层浪闪提高瞬水剑伤害[aPlus]',
data: {
aPlus: ({ attr, calc, talent }) => calc(attr.hp) * talent.e['浪闪伤害值提高'] / 100 * 5
}
}, {
check: ({ params }) => params.team === true,
title: '风鹰宗室班:增加[atkPlus]点攻击力与[atkPct]%攻击力',
data: {
atkPct: 20,
atkPlus: 1202.35
}
}, {
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: ({ params }) => params.team === true,
title: '夜兰:获得[dmg]%增伤,[hpPct]%生命值,双水25%生命值',
data: {
dmg: 35,
hpPct: 65
}
}, 'vaporize']