mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-30 15:17:43 -05:00
Move analyzer constants and types
This commit is contained in:
@@ -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;
|
||||
@@ -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,
|
||||
|
||||
@@ -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<
|
||||
@@ -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;
|
||||
|
||||
@@ -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 = [
|
||||
{
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -15,7 +15,7 @@ import type {
|
||||
ParamsJson,
|
||||
SpecialWeaponParams,
|
||||
SubWeaponParams,
|
||||
} from "./types";
|
||||
} from "../analyzer-types";
|
||||
import invariant from "tiny-invariant";
|
||||
|
||||
export function weaponParams(): ParamsJson {
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user