Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev_shawn' into dev_shawn
Browse files Browse the repository at this point in the history
  • Loading branch information
EightyDollars committed Oct 25, 2023
2 parents f2dac8e + 5225090 commit 1ff7f58
Show file tree
Hide file tree
Showing 5 changed files with 281 additions and 98 deletions.
2 changes: 1 addition & 1 deletion arknights_mower/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
__cli__ = not (__pyinstall__ and not sys.argv[1:])

__system__ = platform.system().lower()
__version__ = 'v3.5.0-alpha-13'
__version__ = 'v3.5.0-alpha-15'
12 changes: 6 additions & 6 deletions arknights_mower/solvers/base_schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ def infra_main(self):
self.planned = True
elif not self.todo_task:
get_update_time()
if self.party_time is None and self.enable_party:
if (self.party_time is None or self.free_clue is None) and self.enable_party:
self.clue()
if self.clue_count > self.clue_count_limit and self.enable_party:
self.share_clue()
Expand Down Expand Up @@ -957,11 +957,11 @@ def read_screen(self, img, type="mood", limit=24, cord=None):
def read_time(self, cord, upperlimit, error_count=0, use_digit_reader=False):
# 刷新图片
self.recog.update()
if use_digit_reader:
time_str = self.digit_reader.get_time(self.recog.gray)
else:
time_str = self.read_screen(self.recog.img, type='time', cord=cord)
try:
if use_digit_reader:
time_str = self.digit_reader.get_time(self.recog.gray)
else:
time_str = self.read_screen(self.recog.img, type='time', cord=cord)
h, m, s = str(time_str).split(':')
if int(m) > 60 or int(s) > 60:
raise Exception(f"读取错误")
Expand Down Expand Up @@ -1080,7 +1080,7 @@ def clue(self) -> None:
self.tap((self.recog.w - 10, self.recog.h - 10), interval=3, rebuild=False)
self.tap((self.recog.w * 0.05, self.recog.h * 0.95), interval=3)

if self.free_clue is None:
if self.free_clue is None and self.clue_count < 10 and self.clue_count != -1:
logger.info('领取会客室线索')
self.tap(((x0 + x1) // 2, (y0 * 5 - y1) // 4), interval=3)
obtain = self.find('clue_obtain')
Expand Down
20 changes: 10 additions & 10 deletions arknights_mower/templates/conf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ maa_weekly_plan:
stage: ['']
weekday: 周日
maa_weekly_plan1:
- stage: [自定义关卡1(输入关卡名/上次作战)]
- stage: [点x删除]
周一: 1
周二: 1
周三: 1
周四: 1
周五: 1
周六: 1
周日: 1
- stage: [自定义关卡2]
- stage: [把鼠标放到问号上查看帮助]
周一: 1
周二: 1
周三: 1
Expand Down Expand Up @@ -169,21 +169,21 @@ maa_weekly_plan1:
周六: 1
周日: 1
- stage: [PR-D-2]
周一: 1
周一: 0
周二: 1
周三: 0
周三: 1
周四: 0
周五: 1
周五: 0
周六: 1
周日: 0
周日: 1
- stage: [PR-D-1]
周一: 1
周一: 0
周二: 1
周三: 0
周三: 1
周四: 0
周五: 1
周五: 0
周六: 1
周日: 0
周日: 1
mail_enable: 0
account: ''
pass_code: ''
Expand Down
92 changes: 46 additions & 46 deletions ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1ff7f58

Please sign in to comment.