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:
@@ -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 ─────────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user