mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-02-06 08:55:13 +00:00
Compare commits
No commits in common. "e61afaf43be57bcd43192c50e9a42cd81f802bf7" and "f7b165f5891e7d8861367756cb84b5ba82c0b449" have entirely different histories.
e61afaf43b
...
f7b165f589
@ -1,9 +1,8 @@
|
|||||||
from enum import Enum
|
|
||||||
|
|
||||||
from module.base.base import ModuleBase
|
from module.base.base import ModuleBase
|
||||||
from module.base.timer import Timer
|
from module.base.timer import Timer
|
||||||
from module.logger import logger
|
from module.logger import logger
|
||||||
from module.ocr.ocr import Digit
|
from module.ocr.ocr import Digit
|
||||||
|
from enum import Enum
|
||||||
from tasks.stage.assets.assets_stage_sweep import *
|
from tasks.stage.assets.assets_stage_sweep import *
|
||||||
|
|
||||||
|
|
||||||
@ -124,7 +123,7 @@ class StageSweep:
|
|||||||
main.device.screenshot()
|
main.device.screenshot()
|
||||||
if not timer.reached_and_reset():
|
if not timer.reached_and_reset():
|
||||||
continue
|
continue
|
||||||
ocr_result = list(filter(lambda x: x.ocr_text.isdigit(), self.num.detect_and_ocr(main.device.image)))
|
ocr_result = self.num.detect_and_ocr(main.device.image)
|
||||||
if not ocr_result:
|
if not ocr_result:
|
||||||
logger.warning(f'No valid num in {self.num.name}')
|
logger.warning(f'No valid num in {self.num.name}')
|
||||||
continue
|
continue
|
||||||
|
|||||||
@ -28,7 +28,6 @@ class TacticalChallengeUI(UI):
|
|||||||
timer = Timer(10, 10).start()
|
timer = Timer(10, 10).start()
|
||||||
while 1:
|
while 1:
|
||||||
self.device.screenshot()
|
self.device.screenshot()
|
||||||
self.ui_additional()
|
|
||||||
if self.match_color(GOT_REWARD_DAILY) and self.match_color(GOT_REWARD_CREDIT):
|
if self.match_color(GOT_REWARD_DAILY) and self.match_color(GOT_REWARD_CREDIT):
|
||||||
return True
|
return True
|
||||||
if self.match_color(GET_REWARD_DAILY):
|
if self.match_color(GET_REWARD_DAILY):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user