Skip to content

Commit

Permalink
修改自动回满3电站阈值
Browse files Browse the repository at this point in the history
  • Loading branch information
Shawnsdaddy committed Dec 17, 2024
1 parent 5be4c38 commit 2fbcdfa
Show file tree
Hide file tree
Showing 6 changed files with 266 additions and 123 deletions.
18 changes: 16 additions & 2 deletions arknights_mower/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,14 @@ def initialize(
)
for room, obj in plan[plan["default"]].items():
plan1[room] = [
Room(op["agent"], op["group"], op["replacement"]) for op in obj["plans"]
Room(
op["agent"],
op["group"],
op["replacement"],
obj["name"],
obj["product"] if "product" in obj else "",
)
for op in obj["plans"]
]
# 默认任务
plan["default_plan"] = Plan(plan1, plan_config)
Expand All @@ -68,7 +75,14 @@ def initialize(
backup_plan: dict[str, Room] = {}
for room, obj in i["plan"].items():
backup_plan[room] = [
Room(op["agent"], op["group"], op["replacement"]) for op in obj["plans"]
Room(
op["agent"],
op["group"],
op["replacement"],
obj["name"],
obj["product"] if "product" in obj else "",
)
for op in obj["plans"]
]
backup_config = PlanConfig(
i["conf"]["rest_in_full"],
Expand Down
Loading

0 comments on commit 2fbcdfa

Please sign in to comment.