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:
@@ -16,18 +16,19 @@ type
|
||||
headingDelta: float ## heading change in radians this tick
|
||||
|
||||
PatternMatcherGun* = object
|
||||
buf: array[HistorySize, MoveTick]
|
||||
head: int ## next write index (circular)
|
||||
count: int ## filled entries (capped at HistorySize)
|
||||
prevHeading: float
|
||||
prevSpeed: float
|
||||
prevTick: int
|
||||
hasPrev: bool
|
||||
buf: array[HistorySize, MoveTick]
|
||||
head: int ## next write index (circular)
|
||||
count: int ## filled entries (capped at HistorySize)
|
||||
prevHeading: float
|
||||
prevSpeed: float
|
||||
prevTick: int
|
||||
hasPrev: bool
|
||||
# per-tick cache — avoid re-searching for multiple power bins
|
||||
cacheTick: int
|
||||
cacheX: float
|
||||
cacheY: float
|
||||
cacheValid: bool
|
||||
cacheTick: int
|
||||
cacheX: float
|
||||
cacheY: float
|
||||
cacheValid: bool
|
||||
debugGraphics*: bool
|
||||
|
||||
# --- circular buffer helpers ---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user