mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-27 13:15:38 +08:00
Opt: fix battle logic for A maps in ISSS event
This commit is contained in:
@@ -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()
|
||||||
|
|
||||||
|
|||||||
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user