mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 06:25:24 +00:00
Upd: remove 'the' in RoguePath keywords
This commit is contained in:
parent
39f161af10
commit
961e225bb1
@ -22,6 +22,8 @@ BLESSING_FILTER_ATTR = tuple()
|
||||
PATH_ATTR_NAME = 'path_name'
|
||||
path_regex = get_regex_from_keyword_name(RoguePath, PATH_ATTR_NAME)
|
||||
pattern += path_regex
|
||||
# remove 'the' in path 'the hunt'
|
||||
pattern = pattern.lower().replace('the', '')
|
||||
BLESSING_FILTER_ATTR += (PATH_ATTR_NAME,)
|
||||
|
||||
# rarity
|
||||
@ -111,7 +113,7 @@ class RogueBlessingSelector(RogueSelector):
|
||||
return keyword != KEYWORDS_ROGUE_ENHANCEMENT.Already_Enhanced
|
||||
|
||||
self.ocr_results = []
|
||||
# self._wait_until_blessing_loaded()
|
||||
self._wait_until_blessing_loaded()
|
||||
ocr = RogueBuffOcr(OCR_ROGUE_BUFF)
|
||||
results = ocr.matched_ocr(self.main.device.image,
|
||||
[RogueBlessing, RogueResonance, RogueEnhancement])
|
||||
|
@ -29,7 +29,7 @@ class RoguePath(Keyword):
|
||||
|
||||
@property
|
||||
def path_name(self):
|
||||
return [self.__getattribute__(f"{server}_parsed")
|
||||
return [self.__getattribute__(f"{server}_parsed").replace("the", '')
|
||||
for server in UI_LANGUAGES if hasattr(self, f"{server}_parsed")]
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user