move characteristics

This commit is contained in:
tresabhi committed 2026-06-16 14:12:59 -05:00
1 parent e6fa17a911
commit 7e2fba35d0
7 files changed
+9 -9

No files matched your search

@@ -1,11 +1,11 @@
import { useCharacteristicRenderer } from "../../hooks/useCharacteristicRenderer"; import { useCharacteristicRenderer } from "../../hooks/useCharacteristicRenderer";
import { useStrings } from "../../hooks/useStrings"; import { useStrings } from "../../hooks/useStrings";
import type { CharacteristicOutput } from "../../tankopedia/characteristics"; import type { CharacteristicOutput } from "../../config/characteristics";
import { import {
characteristicsOrder, characteristicsOrder,
type CharacteristicRenderConfig, type CharacteristicRenderConfig,
type CharacteristicsGroup, type CharacteristicsGroup,
} from "../../tankopedia/characteristicsOrder"; } from "../../config/characteristicsOrder";
import type { ComputedCharacteristics } from "../../tankopedia/computeCharacteristics"; import type { ComputedCharacteristics } from "../../tankopedia/computeCharacteristics";
import { Heading } from "../Heading"; import { Heading } from "../Heading";
import { Text } from "../Text"; import { Text } from "../Text";
@@ -7,8 +7,8 @@ import {
} from "@protos/blitz_static_tank_upgrade_single_stage"; } from "@protos/blitz_static_tank_upgrade_single_stage";
import type { Tank } from "@protos/tank"; import type { Tank } from "@protos/tank";
import { radToDeg } from "three/src/math/MathUtils.js"; import { radToDeg } from "three/src/math/MathUtils.js";
import { applyPitchYawLimits } from "./applyPitchYawLimits"; import { applyPitchYawLimits } from "../tankopedia/applyPitchYawLimits";
import { TerrainHardness, type TankState } from "./tankState"; import { TerrainHardness, type TankState } from "../tankopedia/tankState";
export type CharacteristicOutput = number | number[] | string | null; export type CharacteristicOutput = number | number[] | string | null;
@@ -1,11 +1,11 @@
import { literalsArray } from "@blitzkit/i18n"; import { literalsArray } from "@blitzkit/i18n";
import { useMemo, type ReactNode } from "react"; import { useMemo, type ReactNode } from "react";
import { Text } from "../components/Text"; import { Text } from "../components/Text";
import type { CharacteristicOutput } from "../tankopedia/characteristics"; import type { CharacteristicOutput } from "../config/characteristics";
import { import {
characteristicsOrder, characteristicsOrder,
type CharacteristicRenderConfig, type CharacteristicRenderConfig,
} from "../tankopedia/characteristicsOrder"; } from "../config/characteristicsOrder";
import { useGameStrings } from "./useGameStrings"; import { useGameStrings } from "./useGameStrings";
import { useLocale } from "./useLocale"; import { useLocale } from "./useLocale";
import { useStrings } from "./useStrings"; import { useStrings } from "./useStrings";
@@ -10,7 +10,7 @@ import type { Sets } from "@protos/sets";
import type { Tank } from "@protos/tank"; import type { Tank } from "@protos/tank";
import { useSets } from "./useSets"; import { useSets } from "./useSets";
import type { ComputedCharacteristics } from "../tankopedia/computeCharacteristics"; import type { ComputedCharacteristics } from "../tankopedia/computeCharacteristics";
import { GunType } from "../tankopedia/characteristics"; import { GunType } from "../config/characteristics";
export function useCompatibility( export function useCompatibility(
tank: Tank, tank: Tank,
+1 -1
View File
@@ -2,7 +2,7 @@ import type { Tank } from "@protos/tank";
import { Varuna } from "varuna"; import { Varuna } from "varuna";
import { createTankState } from "../tankopedia/createTankState"; import { createTankState } from "../tankopedia/createTankState";
import { type TankState } from "../tankopedia/tankState"; import { type TankState } from "../tankopedia/tankState";
import { characteristicsOrder } from "../tankopedia/characteristicsOrder"; import { characteristicsOrder } from "../config/characteristicsOrder";
interface Tankopedia { interface Tankopedia {
disturbed: boolean; disturbed: boolean;
@@ -11,7 +11,7 @@ import {
characteristics, characteristics,
type CharacteristicName, type CharacteristicName,
type CharacteristicOutput, type CharacteristicOutput,
} from "./characteristics"; } from "../config/characteristics";
import type { TankState } from "./tankState"; import type { TankState } from "./tankState";
export type ComputedCharacteristics = Record< export type ComputedCharacteristics = Record<