1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-19 10:43:33 +08:00

Refactor: Gems farming configs

- Opt: Avoid clicking AUTO_SEARCH_MAP_OPTION_OFF after ignore low emotion warn
- Opt: Skip map cat attack in auto search
This commit is contained in:
LmeSzinc
2021-09-16 00:43:05 +08:00
parent e140d0d3ac
commit 5dd0459de9
13 changed files with 2511 additions and 64 deletions

View File

@@ -343,7 +343,7 @@ class Retirement(Enhancement):
Returns:
Button:
"""
if self.config.COMMON_CV_NAME == 'any':
if self.config.GemsFarming_CommonCV == 'any':
for commen_cv_name in ['BOGUE', 'HERMES', 'LANGLEY', 'RANGER']:
template = globals()[f'TEMPLATE_{commen_cv_name}']
sim, button = template.match_result(self.device.image.resize(size=(1189, 669)))
@@ -355,7 +355,7 @@ class Retirement(Enhancement):
return None
else:
template = globals()[f'TEMPLATE_{self.config.COMMON_CV_NAME.upper()}']
template = globals()[f'TEMPLATE_{self.config.GemsFarming_CommonCV.upper()}']
sim, button = template.match_result(self.device.image.resize(size=(1189, 669)))
if sim > self.config.COMMON_CV_THRESHOLD: