mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-25 18:05:26 +00:00
Fix: Retry detection on world 0
This commit is contained in:
parent
1b0bb2bce1
commit
1d14c7cb72
@ -110,9 +110,11 @@ class RogueEntry(DungeonUI, RogueRewardHandler, RoguePathHandler, RouteBase):
|
||||
|
||||
if self.is_page_rogue_main() \
|
||||
and self.image_color_count(OCR_WORLD, color=(255, 255, 255), threshold=221, count=50):
|
||||
# End
|
||||
current = ocr.ocr_single_line(self.device.image)
|
||||
if current and current == world:
|
||||
if not current:
|
||||
continue
|
||||
# End
|
||||
if current == world:
|
||||
logger.info(f'At world {world}')
|
||||
break
|
||||
# Click
|
||||
|
Loading…
Reference in New Issue
Block a user