初步增加赛诺伤害计算,数据待验证

This commit is contained in:
yoimiya-kokomi 2022-09-30 07:38:50 +08:00
parent 112f34d5ec
commit 2f9518b111
5 changed files with 86 additions and 0 deletions

View File

@ -0,0 +1,53 @@
/*
* q: 1 - Q状态a伤害
* q: 2 - Q状态E伤害
* q: 3 - Q状态冥祭
* q: 4 - Q状态炮弹
* */
export const details = [{
title: 'Q状态普攻首段',
params: { q: 1 },
dmg: ({ talent }, dmg) => dmg(talent.q['一段伤害'], 'a')
}, {
title: 'Q状态 E伤害',
params: { q: 2 },
dmg: ({ talent }, dmg) => dmg(talent.e['冥祭伤害'], 'e')
}, {
title: 'Q+末途真眼 E伤害',
params: { q: 3 },
dmg: ({ talent }, dmg) => dmg(talent.e['冥祭伤害'], 'e')
}, {
title: 'Q+末途真眼 渡荒之雷',
params: { q: 4 },
dmg: ({ talent }, dmg) => dmg(100, 'e')
}]
export const mainAttr = 'atk,cpct,cdmg,mastery'
export const buffs = [{
title: '赛诺QQ状态下提升元素精通100点',
data: {
mastery: ({ params }) => params.q ? 100 : 0
}
}, {
// 普攻提升雷伤
title: '赛诺2命普攻提高雷伤5层增加50%',
cons: 2,
data: {
dmg: 50
}
}, {
title: '赛诺被动末途真眼状态提升E 35%伤害发射渡荒之类造成100%攻击力伤害',
data: {
ePlus: ({ params }) => [3, 4].includes(params.q) ? 35 : 0
}
}, {
title: '赛诺被动:基于元素精通提升普攻[_aPlus]点伤害值,渡荒之雷提升[_ePlus]伤害值',
data: {
aPlus: ({ attr, calc, params }) => params.q === 1 ? calc(attr.mastery) * 1.5 : 0,
_aPlus: ({ attr, calc, params }) => params.q === 1 ? calc(attr.mastery) * 1.5 : 0,
ePlus: ({ attr, calc, params }) => params.q === 4 ? calc(attr.mastery) / 2.5 : 0,
_ePlus: ({ attr, calc, params }) => params.q === 4 ? calc(attr.mastery) / 2.5 : 0
}
}]

View File

@ -128,6 +128,12 @@ export default function (step) {
mastery: step(24 * 5, 3 * 5),
atkPct: -25
}
},
流浪的晚星: {
title: '基于元素精通提升攻击力[atkPlus]',
data: {
atkPlus: ({ attr, calc, refine }) => step(24)[refine] * calc(attr.mastery) / 100
}
}
}
}

View File

@ -135,6 +135,12 @@ export default function (step) {
refine: {
mastery: step(60)
}
},
玛海菈的水色: {
title: '基于元素精通提升攻击力[atkPlus]',
data: {
atkPlus: ({ attr, calc, refine }) => step(24)[refine] * calc(attr.mastery) / 100
}
}
}
}

View File

@ -120,6 +120,21 @@ export default function (step) {
refine: {
atkPct: step(16)
}
},
赤沙之杖: {
title: '赤沙之杖被动:基于元素精通获得攻击力[_atk1]5层Buff提高攻击力[_atk2]',
data: {
_atk1: ({ attr, calc, refine }) => step(52)[refine] * calc(attr.mastery) / 100,
_atk2: ({ attr, calc, refine }) => step(28 * 3)[refine] * calc(attr.mastery) / 100,
atkPlus: ({ attr, calc, refine }) => step(52 + 28 * 3)[refine] * calc(attr.mastery) / 100
}
},
风信之锋: {
title: '触发元素反应提升攻击力[atkPct]%, 精通[mastery]',
refine: {
atkPct: step(12),
mastery: step(48)
}
}
}
}

View File

@ -173,6 +173,12 @@ export default function (step) {
refine: {
mastery: step(60)
}
},
圣显之钥: {
title: '基于生命提升元素精通,满层提升[mastery]',
data: {
mastery: ({ attr, calc, refine }) => step(0.12)[refine] * calc(attr.hp) / 100
}
}
}
}