mirror of
https://github.com/LmeSzinc/AzurLaneAutoScript.git
synced 2025-01-07 08:06:49 +08:00
commit
3733cc516b
@ -139,13 +139,13 @@ class CampaignUI(MapOperation, CampaignEvent, CampaignOcr):
|
|||||||
chapter: 'part1', 'part2', 'sp', 'ex'
|
chapter: 'part1', 'part2', 'sp', 'ex'
|
||||||
"""
|
"""
|
||||||
if chapter in ['part1', 'a', 'c', 't']:
|
if chapter in ['part1', 'a', 'c', 't']:
|
||||||
MODE_SWITCH_20241219.set('part1', main=self)
|
ASIDE_SWITCH_20241219.set('part1', main=self)
|
||||||
elif chapter in ['part2', 'b', 'd']:
|
elif chapter in ['part2', 'b', 'd']:
|
||||||
MODE_SWITCH_20241219.set('part2', main=self)
|
ASIDE_SWITCH_20241219.set('part2', main=self)
|
||||||
elif chapter in ['sp', 'ex_sp']:
|
elif chapter in ['sp', 'ex_sp']:
|
||||||
MODE_SWITCH_20241219.set('sp', main=self)
|
ASIDE_SWITCH_20241219.set('sp', main=self)
|
||||||
elif chapter in ['ex', 'ex_ex']:
|
elif chapter in ['ex', 'ex_ex']:
|
||||||
MODE_SWITCH_20241219.set('sp', main=self)
|
ASIDE_SWITCH_20241219.set('ex', main=self)
|
||||||
else:
|
else:
|
||||||
logger.warning(f'Unknown campaign aside: {chapter}')
|
logger.warning(f'Unknown campaign aside: {chapter}')
|
||||||
|
|
||||||
|
@ -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'
|
||||||
|
Loading…
Reference in New Issue
Block a user