1
0
mirror of https://github.com/TheFunny/ArisuAutoSweeper synced 2026-01-07 14:05:12 +00:00

Compare commits

...

2 Commits

Author SHA1 Message Date
0f6dd93608
fix(sweep): remove index if equal 0 2023-12-09 21:22:11 +08:00
f5cf0a7fbe
fix(tc): add handle ui_additional 2023-12-07 18:24:09 +08:00
2 changed files with 3 additions and 1 deletions

View File

@ -53,7 +53,7 @@ class StageList:
def load_stage_indexes(self, main: ModuleBase):
self.current_indexes = list(
filter(
lambda x: re.match(r'^\d{1,2}-?\d?$', x[0]),
lambda x: re.match(r'^\d{1,2}-?\d?$', x[0]) and x[0] != '00',
map(lambda x: (x.ocr_text, x.box), self.index_ocr.detect_and_ocr(main.device.image))
)
)

View File

@ -41,6 +41,8 @@ class TacticalChallenge(TacticalChallengeUI):
def _handle_challenge(self, status):
match status:
case TCStatus.REWARD:
if self.ui_additional():
return status
if self.get_reward():
return TCStatus.OCR
case TCStatus.OCR: