Fix: Start running at Himeko trial (#107)

This commit is contained in:
LmeSzinc 2023-09-25 12:23:59 +08:00
parent 2591bb3a28
commit 05072925d5
3 changed files with 19 additions and 8 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

View File

@ -85,13 +85,22 @@ FORGOTTEN_HALL_CHECK = ButtonWrapper(
)
GACHA_CHECK = ButtonWrapper(
name='GACHA_CHECK',
share=Button(
share=[
Button(
file='./assets/share/base/page/GACHA_CHECK.png',
area=(40, 20, 74, 54),
search=(20, 0, 94, 74),
color=(157, 139, 112),
button=(40, 20, 74, 54),
),
Button(
file='./assets/share/base/page/GACHA_CHECK.2.png',
area=(41, 21, 74, 54),
search=(20, 0, 94, 74),
color=(188, 167, 142),
button=(41, 21, 74, 54),
),
],
)
GUIDE_CHECK = ButtonWrapper(
name='GUIDE_CHECK',

View File

@ -15,8 +15,10 @@ class CharacterTrial(UI):
"""
logger.info('Enter Himeko trial')
switched = False
if self.match_template_color(HIMEKO_CHECK):
if self.appear(HIMEKO_CHECK):
logger.info(f'Already at {HIMEKO_CHECK}')
elif self.match_template_color(START_TRIAL):
logger.info(f'Already at {START_TRIAL}')
elif self.match_template_color(REGULAR_GACHA_CHECK):
logger.info(f'Already at {REGULAR_GACHA_CHECK}')
elif self.ui_page_appear(page_gacha):