mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-01-20 05:25:38 +00:00
Compare commits
No commits in common. "0f6dd93608d8242c01cf28e1c898a834c9852b86" and "16d78e1e16c4dd4b4852f7841493063331555f1c" have entirely different histories.
0f6dd93608
...
16d78e1e16
@ -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]) and x[0] != '00',
|
lambda x: re.match(r'^\d{1,2}-?\d?$', x[0]),
|
||||||
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,8 +41,6 @@ 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