mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-18 01:01:29 +08:00
Fix: Expand GET_ITEMS_1_RYZA to handle multiple drop rows
This commit is contained in:
@@ -83,7 +83,7 @@ class CampaignBase(CampaignBase_):
|
|||||||
# Handle a different GET_ITEMS_1
|
# Handle a different GET_ITEMS_1
|
||||||
if super().handle_mystery_items(button, drop=drop):
|
if super().handle_mystery_items(button, drop=drop):
|
||||||
return True
|
return True
|
||||||
if self.appear(GET_ITEMS_1_RYZA, offset=(20, 20)):
|
if self.appear(GET_ITEMS_1_RYZA, offset=(-20, -100, 20, 20)):
|
||||||
logger.attr('Mystery', 'Get item')
|
logger.attr('Mystery', 'Get item')
|
||||||
if drop:
|
if drop:
|
||||||
drop.add(self.device.image)
|
drop.add(self.device.image)
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ class Camera(MapOperation):
|
|||||||
# Don't use handle_mystery() here since OpSi overrides it.
|
# Don't use handle_mystery() here since OpSi overrides it.
|
||||||
self.device.click(GET_ITEMS_1)
|
self.device.click(GET_ITEMS_1)
|
||||||
return False
|
return False
|
||||||
elif self.appear(GET_ITEMS_1_RYZA, offset=(20, 20)):
|
elif self.appear(GET_ITEMS_1_RYZA, offset=(-20, -100, 20, 20)):
|
||||||
logger.warning('Perspective error caused by GET_ITEMS_1_RYZA')
|
logger.warning('Perspective error caused by GET_ITEMS_1_RYZA')
|
||||||
self.device.click(GET_ITEMS_1_RYZA)
|
self.device.click(GET_ITEMS_1_RYZA)
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user