Skip to content

Commit

Permalink
领取奖励任务增加参数选项
Browse files Browse the repository at this point in the history
自动领取每日奖励和邮箱奖励,之后把选项做到ui里
  • Loading branch information
Anyk00 committed Dec 9, 2024
1 parent fe4991f commit 7d6062c
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion arknights_mower/solvers/base_schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -3324,7 +3324,7 @@ def initialize_maa(self):
raise Exception("MAA 连接失败")

def append_maa_task(self, type):
if type in ["StartUp", "Visit", "Award"]:
if type in ["StartUp", "Visit"]:
self.MAA.append_task(type)
elif type == "Fight":
conf = config.conf
Expand Down Expand Up @@ -3372,6 +3372,19 @@ def append_maa_task(self, type):
"force_shopping_if_credit_full": conf.maa_mall_ignore_blacklist_when_full,
},
)
elif type == "Award":
conf = config.conf
self.MAA.append_task(
"Award",
{
"award": True,
"mail": True,
"recruit": False,
"orundum": False,
"mining": False,
"specialaccess": False,
}
)

def maa_plan_solver(self, tasks="All", one_time=False):
"""清日常"""
Expand Down

0 comments on commit 7d6062c

Please sign in to comment.