mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-01-19 16:25:31 +00:00
Compare commits
2 Commits
16d78e1e16
...
0f6dd93608
| Author | SHA1 | Date | |
|---|---|---|---|
| 0f6dd93608 | |||
| f5cf0a7fbe |
@ -53,7 +53,7 @@ class StageList:
|
|||||||
def load_stage_indexes(self, main: ModuleBase):
|
def load_stage_indexes(self, main: ModuleBase):
|
||||||
self.current_indexes = list(
|
self.current_indexes = list(
|
||||||
filter(
|
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))
|
map(lambda x: (x.ocr_text, x.box), self.index_ocr.detect_and_ocr(main.device.image))
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
@ -41,6 +41,8 @@ class TacticalChallenge(TacticalChallengeUI):
|
|||||||
def _handle_challenge(self, status):
|
def _handle_challenge(self, status):
|
||||||
match status:
|
match status:
|
||||||
case TCStatus.REWARD:
|
case TCStatus.REWARD:
|
||||||
|
if self.ui_additional():
|
||||||
|
return status
|
||||||
if self.get_reward():
|
if self.get_reward():
|
||||||
return TCStatus.OCR
|
return TCStatus.OCR
|
||||||
case TCStatus.OCR:
|
case TCStatus.OCR:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user