Skip to content

Commit

Permalink
无人机跑单截图
Browse files Browse the repository at this point in the history
  • Loading branch information
Shawnsdaddy committed Nov 22, 2024
1 parent 40746e0 commit 3f81cc2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion arknights_mower/solvers/base_schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -1741,7 +1741,7 @@ def todo_list(self) -> None:
collect = {"bill": "订单", "factory": "制造站产物", "trust": "信赖"}
if self.last_execution["todo"] is None or self.last_execution[
"todo"
] < datetime.now() - timedelta(minutes=30):
] < datetime.now() - timedelta(minutes=15):
for res, name in collect.items():
tap_times = 0
while pos := self.find(f"infra_collect_{res}"):
Expand Down Expand Up @@ -2216,6 +2216,12 @@ def drone(
if not self.waiting_solver():
return
self.recog.update()
wait = 0
while self.find("order_ready", scope=((450, 675), (600, 750))) is None:
if wait > 6:
break
self.sleep(1)
self.recog.save_screencap("run_order")
if not (
self.drone_room is None
or (
Expand Down

0 comments on commit 3f81cc2

Please sign in to comment.