From d614f9629e70513d4fe32020e83b0ad92e99d5d7 Mon Sep 17 00:00:00 2001 From: jkl8753 <78137354+jkl8753@users.noreply.github.com> Date: Thu, 10 Oct 2024 17:52:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=92=8C=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E7=A5=9E=E9=87=8C=E7=BB=AB=E5=8D=8E=E3=80=81=E9=92=9F=E7=A6=BB?= =?UTF-8?q?=E3=80=81=E5=B8=8C=E8=AF=BA=E5=AE=81=E7=9A=84=E8=AF=84=E5=88=86?= =?UTF-8?q?=E8=A7=84=E5=88=99=E3=80=82=E4=BF=AE=E6=94=B9=E6=9C=89=E5=85=B3?= =?UTF-8?q?=E6=AD=A6=E5=99=A8=E7=B1=BB=E7=9A=84=E5=9C=A3=E9=81=97=E7=89=A9?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E6=9D=83=E9=87=8D=E3=80=82=20(#809)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 敌人默认等级,从91提高至103(配合世界等级9). * 降低夏沃蕾和闲云的治疗权重(防止分数溢出)。 新增希诺宁的评分权重。 * 添加希格雯满命情况下的评分权重。 优化芙宁娜满命情况下的评分权重部分的代码。 * 添加和修改神里绫华、钟离、希诺宁的特殊评分规则 * 修改钟离、神里绫华、香菱的默认评分规则 绫华的充能权重,从 30 提升至 45. 香菱的充能权重,从 55 提升至 75. 钟离的默认评分规则,改成“血牛”性质(原先钟离的默认评分规则为“战斗”性质,代码移动至特殊评分规则里)。 * 修改有关武器类的圣遗物默认权重 删除赤角石溃杵、辰砂之纺锤两把武器的权重。 将护摩之杖的权重,从原先的45-75,调整为10-18. 将磐岩结绿的权重,从原先的45-75,调整为15-30. --- models/artis/ArtisMarkCfg.js | 32 ++++++++++++------- resources/meta-gs/artifact/artis-mark.js | 6 ++-- .../meta-gs/character/希诺宁/artis.js | 21 ++++++++++++ .../meta-gs/character/神里绫华/artis.js | 8 +++-- resources/meta-gs/character/钟离/artis.js | 26 ++++++++++++--- 5 files changed, 71 insertions(+), 22 deletions(-) create mode 100644 resources/meta-gs/character/希诺宁/artis.js diff --git a/models/artis/ArtisMarkCfg.js b/models/artis/ArtisMarkCfg.js index c14c90d1..7b97c322 100644 --- a/models/artis/ArtisMarkCfg.js +++ b/models/artis/ArtisMarkCfg.js @@ -5,11 +5,9 @@ import { Meta } from '#miao' const weaponCfg = { 磐岩结绿: { attr: 'hp', - abbr: '绿剑' - }, - 赤角石溃杵: { - attr: 'def', - abbr: '赤角' + abbr: '绿剑', + max: 30, + min: 15 }, 猎人之径: { attr: 'mastery' @@ -20,7 +18,9 @@ const weaponCfg = { }, 护摩之杖: { attr: 'hp', - abbr: '护摩' + abbr: '护摩', + max: 18, + min: 10 } } @@ -51,6 +51,19 @@ const ArtisMarkCfg = { return false } + /* maxAffix_attr 精5武器权重 + minAffix_attr 精1武器权重 */ + let weaponCheck = (key, maxAffix_attr = 20, minAffix_attr = 10, max = 100) => { + let original = weight[key] || 0 + if (original == max) { + return false + } else { + let plus = minAffix_attr + (maxAffix_attr - minAffix_attr) * (weapon.affix - 1) / 4 + weight[key] = Math.min(Math.round(original + plus), max) + return true + } + } + let wn = weapon?.name || '' if (isGs) { @@ -59,16 +72,11 @@ const ArtisMarkCfg = { // 增加攻击力或直接伤害类武器判定 if (weight.atk > 0 && weaponCfg[wn]) { let wCfg = weaponCfg[wn] - if (check(wCfg.attr, wCfg.max || 75, wCfg.plus || 75)) { + if (weaponCheck(wCfg.attr, wCfg.max || 20, wCfg.min || 10)) { title.push(wCfg.abbr || wn) } } - // 不与攻击力挂钩的武器判定 - if (wn === '辰砂之纺锤' && check('def')) { - title.push('纺锤') - } - // 圣遗物判定,如果是绝缘4,将充能权重拉高至沙漏圣遗物当前最高权重齐平 let maxWeight = Math.max(weight.atk || 0, weight.hp || 0, weight.def || 0, weight.mastery || 0) if (artis.is('绝缘4') && check('recharge', maxWeight, 75, false)) { diff --git a/resources/meta-gs/artifact/artis-mark.js b/resources/meta-gs/artifact/artis-mark.js index 34cf18ba..4c0bdc10 100644 --- a/resources/meta-gs/artifact/artis-mark.js +++ b/resources/meta-gs/artifact/artis-mark.js @@ -15,9 +15,9 @@ export const usefulAttr = { 班尼特: { hp: 100, atk: 50, def: 0, cpct: 50, cdmg: 50, mastery: 0, dmg: 80, phy: 0, recharge: 75, heal: 100 }, 枫原万叶: { hp: 0, atk: 50, def: 0, cpct: 50, cdmg: 50, mastery: 100, dmg: 80, phy: 0, recharge: 55, heal: 0 }, 行秋: { hp: 0, atk: 75, def: 0, cpct: 100, cdmg: 100, mastery: 0, dmg: 100, phy: 0, recharge: 75, heal: 0 }, - 钟离: { hp: 80, atk: 75, def: 0, cpct: 100, cdmg: 100, mastery: 0, dmg: 100, phy: 50, recharge: 55, heal: 0 }, - 神里绫华: { hp: 0, atk: 85, def: 0, cpct: 100, cdmg: 100, mastery: 0, dmg: 100, phy: 0, recharge: 30, heal: 0 }, - 香菱: { hp: 0, atk: 75, def: 0, cpct: 100, cdmg: 100, mastery: 75, dmg: 100, phy: 0, recharge: 55, heal: 0 }, + 钟离: { hp: 100, atk: 30, def: 0, cpct: 40, cdmg: 40, mastery: 0, dmg: 80, phy: 0, recharge: 55, heal: 0 }, + 神里绫华: { hp: 0, atk: 85, def: 0, cpct: 100, cdmg: 100, mastery: 0, dmg: 100, phy: 0, recharge: 45, heal: 0 }, + 香菱: { hp: 0, atk: 75, def: 0, cpct: 100, cdmg: 100, mastery: 75, dmg: 100, phy: 0, recharge: 75, heal: 0 }, 胡桃: { hp: 80, atk: 50, def: 0, cpct: 100, cdmg: 100, mastery: 75, dmg: 100, phy: 0, recharge: 0, heal: 0 }, 温迪: { hp: 0, atk: 75, def: 0, cpct: 80, cdmg: 80, mastery: 75, dmg: 100, phy: 0, recharge: 55, heal: 0 }, 珊瑚宫心海: { hp: 100, atk: 50, def: 0, cpct: 0, cdmg: 0, mastery: 75, dmg: 100, phy: 0, recharge: 55, heal: 100 }, diff --git a/resources/meta-gs/character/希诺宁/artis.js b/resources/meta-gs/character/希诺宁/artis.js new file mode 100644 index 00000000..e8a070e2 --- /dev/null +++ b/resources/meta-gs/character/希诺宁/artis.js @@ -0,0 +1,21 @@ +import { usefulAttr } from "../../artifact/artis-mark.js" + +export default function ({ weapon, rule, def }) { + let title = [] + let particularAttr = JSON.parse(JSON.stringify(usefulAttr['希诺宁'])) + if (weapon.name === '西风剑') { + title.push('西风剑') + particularAttr.cpct = 100 + } + if (attr.cpct * 2 + attr.cdmg > 240) { + title.push('战斗') + particularAttr.cpct = 100 + particularAttr.cdmg = 100 + particularAttr.recharge = 55 + particularAttr.heal = 70 + } + if (title.length > 0) { + return rule(`希诺宁-${title.join('')}`, particularAttr) + } + return def(usefulAttr['希诺宁']) +} diff --git a/resources/meta-gs/character/神里绫华/artis.js b/resources/meta-gs/character/神里绫华/artis.js index c1c22d62..d295a1da 100644 --- a/resources/meta-gs/character/神里绫华/artis.js +++ b/resources/meta-gs/character/神里绫华/artis.js @@ -1,6 +1,10 @@ +import { usefulAttr } from "../../artifact/artis-mark.js" + export default function ({ attr, rule, def }) { + let particularAttr = JSON.parse(JSON.stringify(usefulAttr['神里绫华'])) if (attr.mastery > 120) { - return rule('神里-精通', { atk: 75, cpct: 100, cdmg: 100, mastery: 75, dmg: 100, recharge: 30 }) + particularAttr.mastery = 75 + return rule(`神里-精通`, particularAttr) } - return def({ atk: 75, cpct: 100, cdmg: 100, dmg: 100, phy: 0, recharge: 30 }) + return def(usefulAttr['神里绫华']) } \ No newline at end of file diff --git a/resources/meta-gs/character/钟离/artis.js b/resources/meta-gs/character/钟离/artis.js index e998d161..3329e79c 100644 --- a/resources/meta-gs/character/钟离/artis.js +++ b/resources/meta-gs/character/钟离/artis.js @@ -1,7 +1,23 @@ -export default function ({ attr, artis, rule, def }) { - if (artis.is('hp', '3,4,5') && attr.hp > 40000 && attr.cpct * 2 + attr.cdmg < 100) { - // 血牛钟离,其余词缀权重不高于41.84,确保小生命命中副词缀最高权重 - return rule('钟离-血牛', { hp: 100, atk: 30, cpct: 41, cdmg: 41, recharge: 30 }) +import { usefulAttr } from "../../artifact/artis-mark.js" + +export default function ({ attr, weapon, rule, def }) { + let title = [] + let particularAttr = JSON.parse(JSON.stringify(usefulAttr['钟离'])) + if (weapon.name === '西风长枪') { + title.push('西风枪') + particularAttr.cpct = 100 } - return def({ hp: 80, atk: 75, cpct: 100, cdmg: 100, dmg: 80, phy: 80, recharge: 55 }) + if (attr.cpct * 2 + attr.cdmg > 240) { + title.push('战斗') + particularAttr.hp = 80 + particularAttr.atk = 75 + particularAttr.cpct = 100 + particularAttr.cdmg = 100 + particularAttr.dmg = 100 + particularAttr.recharge = 30 + } + if (title.length > 0) { + return rule(`钟离-${title.join('')}`, particularAttr) + } + return def(usefulAttr['钟离']) }