mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-19 23:33:33 +08:00
Fix: PrivateQuarters check asset may appear for an instant before character dialogue thereby exiting loop too early; this will help mitigate it
This commit is contained in:
@@ -165,11 +165,12 @@ class PQInteract(UI):
|
|||||||
self.device.screenshot()
|
self.device.screenshot()
|
||||||
|
|
||||||
# End
|
# End
|
||||||
if self.appear(PRIVATE_QUARTERS_ROOM_CHECK, offset=(20, 20)):
|
if self.appear(PRIVATE_QUARTERS_ROOM_CHECK, offset=(20, 20), interval=1):
|
||||||
break
|
break
|
||||||
|
|
||||||
# Continue without clicking, mitigate too many click exception
|
# Continue without clicking, mitigate too many click exception
|
||||||
if self.appear(PRIVATE_QUARTERS_LOADING_CHECK, offset=(20, 20)):
|
if self.appear(PRIVATE_QUARTERS_LOADING_CHECK, offset=(20, 20)):
|
||||||
|
self.interval_reset(PRIVATE_QUARTERS_ROOM_CHECK)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if click_timer.reached():
|
if click_timer.reached():
|
||||||
|
|||||||
Reference in New Issue
Block a user