fix部分角色护盾计算

This commit is contained in:
Aluxes 2023-09-23 01:36:21 +08:00
parent c4b280a88e
commit b23c94bf6f
3 changed files with 13 additions and 9 deletions

View File

@ -1,10 +1,12 @@
export const details = [{ export const details = [{
title: '满层E护盾量', title: '满层E护盾量',
dmg: ({ attr, calc, talent }, { shield }) => dmg: ({ attr, calc, talent, cons }, { shield }) => {
shield(calc(attr.hp) * talent.e['护盾基础吸收量2'][0] / 100 + talent.e['护盾基础吸收量2'][1]) const sheildPlus = cons >= 1 ? 1.2 : 1
return shield((calc(attr.hp) * talent.e['护盾基础吸收量2'][0] / 100 + talent.e['护盾基础吸收量2'][1]) * sheildPlus)
}
}, { }, {
title: 'E飞星单伤害', title: 'E飞星单伤害',
dmg: ({ attr, talent }, dmg) => dmg(talent.e['飞星伤害'], 'e') dmg: ({ talent }, dmg) => dmg(talent.e['飞星伤害'], 'e')
}, { }, {
title: 'Q星光弹伤害', title: 'Q星光弹伤害',
dmg: ({ attr, calc, talent }, { basic }) => basic(calc(attr.hp) * talent.q['星光弹伤害'] / 100) dmg: ({ attr, calc, talent }, { basic }) => basic(calc(attr.hp) * talent.q['星光弹伤害'] / 100)
@ -16,7 +18,7 @@ export const buffs = [{
title: '莱依拉1命安眠帷幕护盾的伤害吸收量提高20%', title: '莱依拉1命安眠帷幕护盾的伤害吸收量提高20%',
cons: 1, cons: 1,
data: { data: {
shield: 20 _shield: 20
} }
}, { }, {
title: '莱依拉6命飞星与星光弹造成的伤害提升40%', title: '莱依拉6命飞星与星光弹造成的伤害提升40%',

View File

@ -3,8 +3,11 @@ export const details = [{
dmg: ({ talent }, dmg) => dmg(talent.e['猫爪伤害'] * 5, 'e') dmg: ({ talent }, dmg) => dmg(talent.e['猫爪伤害'] * 5, 'e')
}, { }, {
title: '长按E护盾量', title: '长按E护盾量',
dmg: ({ talent, attr, calc }, { shield }) => dmg: ({ talent, attr, calc, cons }, { shield }) => {
shield(talent.e['护盾基础吸收量2'][0] * calc(attr.hp) / 100 + talent.e['护盾基础吸收量2'][1] * 1) const sheildPlus = cons >= 2 ? 1.15 : 1
return shield((talent.e['护盾基础吸收量2'][0] * calc(attr.hp) / 100 + talent.e['护盾基础吸收量2'][1] * 1) * 1.75 * sheildPlus)
}
}, ({ cons }) => { }, ({ cons }) => {
return { return {
title: `${cons === 6 ? '半血' : ''}Q每跳治疗`, title: `${cons === 6 ? '半血' : ''}Q每跳治疗`,
@ -19,14 +22,14 @@ export const mainAttr = 'atk,hp,cpct,cdmg'
export const buffs = [{ export const buffs = [{
title: '迪奥娜天赋长按E获得75%护盾吸收量加成', title: '迪奥娜天赋长按E获得75%护盾吸收量加成',
data: { data: {
shield: 75 _shield: 75
} }
}, { }, {
title: '迪奥娜2命猫爪冻冻造成的伤害提高15%护盾吸收量提高15%', title: '迪奥娜2命猫爪冻冻造成的伤害提高15%护盾吸收量提高15%',
cons: 2, cons: 2,
data: { data: {
eDmg: 15, eDmg: 15,
shield: 15 _shield: 15
} }
}, { }, {
title: '迪奥娜6命生命值低于50%时受治疗加成提升30%', title: '迪奥娜6命生命值低于50%时受治疗加成提升30%',

View File

@ -12,7 +12,6 @@ export const details = [{
dmg: ({ talent }, dmg) => dmg(talent.q['技能伤害'], 'q') dmg: ({ talent }, dmg) => dmg(talent.q['技能伤害'], 'q')
}] }]
export const defDmgIdx = 2
export const mainAttr = 'hp,atk,cpct,cdmg' export const mainAttr = 'hp,atk,cpct,cdmg'
export const buffs = [{ export const buffs = [{