Skip to content

Commit

Permalink
Merge branch 'MaaAssistantArknights:dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Yumi0606 authored Aug 12, 2023
2 parents 2bddfb9 + ff1668e commit e6a6d77
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 1 addition & 6 deletions src/MaaCore/Task/Miscellaneous/BattleFormationTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,6 @@ std::vector<asst::TextRect> asst::BattleFormationTask::analyzer_opers()
}
sort_by_vertical_(opers_result);

if (m_the_right_name == opers_result.back().text) {
return {};
}
m_the_right_name = opers_result.back().text;

std::vector<TextRect> tr_res;
for (const auto& res : opers_result) {
tr_res.emplace_back(TextRect { res.rect, res.score, res.text });
Expand Down Expand Up @@ -256,7 +251,7 @@ bool asst::BattleFormationTask::click_role_table(battle::Role role)
{ battle::Role::Sniper, "Sniper" }, { battle::Role::Special, "Special" }, { battle::Role::Support, "Support" },
{ battle::Role::Tank, "Tank" }, { battle::Role::Warrior, "Warrior" }, { battle::Role::Unknown, "All" },
};
m_the_right_name.clear();
m_last_oper_name.clear();

auto role_iter = RoleNameType.find(role);
if (role_iter == RoleNameType.cend()) {
Expand Down
2 changes: 0 additions & 2 deletions src/MaaCore/Task/Miscellaneous/BattleFormationTask.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,9 @@ namespace asst

std::string m_stage_name;
std::unordered_map<battle::Role, std::vector<OperGroup>> m_formation;
std::string m_the_right_name;
std::string m_support_unit_name;
DataResource m_data_resource = DataResource::Copilot;
std::vector<AdditionalFormation> m_additional;

std::string m_last_oper_name;
};
}

0 comments on commit e6a6d77

Please sign in to comment.