From c01a075554bc48defb625f5cc988f624ed2b44ca Mon Sep 17 00:00:00 2001 From: LmeSzinc Date: Fri, 29 May 2020 17:22:19 +0800 Subject: [PATCH] Fix: Timeout adjustment - increase walk_timeout - increase in_stage_timer --- module/handler/enemy_searching.py | 2 +- module/map/fleet.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/handler/enemy_searching.py b/module/handler/enemy_searching.py index 0bcd8b5f4..b217c8ac7 100644 --- a/module/handler/enemy_searching.py +++ b/module/handler/enemy_searching.py @@ -9,7 +9,7 @@ from module.logger import logger class EnemySearchingHandler(InfoHandler): MAP_ENEMY_SEARCHING_OVERLAY_TRANSPARENCY_THRESHOLD = 0.5 # Usually (0.70, 0.80). MAP_ENEMY_SEARCHING_TIMEOUT_SECOND = 5 - in_stage_timer = Timer(1, count=2) + in_stage_timer = Timer(1.5, count=5) def enemy_searching_color_initial(self): MAP_ENEMY_SEARCHING.load_color(self.device.image) diff --git a/module/map/fleet.py b/module/map/fleet.py index d380d587a..996124cd3 100644 --- a/module/map/fleet.py +++ b/module/map/fleet.py @@ -106,7 +106,7 @@ class Fleet(Camera, MapOperation, AmbushHandler): # Wait after ambushed. ambushed_retry = Timer(0.5) # If nothing happens, click again. - walk_timeout = Timer(10) + walk_timeout = Timer(20) walk_timeout.start() while 1: