update: trigger dialogue en fonction du gameplay

This commit is contained in:
Tom Boullay
2026-05-11 10:03:07 +02:00
parent a34396b958
commit 4b7498ae13
2 changed files with 19 additions and 1 deletions
@@ -8,6 +8,7 @@ import {
REPAIR_GAME_ZONE_RADIUS,
} from "@/data/gameplay/repairGameConfig";
import { useGameStore } from "@/managers/stores/useGameStore";
import { playGameplayDialogueById } from "@/utils/dialogues/playDialogue";
const CASE_CLOSED_STEPS = new Set(["locked", "waiting"]);
@@ -26,6 +27,7 @@ export function RepairGameZone(): React.JSX.Element {
if (CASE_CLOSED_STEPS.has(bikeStep)) {
setBikeState({ currentStep: "inspected" });
void playGameplayDialogueById("narrateur_ebikecasse");
}
};
@@ -46,6 +48,7 @@ export function RepairGameZone(): React.JSX.Element {
if (bikeStep === "fragmented") {
setBikeState({ currentStep: "scanning" });
void playGameplayDialogueById("narrateur_galetscan");
}
};