Upd: [CN] DAILY_QUEST_FULL (#76)

And add logs to _get_quest_reward()
This commit is contained in:
LmeSzinc 2023-08-31 01:25:10 +08:00
parent 51e49e2077
commit 9aaadc4136
3 changed files with 11 additions and 6 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

@ -157,10 +157,10 @@ DAILY_QUEST_FULL = ButtonWrapper(
name='DAILY_QUEST_FULL',
cn=Button(
file='./assets/cn/daily/reward/DAILY_QUEST_FULL.png',
area=(159, 546, 298, 564),
search=(139, 526, 318, 584),
color=(128, 111, 80),
button=(159, 546, 298, 564),
area=(164, 574, 301, 592),
search=(144, 554, 321, 612),
color=(131, 113, 82),
button=(164, 574, 301, 592),
),
)
DAILY_QUEST_GOTO = ButtonWrapper(

View File

@ -116,7 +116,11 @@ class DailyQuestUI(DungeonUI):
else:
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
if self.appear_then_click(DAILY_QUEST_REWARD, interval=1):
continue
@ -155,6 +159,7 @@ class DailyQuestUI(DungeonUI):
self.device.screenshot()
if self._no_reward_to_get():
logger.info('No more reward to get')
break
if self.handle_reward():
continue
@ -192,7 +197,7 @@ class DailyQuestUI(DungeonUI):
in: Any
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)
logger.info("Getting quest rewards")
self._get_quest_reward()