From b93d0c170632eb4a383f6aec67b4cd71180f4984 Mon Sep 17 00:00:00 2001 From: sui-feng-cb <2518179942@qq.com> Date: Mon, 24 Nov 2025 14:35:19 +0800 Subject: [PATCH] Fix: island project complete --- module/island/project.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/module/island/project.py b/module/island/project.py index 13f55aca9..13c6087da 100644 --- a/module/island/project.py +++ b/module/island/project.py @@ -324,7 +324,6 @@ class IslandProjectRun(IslandUI): success = False enter = True click_timer = Timer(5, count=10).start() - timeout = Timer(3, count=6).start() while 1: if skip_first_screenshot: skip_first_screenshot = False @@ -334,40 +333,34 @@ class IslandProjectRun(IslandUI): if self.island_in_management(interval=5): self.device.click(button) click_timer.reset() - timeout.reset() continue if self.appear_then_click(ISLAND_MANAGEMENT, offset=(20, 20), interval=2): click_timer.reset() - timeout.reset() continue if self.handle_info_bar(): click_timer.reset() - timeout.reset() continue if enter and self.appear_then_click(ROLE_SELECT_ENTER, offset=(5, 5), interval=2): success = True self.interval_clear(GET_ITEMS_ISLAND) click_timer.reset() - timeout.reset() continue - if self.appear_then_click(PROJECT_COMPLETE, offset=(20, 20), interval=2): + if self.appear_then_click(PROJECT_COMPLETE, offset=(20, 20), interval=1): success = True enter = False self.interval_clear(GET_ITEMS_ISLAND) self.interval_reset(ROLE_SELECT_ENTER) click_timer.reset() - timeout.reset() continue if self.handle_get_items(): enter = True self.interval_clear(ROLE_SELECT_ENTER) click_timer.reset() - timeout.reset() continue # handle island level up @@ -375,13 +368,10 @@ class IslandProjectRun(IslandUI): self.device.click(GET_ITEMS_ISLAND) self.device.sleep(0.3) click_timer.reset() - timeout.reset() continue if self.appear(ROLE_SELECT_CONFIRM, offset=(20, 20)): break - if timeout.reached(): - break if not success: product = IslandProduct(self.device.image)