mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 06:25:24 +00:00
Upd: remove cosmic_fragment cache
This commit is contained in:
parent
e32ba643d9
commit
4ea302a71b
@ -20,13 +20,15 @@ class RogueBonusOcr(Ocr):
|
||||
|
||||
class RogueUI(UI):
|
||||
path: RoguePath
|
||||
cosmic_fragment_cache: int
|
||||
|
||||
@property
|
||||
def cosmic_fragment(self):
|
||||
"""
|
||||
Return valid result only when template appear
|
||||
"""
|
||||
if self.appear(COSMIC_FRAGMENT):
|
||||
self.cosmic_fragment_cache = Digit(OCR_COSMIC_FRAGMENT).ocr_single_line(self.device.image)
|
||||
return self.cosmic_fragment_cache
|
||||
return Digit(OCR_COSMIC_FRAGMENT).ocr_single_line(self.device.image)
|
||||
return 0
|
||||
|
||||
def is_page_choose_blessing(self):
|
||||
return (self.image_color_count(PAGE_CHOOSE_BUFF, (245, 245, 245), count=200)
|
||||
|
Loading…
Reference in New Issue
Block a user