diff --git a/package.json b/package.json index 3d7d8e90d..07be900b7 100644 --- a/package.json +++ b/package.json @@ -5,15 +5,7 @@ "private": true, "scripts": { "setup": "chmod a+x scripts/*.sh && ./scripts/setup.sh", - "dev": "bun run dev:website", - "dev:website": "cd packages/website-ue && bun run dev", - "build:game": "cd packages/game && bun run build", - "build:website": "cd packages/website-ue && bun run build", - "build:proxyclient": "cd packages/scripts && bun run build:proxyclient", - "build:catalogitemaccessor": "cd packages/scripts && bun run build:catalogitemaccessor", - "build:protos": "cd packages/scripts && bun run build:protos", - "lint": "tsc", - "lint:website": "cd packages/website-ue && bun run lint" + "dev": "./scripts/dev.sh" }, "type": "module", "workspaces": [ diff --git a/packages/website-ue/src/components/TankopediaLoadout/index.tsx b/packages/website-ue/src/components/TankopediaLoadout/index.tsx index 1b1f49283..55083e4d3 100644 --- a/packages/website-ue/src/components/TankopediaLoadout/index.tsx +++ b/packages/website-ue/src/components/TankopediaLoadout/index.tsx @@ -28,9 +28,15 @@ import { Text } from "../Text"; import styles from "./index.module.css"; export function TankopediaLoadout() { + const tank = useProtagonist(); + + const showModules = tank.tank!.upgrade_lines.some( + (line) => line.stages.length > 1 || line.name in alternativeLines, + ); + return (
- + {showModules && }
); @@ -199,6 +205,7 @@ function Modules() {
+ {/* TODO: hide lines with 1 module except for alts */} {tank.tank!.upgrade_lines.map((line) => (