mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-26 09:42:09 +00:00
初步增加赛诺伤害计算,数据待验证
This commit is contained in:
parent
112f34d5ec
commit
2f9518b111
53
resources/meta/character/赛诺/calc.js
Normal file
53
resources/meta/character/赛诺/calc.js
Normal 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: '赛诺Q:Q状态下提升元素精通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
|
||||
}
|
||||
}]
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user