mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-07 17:01:47 +08:00
Opt: interval shouldn't be used at loop break
This commit is contained in:
@@ -44,7 +44,7 @@ class NewYearChallenge(MinigameRun):
|
|||||||
if self.deal_popup():
|
if self.deal_popup():
|
||||||
continue
|
continue
|
||||||
# entrance
|
# entrance
|
||||||
if self.appear(NEW_YEAR_CHALLENGE_START, offset=(5, 5), interval=3):
|
if self.appear(NEW_YEAR_CHALLENGE_START, offset=(5, 5)):
|
||||||
break
|
break
|
||||||
# GOTO_CHOOSE_GAME -> choose game
|
# GOTO_CHOOSE_GAME -> choose game
|
||||||
if self.appear_then_click(GOTO_CHOOSE_GAME, offset=(5, 5), interval=3):
|
if self.appear_then_click(GOTO_CHOOSE_GAME, offset=(5, 5), interval=3):
|
||||||
@@ -96,6 +96,7 @@ class NewYearChallenge(MinigameRun):
|
|||||||
# game rule introduction
|
# game rule introduction
|
||||||
if self.appear(NEW_YEAR_CHALLENGE_START, offset=(5, 5), interval=3):
|
if self.appear(NEW_YEAR_CHALLENGE_START, offset=(5, 5), interval=3):
|
||||||
if started:
|
if started:
|
||||||
|
self.interval_clear(NEW_YEAR_CHALLENGE_START)
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
started = True
|
started = True
|
||||||
|
|||||||
Reference in New Issue
Block a user