disable some more

This commit is contained in:
tresabhi committed 2026-10-29 14:28:18 -05:00
1 parent 1aa4e6c470
commit b0af48f866
4 files changed
+6 -19

No files matched your search

-5
View File
@@ -1,5 +0,0 @@
export function canSplash(
type: ShellDefinition["type"],
): type is ShellType.SHELL_TYPE_HE {
return type === ShellType.SHELL_TYPE_HE;
}
-1
View File
@@ -1,5 +1,4 @@
export * from "./blitzShellKindToBlitzkit";
export * from "./canSplash";
export * from "./clans";
export * from "./classes";
export * from "./equipmentPrice";
@@ -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;
@@ -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() {
</SegmentedControl.Item>
</SegmentedControl.Root> */}
{requestedDisplay === TankopediaDisplay.DynamicArmor && (
{/* {requestedDisplay === TankopediaDisplay.DynamicArmor && (
<Dialog.Root
open={antagonistSelectorOpen}
onOpenChange={setAntagonistSelectorOpen}
@@ -250,7 +245,7 @@ export function TankopediaOptions() {
</Tabs.Root>
</Dialog.Content>
</Dialog.Root>
)}
)} */}
</div>
</div>
);