|
1 | 1 | from module.base.button import Button |
2 | 2 | from module.base.decorator import run_once |
3 | 3 | from module.base.timer import Timer |
| 4 | +from module.battle_pass.assets import PURCHASE_POPUP |
4 | 5 | from module.combat.assets import GET_ITEMS_1, GET_SHIP |
5 | 6 | from module.exception import (GameNotRunningError, GamePageUnknownError, |
6 | 7 | RequestHumanTakeover) |
7 | 8 | from module.handler.assets import (AUTO_SEARCH_MENU_EXIT, BATTLE_PASS_NOTICE, |
8 | | - GAME_TIPS, GET_MISSION, LOGIN_ANNOUNCE, |
| 9 | + GAME_TIPS, LOGIN_ANNOUNCE, |
9 | 10 | LOGIN_CHECK, LOGIN_RETURN_SIGN, |
10 | 11 | MONTHLY_PASS_NOTICE) |
11 | 12 | from module.handler.info_handler import InfoHandler |
|
15 | 16 | from module.ocr.ocr import Ocr |
16 | 17 | from module.os_handler.assets import (EXCHANGE_CHECK, RESET_FLEET_PREPARATION, |
17 | 18 | RESET_TICKET_POPUP) |
18 | | -from module.battle_pass.assets import PURCHASE_POPUP |
19 | 19 | from module.raid.assets import RAID_FLEET_PREPARATION |
20 | 20 | from module.ui.assets import (BACK_ARROW, DORM_FEED_CANCEL, DORM_INFO, |
21 | 21 | DORM_TROPHY_CONFIRM, EVENT_LIST_CHECK, GOTO_MAIN, |
@@ -424,7 +424,7 @@ def ui_page_main_popups(self): |
424 | 424 | if self.appear_then_click(PURCHASE_POPUP, offset=(44, -77, 84, -37), interval=3): |
425 | 425 | return True |
426 | 426 | # Item expired offset=(37, 72), skin expired, offset=(24, 68) |
427 | | - if self.appear_then_click(GET_MISSION, offset=(-6, 48, 54, 88), interval=3): |
| 427 | + if self.handle_popup_single(offset=(-6, 48, 54, 88), name='ITEM_EXPIRED'): |
428 | 428 | return True |
429 | 429 |
|
430 | 430 | return False |
|
0 commit comments