1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-28 01:59:43 +08:00

Fix: ensure project after production

This commit is contained in:
2025-10-07 16:44:54 +08:00
parent 2af5b856f3
commit 20fa3ff1e8
2 changed files with 11 additions and 2 deletions

View File

@@ -263,7 +263,7 @@ class Island(IslandUI):
self.device.drag(p1, p2, segments=2, shake=(0, 25), point_random=(0, 0, 0, 0), shake_random=(0, -5, 0, 5))
self.device.sleep(sleep)
def ensure_project(self, project: IslandProject, trial=5, skip_first_screenshot=True):
def ensure_project(self, project: IslandProject, trial=7, skip_first_screenshot=True):
for _ in range(trial):
if skip_first_screenshot:
skip_first_screenshot = False
@@ -271,6 +271,8 @@ class Island(IslandUI):
self.device.screenshot()
projects = self.project_detect(self.device.image)
if not projects:
continue
if project.name in projects.get('name'):
break