fix(SNNBot): use 2° error gate for firing, remove unreliable gunTurnRemaining check
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -390,7 +390,7 @@ method run*(bot: SNNBot) =
|
|||||||
|
|
||||||
# Fire gate: gun must be aimed and settled before firing
|
# Fire gate: gun must be aimed and settled before firing
|
||||||
let energy = getEnergy()
|
let energy = getEnergy()
|
||||||
let readyToFire = err < 1.0 and abs(getGunTurnRemaining()) < 1.0 and energy >= ENERGY_GUARD and bot.roundTick >= PATIENCE_TICKS
|
let readyToFire = err < 2.0 and energy >= ENERGY_GUARD and bot.roundTick >= PATIENCE_TICKS
|
||||||
if readyToFire:
|
if readyToFire:
|
||||||
bot.lastBulletSpeed = P2_SPEED
|
bot.lastBulletSpeed = P2_SPEED
|
||||||
discard setFire(2.0)
|
discard setFire(2.0)
|
||||||
|
|||||||
Reference in New Issue
Block a user