fix(ModularBot): ram loop prevention, dead-target guards, cleaner logging
- 30-tick cooldown after ghost-stuck/timeout ram exit prevents re-entry loop - enemy_tracker.update() skips dead bots to prevent same-tick scan resurrection - TFIL graphics cleared when ramming is active movement - [config] logs: white base with green-highlighted changes only - [ram:enter] logs trigger reason and key values on false→true transition - [death] and [target-invalid] logs retained for diagnostics
This commit is contained in:
@@ -9,8 +9,9 @@ export radar_interface
|
||||
const MaxRadarTurnRate* = 45.0 ## deg/tick — Tank Royale hard limit
|
||||
|
||||
type MeleeScanModule* = object
|
||||
debugGraphics*: bool
|
||||
|
||||
proc initMeleeScan*(): MeleeScanModule = MeleeScanModule()
|
||||
proc initMeleeScan*(): MeleeScanModule = MeleeScanModule(debugGraphics: false)
|
||||
|
||||
proc computeScan*(m: MeleeScanModule, state: WorldState): float =
|
||||
## Always spin at max rate — guarantees full arena coverage every 8 ticks.
|
||||
|
||||
Reference in New Issue
Block a user