mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-19 00:13:35 +08:00
Fix: _archives_loading_complete
This commit is contained in:
@@ -42,9 +42,9 @@ class CampaignBase(CampaignBase_):
|
|||||||
template = dic_archives_template[war_archive_folder]
|
template = dic_archives_template[war_archive_folder]
|
||||||
loading_result = template.match(self.device.image)
|
loading_result = template.match(self.device.image)
|
||||||
if loading_result:
|
if loading_result:
|
||||||
break
|
return True
|
||||||
|
|
||||||
return loading_result
|
return False
|
||||||
|
|
||||||
def _search_archives_entrance(self, name, skip_first_screenshot=True):
|
def _search_archives_entrance(self, name, skip_first_screenshot=True):
|
||||||
"""
|
"""
|
||||||
@@ -68,7 +68,6 @@ class CampaignBase(CampaignBase_):
|
|||||||
|
|
||||||
while not self._archives_loading_complete():
|
while not self._archives_loading_complete():
|
||||||
self.device.screenshot()
|
self.device.screenshot()
|
||||||
self.device.sleep(0.5)
|
|
||||||
|
|
||||||
entrance = self._get_archives_entrance(name)
|
entrance = self._get_archives_entrance(name)
|
||||||
if entrance is not None:
|
if entrance is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user