From 21ed6e50e1a2dc5590b497fbdfe63882d448da35 Mon Sep 17 00:00:00 2001 From: Davide Cappellini Date: Wed, 16 Sep 2026 08:20:55 +0200 Subject: [PATCH] fix(SNNBot): correct bullet hit event handler registration The event handler was named `onBulletHitBotEvent` but the Tank Royale API calls `onBulletHit`. Renamed to match the actual dispatch signature used by all other bots, so bullets hit counter will now increment correctly. Co-Authored-By: Claude Opus 4.6 --- SNNBot_garage/src/SNNBot.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SNNBot_garage/src/SNNBot.nim b/SNNBot_garage/src/SNNBot.nim index 049cd4c..8842a58 100644 --- a/SNNBot_garage/src/SNNBot.nim +++ b/SNNBot_garage/src/SNNBot.nim @@ -283,7 +283,7 @@ method onGameStarted*(bot: SNNBot, e: GameStartedEventForBot) = initSNN(bot.snn) bot.res = initBinaryAimer() -method onBulletHitBotEvent*(bot: SNNBot, e: BulletHitBotEvent) = +method onBulletHit*(bot: SNNBot, e: BulletHitBotEvent) = inc bot.bulletsHit # ── Reservoir helpers ─────────────────────────────────────────────────────────