1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 02:48:23 +08:00

Merge pull request #326 from nEEtdo0d/my_neet

Fix: War Archives Module
This commit is contained in:
Kyo
2021-01-30 13:55:58 -03:00
committed by GitHub
7 changed files with 4 additions and 2 deletions

View File

@@ -115,6 +115,8 @@ class InfoHandler(ModuleBase):
return False
if self.appear(USE_DATA_KEY, offset=(20, 20)):
self.device.click(USE_DATA_KEY_NOTIFIED)
self.device.sleep((0.5, 0.8))
return self.handle_popup_confirm('USE_DATA_KEY')
return False

View File

@@ -23,7 +23,7 @@ class CampaignWarArchives(CampaignRun, CampaignBase):
return False
return super().handle_reward()
def triggered_stop_condition(self):
def triggered_stop_condition(self, oil_check=True):
# Must be in archives campaign to OCR check
if self.appear(WAR_ARCHIVES_CAMPAIGN_CHECK, offset=(20, 20)):
# Check for 0 data keys left to use
@@ -34,7 +34,7 @@ class CampaignWarArchives(CampaignRun, CampaignBase):
return True
# Else, check other stop conditions
return super().triggered_stop_condition()
return super().triggered_stop_condition(oil_check)
def run(self, name=None, folder='campaign_main', total=0):
backup = self.config.cover(USE_DATA_KEY=True)