mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-10 10:47:09 +08:00
Merge pull request #338 from noname94/patch1
Fix: GET_ITEMS_1 raises MapDetectionError
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
|
from module.combat.assets import GET_ITEMS_1
|
||||||
from module.exception import MapDetectionError, CampaignEnd
|
from module.exception import MapDetectionError, CampaignEnd
|
||||||
from module.handler.assets import IN_MAP, GAME_TIPS
|
from module.handler.assets import IN_MAP, GAME_TIPS
|
||||||
from module.logger import logger
|
from module.logger import logger
|
||||||
@@ -98,6 +99,10 @@ class Camera(MapOperation):
|
|||||||
logger.info('Perspective error cause by info bar. Waiting.')
|
logger.info('Perspective error cause by info bar. Waiting.')
|
||||||
self.handle_info_bar()
|
self.handle_info_bar()
|
||||||
return self.update(camera=camera)
|
return self.update(camera=camera)
|
||||||
|
elif self.appear(GET_ITEMS_1):
|
||||||
|
logger.warning('Items got. Trying handling mystery.')
|
||||||
|
self.handle_mystery()
|
||||||
|
return self.update(camera=camera)
|
||||||
elif self.is_in_stage():
|
elif self.is_in_stage():
|
||||||
logger.warning('Image is in stage')
|
logger.warning('Image is in stage')
|
||||||
raise CampaignEnd('Image is in stage')
|
raise CampaignEnd('Image is in stage')
|
||||||
|
|||||||
Reference in New Issue
Block a user