mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-29 02:27:26 +00:00
b2253078f8
修正圣遗物详情角色立绘偏移的问题
45 lines
1.6 KiB
JavaScript
45 lines
1.6 KiB
JavaScript
export const details = [{
|
||
title: '普攻伤害',
|
||
dmg: ({ talent, calc, attr }, { basic }) => basic(talent.a['技能伤害'] * calc(attr.hp), 'a')
|
||
}, {
|
||
title: '战技提高生命上限值',
|
||
dmg: ({ talent, calc, attr, cons }) => {
|
||
const c6Plus = cons >= 6 ? 0.06 : 0
|
||
const hpPctData = talent.e['生命提高·百分比生命'] + c6Plus
|
||
return {
|
||
avg: calc(attr.hp) * hpPctData + talent.e['生命提高·固定值']
|
||
}
|
||
}
|
||
}, {
|
||
title: '战技生命回复',
|
||
dmg: ({ talent, calc, attr }, { heal }) => heal(calc(attr.hp) * talent.e['治疗·百分比'] + talent.e['治疗·固定值'])
|
||
}, {
|
||
title: '终结技生命回复',
|
||
dmg: ({ talent, calc, attr }, { heal }) => heal(calc(attr.hp) * talent.q['治疗·百分比生命'] + talent.q['治疗·固定值'])
|
||
}, {
|
||
title: '天赋持续回复',
|
||
dmg: ({ talent, calc, attr }, { heal }) => heal(calc(attr.hp) * talent.t['治疗·百分比生命'] + talent.t['治疗·固定值'])
|
||
}, {
|
||
title: '天赋额外回复',
|
||
dmg: ({ talent, calc, attr }, { heal }) => heal(calc(attr.hp) * talent.t['额外治疗·百分比生命'] + talent.t['额外治疗·固定值'])
|
||
}]
|
||
|
||
export const mainAttr = 'cpct,cdmg,hp'
|
||
export const defDmgIdx = 2
|
||
|
||
export const buffs = [{
|
||
title: '玲可1命:为生命值百分比<=50%的目标提供治疗时,治疗量提高[heal]%',
|
||
cons: 1,
|
||
data: {
|
||
heal: 20
|
||
}
|
||
}, {
|
||
title: '玲可6命:战技提供的生命上限提高效果额外提高,提高[_hpPlus]',
|
||
cons: 6,
|
||
data: {
|
||
_hpPlus: ({ calc, attr }) => calc(attr.hp) * 0.06
|
||
}
|
||
}]
|
||
|
||
export const createdBy = 'Aluxes'
|