diff --git a/packages/core/src/blitz/canSplash.ts b/packages/core/src/blitz/canSplash.ts deleted file mode 100644 index 33c60fc99..000000000 --- a/packages/core/src/blitz/canSplash.ts +++ /dev/null @@ -1,5 +0,0 @@ -export function canSplash( - type: ShellDefinition["type"], -): type is ShellType.SHELL_TYPE_HE { - return type === ShellType.SHELL_TYPE_HE; -} diff --git a/packages/core/src/blitz/index.ts b/packages/core/src/blitz/index.ts index dae42d050..7c543cb4c 100644 --- a/packages/core/src/blitz/index.ts +++ b/packages/core/src/blitz/index.ts @@ -1,5 +1,4 @@ export * from "./blitzShellKindToBlitzkit"; -export * from "./canSplash"; export * from "./clans"; export * from "./classes"; export * from "./equipmentPrice"; diff --git a/packages/website/src/components/PrimaryArmorSceneComponent/index.tsx b/packages/website/src/components/PrimaryArmorSceneComponent/index.tsx index ee77ce427..e93007683 100644 --- a/packages/website/src/components/PrimaryArmorSceneComponent/index.tsx +++ b/packages/website/src/components/PrimaryArmorSceneComponent/index.tsx @@ -1,8 +1,5 @@ -import { - canSplash, - isExplosive, - resolvePenetrationCoefficient, -} from "@blitzkit/core"; +import { isExplosive, resolvePenetrationCoefficient } from "@blitzkit/core"; +import { ShellType } from "@blitzkit/protos"; import { invalidate, useFrame } from "@react-three/fiber"; import type { QuicklimeEvent } from "quicklime"; import { useEffect, useRef } from "react"; @@ -95,7 +92,8 @@ export function PrimaryArmorSceneComponent({ shell.normalization ?? 0, ); material.current.uniforms.isExplosive.value = isExplosive(shell.type); - material.current.uniforms.canSplash.value = canSplash(shell.type); + material.current.uniforms.canSplash.value = + shell.type === ShellType.SHELL_TYPE_HE; material.current.uniforms.damage.value = shell.armor_damage; material.current.uniforms.explosionRadius.value = shell.explosion_radius; diff --git a/packages/website/src/components/TankopediaOptions/index.tsx b/packages/website/src/components/TankopediaOptions/index.tsx index 6e1738a45..6162b4c3f 100644 --- a/packages/website/src/components/TankopediaOptions/index.tsx +++ b/packages/website/src/components/TankopediaOptions/index.tsx @@ -1,6 +1,4 @@ import { uniqueGuns } from "@blitzkit/core"; -import { Crosshair1Icon } from "@radix-ui/react-icons"; -import { Dialog, Tabs } from "radix-ui"; import { useState } from "react"; import { DuelModule, useDuel } from "../../hooks/useDuel"; import { useEquipment } from "../../hooks/useEquipment"; @@ -11,10 +9,7 @@ import { useUnwrapper } from "../../hooks/useUnwrapper"; import { Tankopedia } from "../../stores/tankopedia"; import { TankopediaPersistent } from "../../stores/tankopediaPersistent"; import { TankopediaDisplay } from "../../stores/tankopediaPersistent/constants"; -import { Button } from "../Button"; import { SegmentedControl } from "../SegmentedControl"; -import { SmallTankIcon } from "../SmallTankIcon"; -import { TankSearch } from "../TankSearch"; import styles from "./index.module.css"; export function TankopediaOptions() { @@ -210,7 +205,7 @@ export function TankopediaOptions() { */} - {requestedDisplay === TankopediaDisplay.DynamicArmor && ( + {/* {requestedDisplay === TankopediaDisplay.DynamicArmor && ( - )} + )} */} );