1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-04-02 06:04:09 +08:00

Fix: get_event_story_state should not have interval

This commit is contained in:
LmeSzinc
2025-01-02 00:49:13 +08:00
parent f434784c6e
commit 39546d55c6

View File

@@ -109,16 +109,16 @@ class EventStory(CampaignUI, Combat, LoginHandler):
Returns: Returns:
str: 'finish', 'story', 'unknown' 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' 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' 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' 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' 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 'story'
return 'unknown' return 'unknown'