mirror of
https://github.com/LmeSzinc/AzurLaneAutoScript.git
synced 2025-01-07 07:47:07 +08:00
Fix: get_event_story_state should not have interval
This commit is contained in:
parent
f434784c6e
commit
39546d55c6
@ -109,16 +109,16 @@ class EventStory(CampaignUI, Combat, LoginHandler):
|
||||
Returns:
|
||||
str: 'finish', 'story', 'unknown'
|
||||
"""
|
||||
if self.match_template_color(STORY_FINISHED, offset=(20, 20), interval=3):
|
||||
if self.match_template_color(STORY_FINISHED, offset=(20, 20)):
|
||||
return 'finish'
|
||||
|
||||
if self.appear_then_click(STORY_FIRST, offset=(20, 20), interval=3):
|
||||
if self.appear_then_click(STORY_FIRST, offset=(20, 20)):
|
||||
return 'story'
|
||||
if self.match_template_color(STORY_LAST, offset=(20, 20), interval=3):
|
||||
if self.match_template_color(STORY_LAST, offset=(20, 20)):
|
||||
return 'story'
|
||||
if self.appear_then_click(STORY_MIDDLE, offset=(20, 200), interval=3):
|
||||
if self.appear_then_click(STORY_MIDDLE, offset=(20, 200)):
|
||||
return 'story'
|
||||
if self.appear_then_click(BATTLE_MIDDLE, offset=(20, 200), interval=3):
|
||||
if self.appear_then_click(BATTLE_MIDDLE, offset=(20, 200)):
|
||||
return 'story'
|
||||
|
||||
return 'unknown'
|
||||
|
Loading…
Reference in New Issue
Block a user