From 647b22c55ea2c22e3c193d64677775e438582b4d Mon Sep 17 00:00:00 2001 From: Restart2008 Date: Sat, 22 Nov 2025 15:20:07 -0800 Subject: [PATCH] feat: Add temporary console logs for ping debugging --- src/client/InputHandler.ts | 6 ++++++ src/client/graphics/layers/FxLayer.ts | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/client/InputHandler.ts b/src/client/InputHandler.ts index 03b6ae563..59f2d86fc 100644 --- a/src/client/InputHandler.ts +++ b/src/client/InputHandler.ts @@ -516,6 +516,12 @@ export class InputHandler { x: worldCoords.x, y: worldCoords.y, }); + console.log( + "Emitting PingPlacedEvent with type:", + this.uiState.currentPingType, + "at world coordinates:", + worldCoords, + ); this.eventBus.emit( new PingPlacedEvent( this.uiState.currentPingType, diff --git a/src/client/graphics/layers/FxLayer.ts b/src/client/graphics/layers/FxLayer.ts index a1573da48..48856b109 100644 --- a/src/client/graphics/layers/FxLayer.ts +++ b/src/client/graphics/layers/FxLayer.ts @@ -370,7 +370,7 @@ export class FxLayer implements Layer { this.pingEventCleanup = this.eventBus.on( PingPlacedEvent, (event: PingPlacedEvent) => { - console.log("received PingPlacedEvent", event); + console.log("received PingPlacedEvent in FxLayer", event); const pingFx = new PingFx(this.game, event.type, event.tile); this.allFx.push(pingFx); },