Skip to content

Commit fb50712

Browse files
committed
fix typo
1 parent 686f53d commit fb50712

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

arknights_mower/solvers/base_schedule.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def overtake_room(self):
245245
):
246246
break
247247
if current_resting - len(remove_name) + required > len(
248-
self.op_data.drom
248+
self.op_data.dorm
249249
):
250250
msg = f"无法完成 {self.task.meta_data} 的排班,宿舍可用空位不足,请减少使用回满词条"
251251
send_message(msg, level="ERROR")
@@ -1697,7 +1697,10 @@ def resting_new(self):
16971697
_replacement = []
16981698
_plan = {}
16991699
for op in self.total_agent:
1700-
if current_resting + len(_replacement) >= self.ideal_resting_count:
1700+
if (
1701+
current_resting + len(_replacement) >= self.ideal_resting_count
1702+
and self.op_data.available_free() >= self.ideal_resting_count
1703+
):
17011704
break
17021705
if op.name in self.op_data.workaholic_agent:
17031706
continue
@@ -1710,6 +1713,9 @@ def resting_new(self):
17101713
# 忽略掉心情太高的
17111714
if op.upper_limit - op.current_mood() < 2:
17121715
continue
1716+
# 忽略 用尽,已经处理
1717+
if op.name in self.op_data.exhaust_agent:
1718+
continue
17131719
# 忽略掉心情值没低于上限的的
17141720
if op.current_mood() > int(
17151721
(op.upper_limit - op.lower_limit)

0 commit comments

Comments
 (0)