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:
@@ -20,9 +20,11 @@ type
|
||||
waves: seq[DWave]
|
||||
cachedTick: int
|
||||
cachedWaveStored: bool
|
||||
debugGraphics*: bool
|
||||
|
||||
proc initDecayGFGun*(): DecayGFGun =
|
||||
result.cachedTick = -1
|
||||
result.debugGraphics = false
|
||||
let center = (GFBins - 1) div 2
|
||||
for i in 0..<GFBins:
|
||||
let d = abs(i - center)
|
||||
|
||||
Reference in New Issue
Block a user