From ffd1bd76701aa114b3c4ee079bc1ae49ce9b4ce6 Mon Sep 17 00:00:00 2001 From: liangshi <1142607614@qq.com> Date: Sat, 21 Sep 2024 19:09:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E5=B0=BC=E5=A5=87=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/meta-gs/character/基尼奇/calc.js | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 resources/meta-gs/character/基尼奇/calc.js diff --git a/resources/meta-gs/character/基尼奇/calc.js b/resources/meta-gs/character/基尼奇/calc.js new file mode 100644 index 00000000..62479533 --- /dev/null +++ b/resources/meta-gs/character/基尼奇/calc.js @@ -0,0 +1,52 @@ +export const details = [{ + title: '迴猎贯鳞炮伤害', + params: { Scalespiker: true }, + dmg: ({ talent }, dmg) => dmg(talent.e['迴猎贯鳞炮伤害'], 'e,nightsoul') +}, { + check: ({ cons }) => cons >= 2, + title: '2命首次猎贯鳞炮', + params: { Scalespiker: true, cons2: true }, + dmg: ({ talent }, dmg) => dmg(talent.e['迴猎贯鳞炮伤害'], 'e,nightsoul') +}, { + title: 'Q释放伤害', + dmg: ({ talent }, dmg) => dmg(talent.q['技能伤害'], 'q,nightsoul') +}, { + title: 'Q龙息伤害', + dmg: ({ talent }, dmg) => dmg(talent.q['龙息伤害'], 'q,nightsoul') +}, { + title: 'Q龙息激化', + dmg: ({ talent }, dmg) => dmg(talent.q['龙息伤害'], 'q,nightsoul', 'spread') +}] + +export const defParams = { Nightsoul: true } +export const mainAttr = 'atk,cpct,cdmg' + +export const buffs = [{ + check: ({ params }) => params.Scalespiker === true, + title: '焰灵的契约:2层buff使迴猎贯鳞炮造成的伤害提高[ePlus]', + data: { + ePlus: ({ calc , attr }) => calc(attr.atk) * 320 / 100 * 2 + } +}, { + check: ({ params }) => params.Scalespiker === true, + title: '基尼奇1命:迴猎贯鳞炮的暴击伤害提升[eCdmg]%', + cons: 1, + data: { + eCdmg: 100 + } +}, { + title: '基尼奇2命:元素战技命中敌人使其草元素抗性降低[kx]%,首次猎贯鳞炮的伤害提升[eDmg]%', + cons: 2, + data: { + kx: 30, + eDmg: ({ params }) => params.cons2 === true ? 100 : 0 + } +}, { + title: '基尼奇4命:向伟大圣龙致意造成的伤害提升[qDmg]%', + cons: 4, + data: { + qDmg: 70 + } +}] + +export const createdBy = 'liangshi'