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 <noreply@anthropic.com>
This commit is contained in:
2026-09-16 08:20:55 +02:00
parent 7c0c304418
commit 21ed6e50e1
+1 -1
View File
@@ -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 ─────────────────────────────────────────────────────────