miao-plugin/resources/meta-sr/character/阮•梅/calc_auto.js

113 lines
3.2 KiB
JavaScript
Raw Normal View History

// 注意天赋击破伤害减伤区为0.9终结技和秘技击破伤害减伤区为1.0
export const details = [{
title: '普攻伤害',
dmg: ({ talent }, dmg) => dmg(talent.a['技能伤害'], 'a')
}, {
title: '20祝福·秘技击破伤害(2韧性怪)',
params: { break: true },
dmg: ({ talent }, { reaction }) => {
return {
avg: reaction('iceBreak').avg / 0.9 * (2 + 2) / 4 * 20
}
}
}, {
title: '20祝福·秘技击破伤害(10韧性怪)',
params: { break: true },
dmg: ({ talent }, { reaction }) => {
return {
avg: reaction('iceBreak').avg / 0.9 * (10 + 2) / 4 * 20
}
}
}, {
title: '终结技击破伤害(2韧性怪)',
params: { break: true, qBuff: true },
dmg: ({ talent }, { reaction }) => {
return {
avg: reaction('iceBreak').avg / 0.9 * (2 + 2) / 4 * talent.q['击破伤害比例']
}
}
}, {
title: '终结技击破伤害(10韧性怪)',
params: { break: true, qBuff: true },
dmg: ({ talent }, { reaction }) => {
return {
avg: reaction('iceBreak').avg / 0.9 * (10 + 2) / 4 * talent.q['击破伤害比例']
}
}
}, {
title: '天赋击破伤害(2韧性怪)',
params: { qBuff: true },
dmg: ({ talent, cons }, { reaction }) => {
const extraBreakTd = cons * 1 >= 6 ? 2 : 0
return {
avg: reaction('iceBreak').avg * (2 + 2) / 4 * talent.t['击破伤害比例'] * (1 + extraBreakTd)
}
}
}, {
title: '天赋击破伤害(10韧性怪)',
params: { qBuff: true },
dmg: ({ talent, cons }, { reaction }) => {
const extraBreakTd = cons * 1 >= 6 ? 2 : 0
return {
avg: reaction('iceBreak').avg * (10 + 2) / 4 * talent.t['击破伤害比例'] * (1 + extraBreakTd)
}
}
}, {
title: '开阮加·普攻超击破伤害',
params: { team: true, qBuff: true, break: true },
dmg: ({ talent }, { reaction }) => {
let cost = 1 * 1.5
return {
avg: reaction('superBreak').avg * cost * 1.6
}
}
}]
export const defDmgIdx = 6
export const mainAttr = 'atk,stance'
export const buffs = [{
title: '行迹-物体呼吸中:我方全体击破特攻提高[stance]%',
tree: 1,
data: {
stance: 20
}
}, {
title: '阮梅终结技:使我方全体全属性抗性穿透提高[kx]%',
check: ({ params }) => params.qBuff === true,
data: {
kx: ({ talent }) => talent.q['抗性穿透提高'] * 100
}
}, {
title: '阮梅1命终结技期间我方全体造成伤害时无视目标[ignore]%防御力',
check: ({ params }) => params.qBuff === true,
cons: 1,
data: {
ignore: 20
}
}, {
title: '阮梅4命敌方目标弱点被击破时自身击破特攻提高[stance]%',
check: ({ params }) => params.break === true,
cons: 4,
data: {
stance: 100
}
}, {
title: '阮梅6命天赋造成的击破伤害倍率额外提高200%',
cons: 6
}, {
title: '6魂钟表匠开拓者提高击破特攻[stance]%场上敌人数量为1时超击破伤害提高60%',
check: ({ params }) => params.team === true,
data: {
stance: 30 + 30 + 300 * 0.15 // 终结技30+钟表匠30+四命转化
}
}, {
title: '加拉赫敌方受到的击破伤害提高13.2%',
check: ({ params }) => params.team === true,
data: {
breakEnemydmg: 13.2
}
}]
export const createdBy = 'Aluxes'