diff --git a/app/modules/analyzer/utils.ts b/app/modules/analyzer/utils.ts index a2764427e..a08ade23c 100644 --- a/app/modules/analyzer/utils.ts +++ b/app/modules/analyzer/utils.ts @@ -1,5 +1,3 @@ -// xxx: rename file to something more accurate - import type { Ability, BuildAbilitiesTupleWithUnknown } from "../in-game-lists"; import weaponParamsJson from "./weapon-params.json"; import abilityValuesJson from "./ability-values.json"; diff --git a/app/modules/analyzer/weapon-params.json b/app/modules/analyzer/weapon-params.json index d46a2ceea..5005fbdda 100644 --- a/app/modules/analyzer/weapon-params.json +++ b/app/modules/analyzer/weapon-params.json @@ -428,12 +428,12 @@ "InkConsumeMinCharge_ChargeParam": 0.035 }, "8010": { - "SpecialPoint": 200, - "subWeaponId": 2, - "specialWeaponId": 3, - "internalName": "Saber_Normal", - "InkConsume_SwingParam": 0.04, - "InkConsumeFullCharge_ChargeParam": 0.09, + "SpecialPoint": 180, + "subWeaponId": 13, + "specialWeaponId": 11, + "internalName": "Saber_Lite", + "InkConsume_SwingParam": 0.03, + "InkConsumeFullCharge_ChargeParam": 0.06, "InkConsumeMinCharge_ChargeParam": 0.035 } }, diff --git a/scripts/create-analyzer-json.ts b/scripts/create-analyzer-json.ts index 62ede1e8a..ff4526306 100644 --- a/scripts/create-analyzer-json.ts +++ b/scripts/create-analyzer-json.ts @@ -1,7 +1,7 @@ // To run this script you need from https://github.com/Leanny/leanny.github.io // 1) WeaponInfoMain.json inside dicts // 2) WeaponInfoSub.json inside dicts -// 3) WeaponInfoMSpecial.json inside dicts +// 3) WeaponInfoSpecial.json inside dicts // xxx: internal name can be deleted when to prod @@ -10,7 +10,6 @@ import { subWeaponIds, mainWeaponIds, } from "~/modules/in-game-lists"; -// xxx: missing id 8010 import weapons from "./dicts/WeaponInfoMain.json"; // xxx: for example suction missing ink consume level, ink saver lvl... we are not considering default? import subWeapons from "./dicts/WeaponInfoSub.json"; @@ -22,7 +21,7 @@ import type { MainWeaponParams, SubWeaponParams } from "~/modules/analyzer"; import type { ParamsJson } from "~/modules/analyzer/types"; import { z } from "zod"; -const CURRENT_SEASON = 0; +const CURRENT_SEASON = 1; type MainWeapon = typeof weapons[number]; type SubWeapon = typeof subWeapons[number]; @@ -214,6 +213,13 @@ function mainWeaponShouldBeSkipped(weapon: MainWeapon) { function subWeaponShouldBeSkipped(subWeapon: SubWeapon) { if (subWeapon.Id === 10000) return true; + if ( + ["Mission", "Coop", "Hero", "Rival", "SalmonBuddy"].some((val) => + subWeapon.__RowId.includes(val) + ) + ) { + return true; + } return false; } diff --git a/scripts/create-gear-json.ts b/scripts/create-gear-json.ts index 73f1adb6e..2dfca6c0a 100644 --- a/scripts/create-gear-json.ts +++ b/scripts/create-gear-json.ts @@ -7,7 +7,7 @@ import path from "node:path"; import invariant from "tiny-invariant"; import { LANG_JSONS_TO_CREATE, loadLangDicts } from "./utils"; -const CURRENT_SEASON = 0; +const CURRENT_SEASON = 1; const OUTPUT_DIR_PATH = path.join(__dirname, "output"); const LEAN_HEAD_CODE = "Hed";