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

Add: custom common cv filter

This commit is contained in:
sui-feng-cb
2025-03-23 12:12:18 +08:00
parent a394ad69cd
commit 0e6c1c4111
9 changed files with 21 additions and 13 deletions

View File

@@ -536,8 +536,10 @@ class Retirement(Enhancement, QuickRetireSettingHandler):
Returns:
Button:
"""
if self.config.GemsFarming_CommonCV in ['any', 'eagle']:
common_cv = self.get_common_cv_filter(self.config.GemsFarming_CommonCVFilter, output=False)
preset = self.config.GemsFarming_CommonCV
if preset in ['custom', 'any', 'eagle']:
filter_string = self.config.GemsFarming_CommonCVFilter if preset == 'custom' else self.config.COMMON_CV_FILTER
common_cv = self.get_common_cv_filter(filter_string, output=False)
if self.config.GemsFarming_CommonCV == 'eagle' and 'hermes' in common_cv:
common_cv.remove('hermes')
logger.attr('Filter sort', ' > '.join(common_cv))