miao-plugin/resources/meta-sr/character/娜塔莎/calc.js

52 lines
1.6 KiB
JavaScript
Raw Normal View History

export const details = [{
title: '普攻伤害',
dmg: ({ talent }, dmg) => dmg(talent.a['技能伤害'], 'a')
}, {
title: '战技治疗量',
dmg: ({ talent, calc, attr }, { heal }) => heal(calc(attr.hp) * talent.e['治疗·百分比生命'] + talent.e['治疗·固定值'])
}, {
title: '战技治疗量(目标生命<=30%)',
params: { tBuff: true },
dmg: ({ talent, calc, attr }, { heal }) => heal(calc(attr.hp) * talent.e['治疗·百分比生命'] + talent.e['治疗·固定值'])
}, {
title: '终结技治疗量',
2023-10-31 20:07:47 +00:00
dmg: ({ talent, calc, attr }, { heal }) => heal(calc(attr.hp) * talent.q['百分比生命'] + talent.q['固定值'])
}, {
title: '终结技治疗量(目标生命<=30%)',
params: { tBuff: true },
2023-10-31 20:07:47 +00:00
dmg: ({ talent, calc, attr }, { heal }) => heal(calc(attr.hp) * talent.q['百分比生命'] + talent.q['固定值'])
}, {
title: '1命治疗量',
params: { tBuff: true },
dmg: ({ calc, attr }, { heal }) => heal(calc(attr.hp) * 0.15 + 400)
}, {
title: '2命持续治疗量',
params: { tBuff: true },
dmg: ({ calc, attr }, { heal }) => heal(calc(attr.hp) * 0.06 + 160)
}]
export const defDmgIdx = 1
export const mainAttr = 'atk,cpct,cdmg,hp'
export const buffs = [{
title: '娜塔莎6命',
cons: 6,
data: {
aPlus: ({ calc, attr }) => calc(attr.hp) * 0.4
}
}, {
title: '天赋-生机焕发对生命值小于等于30%的目标提供治疗时治疗量提高50%',
check: ({ params }) => params.tBuff === true,
data: {
heal: 50
}
}, {
title: '行迹-医者治疗量提高10%',
tree: 2,
data: {
heal: 10
}
}]
2023-10-31 20:07:47 +00:00
export const createdBy = 'Aluxes'