From 2a776ca4dd48414822e926d46605af3088a6a153 Mon Sep 17 00:00:00 2001 From: Aluxes <39981645+AshenAshes@users.noreply.github.com> Date: Tue, 14 May 2024 23:18:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=83=A8=E5=88=86=E8=A7=92?= =?UTF-8?q?=E8=89=B2=E8=B6=85=E5=87=BB=E7=A0=B4=E4=BC=A4=E5=AE=B3=E8=AE=A1?= =?UTF-8?q?=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/profile/ProfileChange.js | 2 +- resources/meta-sr/artifact/alias.js | 4 +- resources/meta-sr/character/加拉赫/calc.js | 1 + .../meta-sr/character/加拉赫/calc_auto.js | 88 ++++++++++++++ .../character/星·同谐/calc_auto.js | 5 +- .../character/穹·同谐/calc_auto.js | 5 +- .../meta-sr/character/阮•梅/calc_auto.js | 112 ++++++++++++++++++ 7 files changed, 210 insertions(+), 7 deletions(-) create mode 100644 resources/meta-sr/character/加拉赫/calc_auto.js create mode 100644 resources/meta-sr/character/阮•梅/calc_auto.js diff --git a/apps/profile/ProfileChange.js b/apps/profile/ProfileChange.js index 840c198e..0b70aeca 100644 --- a/apps/profile/ProfileChange.js +++ b/apps/profile/ProfileChange.js @@ -128,7 +128,7 @@ const ProfileChange = { } // 匹配武器 - let wRet = /^(?:等?级?([1-9][0-9])?级?)?\s*(?:([1-5一二三四五满])(精炼?|叠影?)|(精炼?|叠影?)([1-5一二三四五]))?\s*(?:等?级?([1-9][0-9])?级?)?\s*(.*)$/.exec(txt) + let wRet = /^(?:等?级?([1-9][0-9])?级?)?\s*(?:([1-5一二三四五满])(精炼?|叠影?)|(精炼?|叠影?)([1-5一二三四五]))?\s*(?:等?级?([1-9][0-9])?级?)?\s*(.*)$/.exec(txt) if (wRet && wRet[7]) { let weaponName = lodash.trim(wRet[7]) let weapon = Weapon.get(weaponName, game, ret.char.game) diff --git a/resources/meta-sr/artifact/alias.js b/resources/meta-sr/artifact/alias.js index d9f66069..71780316 100644 --- a/resources/meta-sr/artifact/alias.js +++ b/resources/meta-sr/artifact/alias.js @@ -93,10 +93,10 @@ export const aliasCfg = { 繁星竞技场: '繁星,竞技场', 折断的龙骨: '龙骨', 宝命长存的莳者: '莳者,时者', - 骇域漫游的信使: '信使', + 骇域漫游的信使: '信使,信使套', 毁烬焚骨的大公: '毁烬,焚骨,毁烬焚骨,追加套,追加攻击套,追伤套', 幽锁深牢的系囚: '幽锁,深牢,幽锁深牢,持续伤害套', - 苍穹战线格拉默: '苍穹,战线,苍穹战线', + 苍穹战线格拉默: '苍穹,战线,苍穹战线,格拉默', 梦想之地匹诺康尼: '梦想,梦想之地,匹诺康尼', 死水深潜的先驱: '死水,深潜,死水深潜,死水套,深潜套', 机心戏梦的钟表匠: '机心,钟表匠,机心套,钟表套', diff --git a/resources/meta-sr/character/加拉赫/calc.js b/resources/meta-sr/character/加拉赫/calc.js index 5eb8dd3e..85f1fc12 100644 --- a/resources/meta-sr/character/加拉赫/calc.js +++ b/resources/meta-sr/character/加拉赫/calc.js @@ -35,6 +35,7 @@ export const buffs = [{ } }, { title: '加拉赫6命:击破特攻提高[stance]%', + cons: 6, data: { stance: 20 } diff --git a/resources/meta-sr/character/加拉赫/calc_auto.js b/resources/meta-sr/character/加拉赫/calc_auto.js new file mode 100644 index 00000000..787c6341 --- /dev/null +++ b/resources/meta-sr/character/加拉赫/calc_auto.js @@ -0,0 +1,88 @@ +export const details = [{ + title: '普攻伤害', + dmg: ({ talent }, dmg) => dmg(talent.a['技能伤害'], 'a') +}, { + title: '强化普攻伤害', + dmg: ({ talent }, dmg) => dmg(talent.a2['技能伤害'], 'a') +}, { + title: '战技生命回复', + dmg: ({ talent }, { heal }) => heal(talent.e['生命值回复']) +}, { + title: '天赋生命回复', + dmg: ({ talent }, { heal }) => heal(talent.t['生命值回复']) +}, { + title: '开阮加·普攻超击破伤害', + params: { team: true }, + dmg: ({ cons }, { reaction }) => { + // 加拉赫6命提高20%弱点击破效率,阮梅提供50%弱点击破效率 + let cost = 1 * ((cons < 6 ? 1 : 1.2) + 0.5) + return { + avg: reaction('superBreak').avg * cost * 1.6 // 同谐主提供1.6独立增伤乘区 + } + } +}, { + title: '开阮加·强化普攻超击破伤害', + params: { team: true }, + dmg: ({ cons }, { reaction }) => { + // 加拉赫6命提高20%弱点击破效率,阮梅提供50%弱点击破效率 + let cost = 3 * ((cons < 6 ? 1 : 1.2) + 0.5) + return { + avg: reaction('superBreak').avg * cost * 1.6 // 同谐主提供1.6独立增伤乘区 + } + } +}, { + title: '开阮加·终结技超击破伤害', + params: { team: true }, + dmg: ({ cons }, { reaction }) => { + // 加拉赫6命提高20%弱点击破效率,阮梅提供50%弱点击破效率 + let cost = 2 * ((cons < 6 ? 1 : 1.2) + 0.5) + return { + avg: reaction('superBreak').avg * cost * 1.6 // 同谐主提供1.6独立增伤乘区 + } + } +}] + +export const mainAttr = 'atk,heal,stance' +export const defDmgIdx = 3 + +export const buffs = [{ + title: '行迹-崭新配方:基于自身击破特攻,提高治疗量[heal]%', + tree: 1, + sort: 9, + data: { + heal: ({ attr }) => Math.min(attr.stance * 0.5, 75) + } +}, { + title: '天赋-鏖战正酣:终结技Debuff使敌方受到的击破伤害提高[breakEnemydmg]%', + data: { + breakEnemydmg: ({ talent }) => talent.t['击破伤害提高'] * 100 + } +}, { + title: '加拉赫1命:效果抵抗提高[effDef]%', + cons: 1, + data: { + effDef: 50 + } +}, { + title: '加拉赫6命:击破特攻提高[stance]%,弱点击破效率提高20%', + cons: 6, + data: { + stance: 20 + } +}, { + title: '0魂阮梅:弱点击破效率提高50%,击破特攻提高20%,抗性穿透提高25%,速度提高10%', + check: ({ params }) => params.team === true, + data: { + stance: 20, + kx: 25, + speedPct: 10 + } +}, { + title: '6魂钟表匠开拓者:提高击破特攻[stance]%,场上敌人数量为1时,超击破伤害提高60%', + check: ({ params }) => params.team === true, + data: { + stance: 30 + 30 + 300 * 0.15 // 终结技30+钟表匠30+四命转化 + } +}] + +export const createdBy = 'Aluxes' diff --git a/resources/meta-sr/character/星·同谐/calc_auto.js b/resources/meta-sr/character/星·同谐/calc_auto.js index c39adff3..b570226c 100644 --- a/resources/meta-sr/character/星·同谐/calc_auto.js +++ b/resources/meta-sr/character/星·同谐/calc_auto.js @@ -83,11 +83,12 @@ export const buffs = [{ title: '开拓者6命:战技的额外伤害次数增加2次', cons: 6 }, { - title: '0魂阮梅:弱点击破效率提高50%,击破特攻提高20%,抗性穿透提高25%', + title: '0魂阮梅:弱点击破效率提高50%,击破特攻提高20%,抗性穿透提高25%,速度提高10%', check: ({ params }) => params.team === true, data: { stance: 20, - kx: 25 + kx: 25, + speedPct: 10 } }, { title: '加拉赫:敌方受到的击破伤害提高13.2%', diff --git a/resources/meta-sr/character/穹·同谐/calc_auto.js b/resources/meta-sr/character/穹·同谐/calc_auto.js index c39adff3..b570226c 100644 --- a/resources/meta-sr/character/穹·同谐/calc_auto.js +++ b/resources/meta-sr/character/穹·同谐/calc_auto.js @@ -83,11 +83,12 @@ export const buffs = [{ title: '开拓者6命:战技的额外伤害次数增加2次', cons: 6 }, { - title: '0魂阮梅:弱点击破效率提高50%,击破特攻提高20%,抗性穿透提高25%', + title: '0魂阮梅:弱点击破效率提高50%,击破特攻提高20%,抗性穿透提高25%,速度提高10%', check: ({ params }) => params.team === true, data: { stance: 20, - kx: 25 + kx: 25, + speedPct: 10 } }, { title: '加拉赫:敌方受到的击破伤害提高13.2%', diff --git a/resources/meta-sr/character/阮•梅/calc_auto.js b/resources/meta-sr/character/阮•梅/calc_auto.js new file mode 100644 index 00000000..fb6c0961 --- /dev/null +++ b/resources/meta-sr/character/阮•梅/calc_auto.js @@ -0,0 +1,112 @@ +// 注意:天赋击破伤害减伤区为0.9,终结技和秘技击破伤害减伤区为1.0 +export const details = [{ + title: '普攻伤害', + dmg: ({ talent }, dmg) => dmg(talent.a['技能伤害'], 'a') +}, { + title: '20祝福·秘技击破伤害(2韧性怪)', + params: { break: true }, + dmg: ({ talent }, { reaction }) => { + return { + avg: reaction('iceBreak').avg / 0.9 * (2 + 2) / 4 * 20 + } + } +}, { + title: '20祝福·秘技击破伤害(10韧性怪)', + params: { break: true }, + dmg: ({ talent }, { reaction }) => { + return { + avg: reaction('iceBreak').avg / 0.9 * (10 + 2) / 4 * 20 + } + } +}, { + title: '终结技击破伤害(2韧性怪)', + params: { break: true, qBuff: true }, + dmg: ({ talent }, { reaction }) => { + return { + avg: reaction('iceBreak').avg / 0.9 * (2 + 2) / 4 * talent.q['击破伤害比例'] + } + } +}, { + title: '终结技击破伤害(10韧性怪)', + params: { break: true, qBuff: true }, + dmg: ({ talent }, { reaction }) => { + return { + avg: reaction('iceBreak').avg / 0.9 * (10 + 2) / 4 * talent.q['击破伤害比例'] + } + } +}, { + title: '天赋击破伤害(2韧性怪)', + params: { qBuff: true }, + dmg: ({ talent, cons }, { reaction }) => { + const extraBreakTd = cons * 1 >= 6 ? 2 : 0 + return { + avg: reaction('iceBreak').avg * (2 + 2) / 4 * talent.t['击破伤害比例'] * (1 + extraBreakTd) + } + } +}, { + title: '天赋击破伤害(10韧性怪)', + params: { qBuff: true }, + dmg: ({ talent, cons }, { reaction }) => { + const extraBreakTd = cons * 1 >= 6 ? 2 : 0 + return { + avg: reaction('iceBreak').avg * (10 + 2) / 4 * talent.t['击破伤害比例'] * (1 + extraBreakTd) + } + } +}, { + title: '开阮加·普攻超击破伤害', + params: { team: true, qBuff: true, break: true }, + dmg: ({ talent }, { reaction }) => { + let cost = 1 * 1.5 + return { + avg: reaction('superBreak').avg * cost * 1.6 + } + } +}] + +export const defDmgIdx = 6 +export const mainAttr = 'atk,stance' + +export const buffs = [{ + title: '行迹-物体呼吸中:我方全体击破特攻提高[stance]%', + tree: 1, + data: { + stance: 20 + } +}, { + title: '阮梅终结技:使我方全体全属性抗性穿透提高[kx]%', + check: ({ params }) => params.qBuff === true, + data: { + kx: ({ talent }) => talent.q['抗性穿透提高'] * 100 + } +}, { + title: '阮梅1命:终结技期间,我方全体造成伤害时无视目标[ignore]%防御力', + check: ({ params }) => params.qBuff === true, + cons: 1, + data: { + ignore: 20 + } +}, { + title: '阮梅4命:敌方目标弱点被击破时,自身击破特攻提高[stance]%', + check: ({ params }) => params.break === true, + cons: 4, + data: { + stance: 100 + } +}, { + title: '阮梅6命:天赋造成的击破伤害倍率额外提高200%', + cons: 6 +}, { + title: '6魂钟表匠开拓者:提高击破特攻[stance]%,场上敌人数量为1时,超击破伤害提高60%', + check: ({ params }) => params.team === true, + data: { + stance: 30 + 30 + 300 * 0.15 // 终结技30+钟表匠30+四命转化 + } +}, { + title: '加拉赫:敌方受到的击破伤害提高13.2%', + check: ({ params }) => params.team === true, + data: { + breakEnemydmg: 13.2 + } +}] + +export const createdBy = 'Aluxes'