diff --git a/app/features/build-analyzer/core/constants.ts b/app/features/build-analyzer/analyzer-constants.ts similarity index 96% rename from app/features/build-analyzer/core/constants.ts rename to app/features/build-analyzer/analyzer-constants.ts index d8d1572e0..42736ed02 100644 --- a/app/features/build-analyzer/core/constants.ts +++ b/app/features/build-analyzer/analyzer-constants.ts @@ -1,4 +1,4 @@ -import type { DamageType } from "./types"; +import type { DamageType } from "./analyzer-types"; import { type MainWeaponId } from "~/modules/in-game-lists"; export const MAX_LDE_INTENSITY = 21; diff --git a/app/features/build-analyzer/analyzer-hooks.ts b/app/features/build-analyzer/analyzer-hooks.ts index bb2348489..402874f07 100644 --- a/app/features/build-analyzer/analyzer-hooks.ts +++ b/app/features/build-analyzer/analyzer-hooks.ts @@ -9,10 +9,10 @@ import { abilities, isAbility, } from "~/modules/in-game-lists"; -import { MAX_LDE_INTENSITY } from "./core/constants"; +import { MAX_LDE_INTENSITY } from "./analyzer-constants"; import { applySpecialEffects, SPECIAL_EFFECTS } from "./core/specialEffects"; import { buildStats } from "./core/stats"; -import type { SpecialEffectType } from "./core/types"; +import type { SpecialEffectType } from "./analyzer-types"; import { buildToAbilityPoints, validatedWeaponIdFromSearchParams, diff --git a/app/features/build-analyzer/core/types.ts b/app/features/build-analyzer/analyzer-types.ts similarity index 97% rename from app/features/build-analyzer/core/types.ts rename to app/features/build-analyzer/analyzer-types.ts index d9d6a079d..bf3b6d80f 100644 --- a/app/features/build-analyzer/core/types.ts +++ b/app/features/build-analyzer/analyzer-types.ts @@ -4,10 +4,10 @@ import type { SpecialWeaponId, SubWeaponId, } from "~/modules/in-game-lists"; -import type { SPECIAL_EFFECTS } from "./specialEffects"; -import type weaponParams from "./weapon-params.json"; -import type abilityValues from "./ability-values.json"; -import type { DAMAGE_TYPE } from "./constants"; +import type { SPECIAL_EFFECTS } from "./core/specialEffects"; +import type weaponParams from "./core/weapon-params.json"; +import type abilityValues from "./core/ability-values.json"; +import type { DAMAGE_TYPE } from "./analyzer-constants"; import type { AbilityWithUnknown } from "~/modules/in-game-lists/types"; type Overwrites = Record< diff --git a/app/features/build-analyzer/core/abilityChunksCalc.ts b/app/features/build-analyzer/core/abilityChunksCalc.ts index f9df6c2b4..b42421dd5 100644 --- a/app/features/build-analyzer/core/abilityChunksCalc.ts +++ b/app/features/build-analyzer/core/abilityChunksCalc.ts @@ -3,7 +3,7 @@ import { type AbilityWithUnknown, type BuildAbilitiesTupleWithUnknown, } from "~/modules/in-game-lists"; -import type { AbilityChunks } from "./types"; +import type { AbilityChunks } from "../analyzer-types"; // Reference for Ability Chunks numbers: https://splatoonwiki.org/wiki/Ability_chunk#Splatoon_3 const MAIN_REQUIRED_ABILITY_CHUNKS_COUNT = 45; diff --git a/app/features/build-analyzer/core/specialEffects.ts b/app/features/build-analyzer/core/specialEffects.ts index b7bca3288..210c67195 100644 --- a/app/features/build-analyzer/core/specialEffects.ts +++ b/app/features/build-analyzer/core/specialEffects.ts @@ -1,5 +1,5 @@ -import { MAX_AP } from "./constants"; -import type { AbilityPoints } from "./types"; +import { MAX_AP } from "../analyzer-constants"; +import type { AbilityPoints } from "../analyzer-types"; export const SPECIAL_EFFECTS = [ { diff --git a/app/features/build-analyzer/core/stats.test.ts b/app/features/build-analyzer/core/stats.test.ts index 9aad0f8d9..d4e3bd6fd 100644 --- a/app/features/build-analyzer/core/stats.test.ts +++ b/app/features/build-analyzer/core/stats.test.ts @@ -1,7 +1,7 @@ import { suite } from "uvu"; import * as assert from "uvu/assert"; import { type MainWeaponId, mainWeaponIds } from "~/modules/in-game-lists"; -import { damageTypeToWeaponType } from "./constants"; +import { damageTypeToWeaponType } from "../analyzer-constants"; import { buildStats } from "./stats"; const AnalyzeBuild = suite("Analyze build"); diff --git a/app/features/build-analyzer/core/stats.ts b/app/features/build-analyzer/core/stats.ts index 726829972..58823e2a4 100644 --- a/app/features/build-analyzer/core/stats.ts +++ b/app/features/build-analyzer/core/stats.ts @@ -9,9 +9,9 @@ import type { MainWeaponParams, StatFunctionInput, SubWeaponParams, -} from "./types"; -import { DAMAGE_TYPE, multiShot } from "./constants"; -import { INK_CONSUME_TYPES } from "./types"; +} from "../analyzer-types"; +import { DAMAGE_TYPE, multiShot } from "../analyzer-constants"; +import { INK_CONSUME_TYPES } from "../analyzer-types"; import invariant from "tiny-invariant"; import { abilityPointsToEffects, diff --git a/app/features/build-analyzer/core/utils.ts b/app/features/build-analyzer/core/utils.ts index 0f93300c2..c47d3cc8f 100644 --- a/app/features/build-analyzer/core/utils.ts +++ b/app/features/build-analyzer/core/utils.ts @@ -15,7 +15,7 @@ import type { ParamsJson, SpecialWeaponParams, SubWeaponParams, -} from "./types"; +} from "../analyzer-types"; import invariant from "tiny-invariant"; export function weaponParams(): ParamsJson { diff --git a/app/features/build-analyzer/index.ts b/app/features/build-analyzer/index.ts index b25a7c702..dce956a62 100644 --- a/app/features/build-analyzer/index.ts +++ b/app/features/build-analyzer/index.ts @@ -9,12 +9,12 @@ export type { AnalyzedBuild, SpecialWeaponParams, SubWeaponParams, -} from "./core/types"; +} from "./analyzer-types"; export { buildStats, specialDeviceHp, specialFieldHp, subStats, } from "./core/stats"; -export { DAMAGE_TYPE, damageTypeToWeaponType } from "./core/constants"; +export { DAMAGE_TYPE, damageTypeToWeaponType } from "./analyzer-constants"; export { default as weaponParams } from "./core/weapon-params.json"; diff --git a/app/features/build-analyzer/routes/analyzer.tsx b/app/features/build-analyzer/routes/analyzer.tsx index 94273c83c..ed77c861e 100644 --- a/app/features/build-analyzer/routes/analyzer.tsx +++ b/app/features/build-analyzer/routes/analyzer.tsx @@ -47,12 +47,15 @@ import type { AnalyzedBuild, SpecialEffectType, Stat, -} from "../core/types"; +} from "../analyzer-types"; import { lastDitchEffortIntensityToAp, SPECIAL_EFFECTS, } from "../core/specialEffects"; -import { damageTypeToWeaponType, MAX_LDE_INTENSITY } from "../core/constants"; +import { + damageTypeToWeaponType, + MAX_LDE_INTENSITY, +} from "../analyzer-constants"; import { useAnalyzeBuild } from "../analyzer-hooks"; export const CURRENT_PATCH = "2.0";