Skip to content

Commit

Permalink
Merge remote-tracking branch 'dev_shawn/dev_shawn' into dev_shawn
Browse files Browse the repository at this point in the history
  • Loading branch information
Ks-luow committed Apr 13, 2023
2 parents f26a9d2 + f979cae commit 4875658
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions arknights_mower/solvers/base_schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ def agent_get_mood(self, skip_dorm=False, force=False):
miss_list = {k: v for (k, v) in self.op_data.operators.items() if v.not_valid()}
if len(miss_list.keys()) > 0:
# 替换到他应该的位置
logger.debug(f"高效组心情没有记录 或者高效组在宿舍{str(miss_list)}")
logger.debug(f"高效组心情没有记录{str(miss_list)}")
for key in miss_list:
_agent = miss_list[key]
if _agent.group != '' and _agent.current_room.startswith("dorm"):
Expand All @@ -432,8 +432,16 @@ def agent_get_mood(self, skip_dorm=False, force=False):
v.group == _agent.group and not v.not_valid() and v.current_room.startswith(
"dorm")), None) is not None:
continue
elif _agent.group != '':
# 把所有小组成员都移到工作站
agents = self.op_data.groups[_agent.group]
for a in agents:
__agent = self.op_data.operators[a]
if __agent.room not in fix_plan.keys():
fix_plan[__agent.room] = ['Current'] * len(self.currentPlan[__agent.room])
fix_plan[__agent.room][__agent.index] = a
if _agent.room not in fix_plan.keys():
fix_plan[_agent.room] = ['Current'] * len(current_base[_agent.room])
fix_plan[_agent.room] = ['Current'] * len(self.currentPlan[_agent.room])
fix_plan[_agent.room][_agent.index] = key
# 如果是错位:
if (_agent.current_index != -1 and _agent.current_index != _agent.index) or (_agent.current_room !=""and _agent.room != _agent.current_room):
Expand Down

0 comments on commit 4875658

Please sign in to comment.