Skip to content

Commit

Permalink
开放波登可1个宿管
Browse files Browse the repository at this point in the history
  • Loading branch information
Shawnsdaddy committed Sep 11, 2023
1 parent 0c9a237 commit 92ca490
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arknights_mower/utils/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ def init_and_validate(self):
free_found = False
for _idx, _dorm in enumerate(self.plan[dorm]):
if _dorm['agent'] == 'Free' and _idx <= 1:
return f'宿舍必须安排2个宿管'
if "波登可" not in self.plan[dorm]:
return f'宿舍必须安排2个宿管'
if _dorm['agent'] != 'Free' and free_found:
return f'Free必须连续且安排在宿管后'
if _dorm['agent'] == 'Free' and not free_found and (dorm + str(_idx)) not in added and len(
Expand Down

0 comments on commit 92ca490

Please sign in to comment.