mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 06:25:24 +00:00
parent
51e49e2077
commit
9aaadc4136
Binary file not shown.
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
@ -157,10 +157,10 @@ DAILY_QUEST_FULL = ButtonWrapper(
|
|||||||
name='DAILY_QUEST_FULL',
|
name='DAILY_QUEST_FULL',
|
||||||
cn=Button(
|
cn=Button(
|
||||||
file='./assets/cn/daily/reward/DAILY_QUEST_FULL.png',
|
file='./assets/cn/daily/reward/DAILY_QUEST_FULL.png',
|
||||||
area=(159, 546, 298, 564),
|
area=(164, 574, 301, 592),
|
||||||
search=(139, 526, 318, 584),
|
search=(144, 554, 321, 612),
|
||||||
color=(128, 111, 80),
|
color=(131, 113, 82),
|
||||||
button=(159, 546, 298, 564),
|
button=(164, 574, 301, 592),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
DAILY_QUEST_GOTO = ButtonWrapper(
|
DAILY_QUEST_GOTO = ButtonWrapper(
|
||||||
|
@ -116,7 +116,11 @@ class DailyQuestUI(DungeonUI):
|
|||||||
else:
|
else:
|
||||||
self.device.screenshot()
|
self.device.screenshot()
|
||||||
|
|
||||||
if self.appear(DAILY_QUEST_FULL) or self.appear(DAILY_QUEST_GOTO):
|
if self.appear(DAILY_QUEST_FULL):
|
||||||
|
logger.info('No more quests to get, activity full')
|
||||||
|
break
|
||||||
|
if self.appear(DAILY_QUEST_GOTO):
|
||||||
|
logger.info('No more quests to get, have quests uncompleted')
|
||||||
break
|
break
|
||||||
if self.appear_then_click(DAILY_QUEST_REWARD, interval=1):
|
if self.appear_then_click(DAILY_QUEST_REWARD, interval=1):
|
||||||
continue
|
continue
|
||||||
@ -155,6 +159,7 @@ class DailyQuestUI(DungeonUI):
|
|||||||
self.device.screenshot()
|
self.device.screenshot()
|
||||||
|
|
||||||
if self._no_reward_to_get():
|
if self._no_reward_to_get():
|
||||||
|
logger.info('No more reward to get')
|
||||||
break
|
break
|
||||||
if self.handle_reward():
|
if self.handle_reward():
|
||||||
continue
|
continue
|
||||||
@ -192,7 +197,7 @@ class DailyQuestUI(DungeonUI):
|
|||||||
in: Any
|
in: Any
|
||||||
out: page_guide, Daily_Training
|
out: page_guide, Daily_Training
|
||||||
"""
|
"""
|
||||||
logger.hr('Get daily rewards', level=2)
|
logger.hr('Get daily rewards', level=1)
|
||||||
self.dungeon_tab_goto(KEYWORDS_DUNGEON_TAB.Daily_Training)
|
self.dungeon_tab_goto(KEYWORDS_DUNGEON_TAB.Daily_Training)
|
||||||
logger.info("Getting quest rewards")
|
logger.info("Getting quest rewards")
|
||||||
self._get_quest_reward()
|
self._get_quest_reward()
|
||||||
|
Loading…
Reference in New Issue
Block a user