mirror of
https://github.com/LmeSzinc/AzurLaneAutoScript.git
synced 2025-01-08 11:58:57 +08:00
Fix: Unknown stage name should not be considered as any chapter
This commit is contained in:
parent
ab014c86a7
commit
d3c8221e14
@ -38,8 +38,7 @@ class CampaignBase(CampaignBase_):
|
|||||||
elif name[-1].isdigit():
|
elif name[-1].isdigit():
|
||||||
return name[:-1], name[-1]
|
return name[:-1], name[-1]
|
||||||
|
|
||||||
logger.warning(f'Unknown stage name: {name}')
|
return CampaignBase_._campaign_separate_name(name)
|
||||||
return name[0], name[1:]
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _campaign_get_chapter_index(name):
|
def _campaign_get_chapter_index(name):
|
||||||
|
@ -73,7 +73,7 @@ class CampaignOcr(ModuleBase):
|
|||||||
return '', ''
|
return '', ''
|
||||||
|
|
||||||
logger.warning(f'Unknown stage name: {name}')
|
logger.warning(f'Unknown stage name: {name}')
|
||||||
return name[0], name[1:]
|
return '', ''
|
||||||
|
|
||||||
def campaign_match_multi(self, template, image, stage_image=None, name_offset=(75, 9), name_size=(60, 16),
|
def campaign_match_multi(self, template, image, stage_image=None, name_offset=(75, 9), name_size=(60, 16),
|
||||||
name_letter=(255, 255, 255), name_thresh=128, similarity=0.85):
|
name_letter=(255, 255, 255), name_thresh=128, similarity=0.85):
|
||||||
|
Loading…
Reference in New Issue
Block a user