miao-plugin/resources/meta/character/林尼/calc.js

65 lines
1.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: { a2: true },
dmg: ({ talent }, dmg) => dmg(talent.a['隐具魔术箭伤害'], 'a2')
}, {
title: '礼花术弹伤害',
params: { catcathat: true },
dmg: ({ talent, attr, calc }, { basic }) => {
const atk = calc(attr.atk)
const a2dmg = atk * 0.8 + atk * talent.a['礼花术弹伤害'] / 100
return basic(a2dmg, 'a2')
}
}, {
title: '满层E伤害',
dmg: ({ talent }, dmg) => {
let eDmg = dmg(talent.e['技能伤害'], 'e')
let ePlusDmg = dmg(talent.e['技能伤害加成'] * 5, 'e')
return {
dmg: eDmg.dmg + ePlusDmg.dmg,
avg: eDmg.avg + ePlusDmg.avg
}
}
}, {
title: 'Q总伤害',
dmg: ({ talent }, dmg) => dmg(talent.q['技能伤害'] + talent.q['引爆礼花伤害'], 'q')
}]
export const defDmgIdx = 0
export const mainAttr = 'atk,cpct,cdmg'
export const buffs = [{
check: ({ params }) => params.catcathat === true,
title: '天赋-惊险演出基于攻击力的80%,提高怪笑猫猫帽造成的伤害'
}, {
title: '天赋-完场喝彩:队伍有三名火元素角色时,对处于火元素影响下的敌人造成的伤害提升[dmg]%',
data: {
dmg: 100
}
}, {
title: '双火共鸣:攻击力提高[atkPct]%',
data: {
atkPct: 25
}
}, {
title: '林尼2命在场6秒后暴击伤害提高60%',
cons: 2,
data: {
cdmg: 60
}
}, {
title: '林尼4命重击命中敌人后降低敌人火元素抗性20%',
cons: 4,
data: {
kx: 20
}
}, {
check: ({ params }) => params.a2 === true,
title: '林尼6命发射隐具魔术箭时额外发射一枚礼花术弹·重奏造成礼花术弹80%的伤害',
sort: 9,
cons: 6,
data: {
a2Plus: ({ talent, attr, calc }) => talent.a['礼花术弹伤害'] / 100 * calc(attr.atk) * 0.8
}
}]