mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-19 23:33:33 +08:00
Fix: Retirement retry on slow PCs
This commit is contained in:
@@ -80,7 +80,15 @@ class Retirement(Enhancement):
|
|||||||
else:
|
else:
|
||||||
self.device.screenshot()
|
self.device.screenshot()
|
||||||
|
|
||||||
if self.appear_then_click(SHIP_CONFIRM, offset=(30, 30), interval=2):
|
# End
|
||||||
|
if executed and self.appear(IN_RETIREMENT_CHECK):
|
||||||
|
self.handle_info_bar()
|
||||||
|
break
|
||||||
|
|
||||||
|
# Click
|
||||||
|
if self.appear(SHIP_CONFIRM, offset=(30, 30), interval=2) \
|
||||||
|
and SHIP_CONFIRM.match_appear_on(self.device.image):
|
||||||
|
self.device.click(SHIP_CONFIRM)
|
||||||
continue
|
continue
|
||||||
if self.appear(SHIP_CONFIRM_2, offset=(30, 30), interval=2):
|
if self.appear(SHIP_CONFIRM_2, offset=(30, 30), interval=2):
|
||||||
if self.config.RETIRE_KEEP_COMMON_CV and not self._have_keeped_cv:
|
if self.config.RETIRE_KEEP_COMMON_CV and not self._have_keeped_cv:
|
||||||
@@ -107,11 +115,6 @@ class Retirement(Enhancement):
|
|||||||
self.appear_then_click(SR_SSR_CONFIRM, offset=self._popup_offset, interval=2):
|
self.appear_then_click(SR_SSR_CONFIRM, offset=self._popup_offset, interval=2):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# End
|
|
||||||
if executed and self.appear(IN_RETIREMENT_CHECK):
|
|
||||||
self.handle_info_bar()
|
|
||||||
break
|
|
||||||
|
|
||||||
self._popup_offset = backup
|
self._popup_offset = backup
|
||||||
|
|
||||||
def retirement_appear(self):
|
def retirement_appear(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user