1
0
mirror of https://github.com/sui-feng-cb/AzurLaneAutoScript1.git synced 2026-08-15 11:43:08 +08:00

Fix: wait_until_manjuu_disappear should wait at least 1.5s (#5093)

* Fix: wait_until_manjuu_disappear should wait at least 1.5s

* Opt: allow manjuu loading until stuck long but not normal stuck
This commit is contained in:
guoh064
2026-08-09 15:04:21 +08:00
committed by GitHub
parent f7f21750e2
commit 29bf47bfd0
2 changed files with 11 additions and 4 deletions

View File

@@ -560,11 +560,18 @@ class InfoHandler(ModuleBase):
"""
Wait until manjuu loading disappear.
"""
# Abuse of notation. Template do not have readable name, so add string here.
self.device.stuck_record_add('TEMPLATE_MANJUU')
timer = Timer(1.5, count=3).start()
while 1:
self.device.screenshot()
if not self.manjuu_count():
break
if self.manjuu_count():
timer.reset()
else:
if timer.reached():
logger.info(f'Manjuu disappeared')
break
def handle_manjuu(self):
"""
Handle manjuu loading.