mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 23:18:22 +08:00
Upd: Battle pass assets
This commit is contained in:
@@ -69,14 +69,17 @@ class BattlePass(Combat, UI):
|
||||
else:
|
||||
self.device.screenshot()
|
||||
|
||||
if self.appear_then_click(REWARD_RECEIVE, offset=(20, 20), interval=2):
|
||||
if self.appear_then_click(REWARD_RECEIVE, offset=(20, 20), interval=3):
|
||||
confirm_timer.reset()
|
||||
continue
|
||||
if self.appear(REWARD_RECEIVE_SP, offset=(20, 20), interval=2) \
|
||||
if self.appear(REWARD_RECEIVE_SP, offset=(20, 20), interval=3) \
|
||||
and REWARD_RECEIVE_SP.match_appear_on(self.device.image, threshold=15):
|
||||
self.device.click(REWARD_RECEIVE_SP)
|
||||
confirm_timer.reset()
|
||||
continue
|
||||
if self.appear_then_click(REWARD_RECEIVE_WHITE, offset=(20, 20), interval=3):
|
||||
confirm_timer.reset()
|
||||
continue
|
||||
if self.handle_battle_pass_popup():
|
||||
confirm_timer.reset()
|
||||
continue
|
||||
@@ -98,7 +101,9 @@ class BattlePass(Combat, UI):
|
||||
continue
|
||||
|
||||
# End
|
||||
if self.appear(BATTLE_PASS_CHECK, offset=(20, 20)) and not self.appear(REWARD_RECEIVE, offset=(20, 20)):
|
||||
if self.appear(BATTLE_PASS_CHECK, offset=(20, 20)) \
|
||||
and not self.appear(REWARD_RECEIVE, offset=(20, 20)) \
|
||||
and not self.appear(REWARD_RECEIVE_WHITE, offset=(20, 20)):
|
||||
if confirm_timer.reached():
|
||||
break
|
||||
else:
|
||||
@@ -110,6 +115,6 @@ class BattlePass(Combat, UI):
|
||||
def run(self):
|
||||
self.ui_ensure(page_reward)
|
||||
|
||||
if self.battle_pass_red_dot_appear():
|
||||
self.battle_pass_enter()
|
||||
self.battle_pass_receive()
|
||||
# if self.battle_pass_red_dot_appear():
|
||||
self.battle_pass_enter()
|
||||
self.battle_pass_receive()
|
||||
|
||||
Reference in New Issue
Block a user