miao-plugin/resources/meta-gs/character/娜维娅/calc_auto.js
2024-02-12 05:33:03 +08:00

109 lines
3.2 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: '0消耗典仪式晶火',
dmg: ({ talent }, dmg) => dmg(talent.e['玫瑰晶弹基础伤害'], 'e')
},{
title: '3消耗典仪式晶火',
params: { jp: 3 },
dmg: ({ talent }, dmg) => dmg(talent.e['玫瑰晶弹基础伤害'] * 2 , 'e')
},{
title: '6消耗典仪式晶火',
params: { jp: 6 },
dmg: ({ talent }, dmg) => dmg(talent.e['玫瑰晶弹基础伤害'] * 2 , 'e')
},{
title: '如霰澄天的鸣礼伤害',
dmg: ({ talent }, dmg) => dmg(talent.q['技能伤害'], 'q')
},{
title: '支援炮击伤害',
dmg: ({ talent }, dmg) => dmg(talent.q['支援炮击伤害'], 'q')
},{
title: '娜芙夜琴EAAA冲AA两轮',
params: { jp: 6 , team: true },
dmg: ({ talent }, dmg) => {
let a1 = dmg(talent.a['一段伤害'], 'a')
let a2 = dmg(talent.a['二段伤害'], 'a')
let a3 = dmg(talent.a['三段伤害'], 'a')
let e = dmg(talent.e['玫瑰晶弹基础伤害'] * 2 , 'e')
let e_Arkhe = dmg(talent.e['流涌之刃伤害'], 'e')
return {
dmg: e.dmg * 2 + e_Arkhe.dmg + 2 * ( 2 * a1.dmg + 2 * a2.dmg + a3.dmg ) ,
avg: e.avg * 2 + e_Arkhe.avg + 2 * ( 2 * a1.avg + 2 * a2.avg + a3.avg )
}
}
}]
export const defDmgIdx = 5
export const mainAttr = 'atk,cpct,cdmg'
export const buffs = [{
check: ({ params }) => params.jp > 3 ,
title: '典仪式晶火:消耗[_count]枚弹片将使本次射击造成的伤害额外提升[eDmg]%',
data: {
_count: ({ params }) => params.jp ,
eDmg: ({ params }) => ( params.jp - 3 ) * 15
}
},{
title: '娜维娅天赋:施放典仪式晶火后娜维娅的普攻,重击,下落攻击造成的伤害提升[aDmg]%',
data: {
aDmg: 40,
a2Dmg: 40,
a3Dmg: 40
}
},{
title: '娜维娅天赋:队伍中存在三位火雷冰水元素角色,攻击力提升[atkPct]%',
data: {
atkPct: 40
}
},{
check: ({ params }) => params.jp !== undefined ,
title: '娜维娅2命施放典仪式晶火时消耗「裂晶弹片」使本次典仪式晶火的暴击率提升[eCpct]%',
cons: 2,
data: {
eCpct : ({ params }) => Math.min( 36 , params.jp * 12 )
}
},{
title: '娜维娅4命被如霰澄天的鸣礼命中的敌人抗性降低[kx]%',
cons: 4,
data: {
kx: 20
}
},{
check: ({ params }) => params.jp > 3 ,
title: '娜维娅6命消耗[_count]枚弹片,使典仪式晶火的暴击伤害提升[eCdmg]%',
cons: 6,
data: {
_count: ({ params }) => params.jp ,
eCdmg : ({ params }) => Math.min( 135 , ( params.jp - 3 ) * 45 )
}
}, {
check: ({ params }) => params.team === true ,
title: '夜兰:获得[dmg]%增伤',
data: {
dmg: 35
}
}, {
check: ({ params , cons }) => ( cons < 1 ) && params.team === true ,
title: '0命芙宁娜获得[dmg]%增伤',
data: {
dmg: 52.5
}
}, {
check: ({ params , cons }) => ( ( cons < 2 && cons >= 1 ) && params.team === true ) ,
title: '1命芙宁娜获得[dmg]%增伤',
data: {
dmg: 70
}
}, {
check: ({ params , cons }) => ( cons >= 2 && params.team === true ) ,
title: '2命芙宁娜获得[dmg]%增伤',
data: {
dmg: 100
}
}, {
check: ({ params , artis }) => params.team === true && artis.昔日宗室之仪 !== 4 ,
title: '宗室琴:增加[atkPct]%攻击力',
data: {
atkPct: 20
}
}]
export const createdBy = 'liangshi'