perf: 自动战斗编队固定优先编入所有干员, 且按照作业顺序

This commit is contained in:
status102
2025-06-06 13:24:55 +08:00
parent 5a235f92d0
commit 75f4c8d01e
3 changed files with 25 additions and 17 deletions

View File

@@ -154,7 +154,14 @@ bool asst::BattleProcessTask::to_group()
}
for (const auto& [group_name, oper_name] : m_oper_in_group) {
auto& this_group = get_combat_data().groups[group_name];
const auto& group_it = ranges::find_if(get_combat_data().groups, [&](const OperUsageGroup& pair) {
return pair.first == group_name;
});
if (group_it == get_combat_data().groups.end()) {
Log.warn(__FUNCTION__, "Group not found in combat data: ", group_name);
continue;
}
const auto& this_group = group_it->second;
// there is a build error on macOS
// https://github.com/MaaAssistantArknights/MaaAssistantArknights/actions/runs/3779762713/jobs/6425284487
const std::string& oper_name_for_lambda = oper_name;