1
0
mirror of https://github.com/TheFunny/ArisuAutoSweeper synced 2025-12-16 22:05:12 +00:00

fix(task): check all claimed

This commit is contained in:
YoursFunny 2023-12-23 16:21:46 +08:00
parent ba9472d0b1
commit be3fdb0988
Signed by: YoursFunny
GPG Key ID: 207EDC3CD5B40F9C
4 changed files with 26 additions and 1 deletions

BIN
assets/en/task/CLAIMED.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@ -14,6 +14,28 @@ CLAIM = ButtonWrapper(
button=(935, 639, 1015, 698),
),
)
CLAIMED = ButtonWrapper(
name='CLAIMED',
jp=None,
en=Button(
file='./assets/en/task/CLAIMED.png',
area=(937, 641, 1010, 696),
search=(917, 621, 1030, 716),
color=(212, 212, 211),
button=(937, 641, 1010, 696),
),
)
CLAIMED_ALL = ButtonWrapper(
name='CLAIMED_ALL',
jp=None,
en=Button(
file='./assets/en/task/CLAIMED_ALL.png',
area=(1058, 641, 1240, 701),
search=(1038, 621, 1260, 720),
color=(193, 193, 196),
button=(1058, 641, 1240, 701),
),
)
CLAIM_ALL = ButtonWrapper(
name='CLAIM_ALL',
jp=None,

View File

@ -4,6 +4,7 @@ from tasks.base.page import page_task
from tasks.base.ui import UI
from tasks.task.assets.assets_task import *
class Task(UI):
def run(self):
self.ui_ensure(page_task)
@ -22,6 +23,8 @@ class Task(UI):
self.device.click(CLAIM)
logger.info("Click Claim")
continue
break
if self.match_color(CLAIMED) and self.match_color(CLAIMED_ALL):
logger.info("All claimed")
break
self.config.task_delay(minute=120)