feat(repair): filter debug sub-state options by current mission

Pylon-only mission steps (approaching/arrived/npc-return/narrator-outro)
no longer appear in the GameStateDebugPanel sub-state dropdown for the
ebike or farm missions, which use the shorter
locked/waiting/inspected/fragmented/scanning/repairing/reassembling/done
flow.
This commit is contained in:
Tom Boullay
2026-06-02 21:59:54 +02:00
parent eb5d4076d1
commit d1665891f4
2 changed files with 18 additions and 2 deletions
@@ -5,8 +5,8 @@ import {
MAIN_GAME_STATES,
} from "@/data/game/gameStateConfig";
import {
getMissionStepsFor,
isMissionStep,
MISSION_STEPS,
} from "@/data/gameplay/repairMissionState";
import { useGameStore } from "@/managers/stores/useGameStore";
import type { MainGameState } from "@/types/game";
@@ -53,7 +53,9 @@ export function GameStateDebugPanel(): React.JSX.Element {
? GAME_STEPS
: mainState === "outro"
? ["waiting", "started"]
: MISSION_STEPS;
: mainState === "ebike" || mainState === "pylon" || mainState === "farm"
? getMissionStepsFor(mainState)
: [];
function setSubState(nextSubState: string): void {
if (mainState === "intro") {