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

fix(tc): restrict count frequency of claim reward

This commit is contained in:
YoursFunny 2023-11-22 22:00:51 +08:00
parent 04744d6f8c
commit 256dc96598
Signed by: YoursFunny
GPG Key ID: 207EDC3CD5B40F9C

View File

@ -32,10 +32,10 @@ class TacticalChallengeUI(UI):
if self.match_color(GOT_REWARD_DAILY) and self.match_color(GOT_REWARD_CREDIT):
return True
if self.match_color(GET_REWARD_DAILY):
self.device.click(GET_REWARD_DAILY)
self.click_with_interval(GET_REWARD_DAILY, 0.3)
logger.info('Get daily reward')
if self.match_color(GET_REWARD_CREDIT):
self.device.click(GET_REWARD_CREDIT)
self.click_with_interval(GET_REWARD_CREDIT, 0.3)
logger.info('Get credit reward')
if timer.reached():
return False