Fix: Timeout adjustment

- increase walk_timeout
- increase in_stage_timer
This commit is contained in:
LmeSzinc 2020-05-29 17:22:19 +08:00
parent c402d3e047
commit c01a075554
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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: