mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-14 11:49:26 +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):
|
||||
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()
|
||||
|
||||
|
||||
@@ -64,6 +64,10 @@ class Ocr:
|
||||
"""
|
||||
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)
|
||||
|
||||
def after_process(self, result):
|
||||
|
||||
Reference in New Issue
Block a user