1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-27 16:45:37 +08:00

Opt: fix battle logic for A maps in ISSS event

This commit is contained in:
whoamikyo
2020-07-20 13:46:33 -03:00
parent bc7b8175db
commit ef180bef69
2 changed files with 4 additions and 4 deletions

View File

@@ -63,10 +63,6 @@ class Campaign(CampaignBase):
def battle_3(self): def battle_3(self):
self.fleet_boss.clear_enemy() self.fleet_boss.clear_enemy()
if self.clear_roadblocks([road_main]):
return True
if self.clear_potential_roadblocks([road_main]):
return True
return self.fleet_boss.clear_boss() return self.fleet_boss.clear_boss()

View File

@@ -64,6 +64,10 @@ class Ocr:
""" """
image = extract_letters(image, letter=self.letter, threshold=self.threshold) image = extract_letters(image, letter=self.letter, threshold=self.threshold)
# un-comment to see the image feed to ocr model
# Image.fromarray(image.astype('uint8')).show()
return image.astype(np.uint8) return image.astype(np.uint8)
def after_process(self, result): def after_process(self, result):