mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-23 04:03:43 +08:00
Fix: Handle skin and item expired (fixed #1309)
This commit is contained in:
@@ -5,8 +5,9 @@ from module.combat.assets import GET_ITEMS_1, GET_SHIP
|
|||||||
from module.exception import (GameNotRunningError, GamePageUnknownError,
|
from module.exception import (GameNotRunningError, GamePageUnknownError,
|
||||||
RequestHumanTakeover)
|
RequestHumanTakeover)
|
||||||
from module.handler.assets import (AUTO_SEARCH_MENU_EXIT, BATTLE_PASS_NOTICE,
|
from module.handler.assets import (AUTO_SEARCH_MENU_EXIT, BATTLE_PASS_NOTICE,
|
||||||
GAME_TIPS, LOGIN_ANNOUNCE, LOGIN_CHECK,
|
GAME_TIPS, GET_MISSION, LOGIN_ANNOUNCE,
|
||||||
LOGIN_RETURN_SIGN, MONTHLY_PASS_NOTICE)
|
LOGIN_CHECK, LOGIN_RETURN_SIGN,
|
||||||
|
MONTHLY_PASS_NOTICE)
|
||||||
from module.handler.info_handler import InfoHandler
|
from module.handler.info_handler import InfoHandler
|
||||||
from module.logger import logger
|
from module.logger import logger
|
||||||
from module.map.assets import (FLEET_PREPARATION, MAP_PREPARATION,
|
from module.map.assets import (FLEET_PREPARATION, MAP_PREPARATION,
|
||||||
@@ -402,6 +403,9 @@ class UI(InfoHandler):
|
|||||||
return True
|
return True
|
||||||
if self.appear_then_click(PURCHASE_POPUP, offset=(44, -77, 84, -37), interval=3):
|
if self.appear_then_click(PURCHASE_POPUP, offset=(44, -77, 84, -37), interval=3):
|
||||||
return True
|
return True
|
||||||
|
# Item expired offset=(37, 72), skin expired, offset=(24, 68)
|
||||||
|
if self.appear_then_click(GET_MISSION, offset=(-6, 48, 54, 88), interval=3):
|
||||||
|
return True
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user