From 989b6f9118d0192c82528a01773934c7cbceac6b Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Fri, 20 Feb 2026 04:04:01 -0500 Subject: [PATCH] refactor: update IdleState to include periodic fuel checks and adjust sleep duration --- server/states/IdleState.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server/states/IdleState.js b/server/states/IdleState.js index d5171dc..50c32a0 100644 --- a/server/states/IdleState.js +++ b/server/states/IdleState.js @@ -13,12 +13,11 @@ export class IdleState extends BaseState { } async *act() { - // Send periodic status updates while idle + // Periodic fuel check while idle (no scanning — avoids rotating turtle) while (!this.cancelled) { await this.checkFuel(); - await this.scanSurroundings(); yield; - await this._sleep(5000); + await this._sleep(10000); } } }