From 974f340d3361fbca31de0b9200650cbf87f54918 Mon Sep 17 00:00:00 2001 From: Tom Boullay Date: Wed, 3 Jun 2026 00:03:59 +0200 Subject: [PATCH] style: prettier reflow pylon config and lighting effect Mechanical formatting cleanup carried over from the develop merge: inline single-line tuples and break long lines per project prettier config. No behavior change. --- src/components/gameplay/pylon/PylonLightingEffect.tsx | 7 +++++-- src/data/gameplay/pylonConfig.ts | 6 +----- src/data/gameplay/zones.ts | 6 +----- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/src/components/gameplay/pylon/PylonLightingEffect.tsx b/src/components/gameplay/pylon/PylonLightingEffect.tsx index c71648f..fb6c680 100644 --- a/src/components/gameplay/pylon/PylonLightingEffect.tsx +++ b/src/components/gameplay/pylon/PylonLightingEffect.tsx @@ -20,14 +20,17 @@ export function PylonLightingEffect(): null { const step = useGameStore((state) => state.pylon.currentStep); // True from "approaching" until narrator-outro (lighting resets before the outro audio) - const isActive = mainState === "pylon" && step !== "locked" && step !== "narrator-outro"; + const isActive = + mainState === "pylon" && step !== "locked" && step !== "narrator-outro"; // Working THREE.Color instances — lerped every frame const ambientRef = useRef(new THREE.Color(LIGHTING_STATE.ambientColor)); const sunRef = useRef(new THREE.Color(LIGHTING_STATE.sunColor)); // Target colours — updated reactively when isActive changes - const targetAmbientRef = useRef(new THREE.Color(LIGHTING_DEFAULTS.ambientColor)); + const targetAmbientRef = useRef( + new THREE.Color(LIGHTING_DEFAULTS.ambientColor), + ); const targetSunRef = useRef(new THREE.Color(LIGHTING_DEFAULTS.sunColor)); useEffect(() => { diff --git a/src/data/gameplay/pylonConfig.ts b/src/data/gameplay/pylonConfig.ts index acc7edc..6efafc1 100644 --- a/src/data/gameplay/pylonConfig.ts +++ b/src/data/gameplay/pylonConfig.ts @@ -6,11 +6,7 @@ export const PYLON_DOWNED_ROTATION: Vector3Tuple = [0, 0, -0.9]; export const PYLON_UPRIGHT_ROTATION: Vector3Tuple = [0, 0, 0]; -export const PYLON_FARMER_NPC_POSITION: Vector3Tuple = [ - -16.13, - 3.2, - 52.46 -]; +export const PYLON_FARMER_NPC_POSITION: Vector3Tuple = [-16.13, 3.2, 52.46]; export const PYLON_FARMER_NPC_AFTER_POSITION: Vector3Tuple = [ PYLON_WORLD_POSITION[0] + 3, diff --git a/src/data/gameplay/zones.ts b/src/data/gameplay/zones.ts index f8362bf..492ef59 100644 --- a/src/data/gameplay/zones.ts +++ b/src/data/gameplay/zones.ts @@ -4,11 +4,7 @@ import { PYLON_WORLD_POSITION } from "@/data/gameplay/pylonConfig"; // Zones qui active la coupure de courant export const PYLON_APPROACH_ZONE: ZoneConfig = { id: "pylon-approach", - position: [ - 5, - 4, - -21.5 - ], + position: [5, 4, -21.5], radius: 10, height: 18, oneShot: true,