From 2f9518b1115de716398f175c4441e9111ad2b9d4 Mon Sep 17 00:00:00 2001 From: yoimiya-kokomi <592981798@qq.com> Date: Fri, 30 Sep 2022 07:38:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E6=AD=A5=E5=A2=9E=E5=8A=A0=E8=B5=9B?= =?UTF-8?q?=E8=AF=BA=E4=BC=A4=E5=AE=B3=E8=AE=A1=E7=AE=97=EF=BC=8C=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BE=85=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/meta/character/赛诺/calc.js | 53 +++++++++++++++++++++++++ resources/meta/weapon/catalyst/calc.js | 6 +++ resources/meta/weapon/claymore/calc.js | 6 +++ resources/meta/weapon/polearm/calc.js | 15 +++++++ resources/meta/weapon/sword/calc.js | 6 +++ 5 files changed, 86 insertions(+) create mode 100644 resources/meta/character/赛诺/calc.js diff --git a/resources/meta/character/赛诺/calc.js b/resources/meta/character/赛诺/calc.js new file mode 100644 index 00000000..4cd3a8c0 --- /dev/null +++ b/resources/meta/character/赛诺/calc.js @@ -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 + } +}] diff --git a/resources/meta/weapon/catalyst/calc.js b/resources/meta/weapon/catalyst/calc.js index d386cd03..908f3e5f 100644 --- a/resources/meta/weapon/catalyst/calc.js +++ b/resources/meta/weapon/catalyst/calc.js @@ -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 + } } } } diff --git a/resources/meta/weapon/claymore/calc.js b/resources/meta/weapon/claymore/calc.js index 2e4ac0aa..3e8a750f 100644 --- a/resources/meta/weapon/claymore/calc.js +++ b/resources/meta/weapon/claymore/calc.js @@ -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 + } } } } diff --git a/resources/meta/weapon/polearm/calc.js b/resources/meta/weapon/polearm/calc.js index a114c429..100062dd 100644 --- a/resources/meta/weapon/polearm/calc.js +++ b/resources/meta/weapon/polearm/calc.js @@ -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) + } } } } diff --git a/resources/meta/weapon/sword/calc.js b/resources/meta/weapon/sword/calc.js index 14b500fd..6e0ddbc8 100644 --- a/resources/meta/weapon/sword/calc.js +++ b/resources/meta/weapon/sword/calc.js @@ -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 + } } } }