mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-20 02:55:38 +08:00
perf: 肉鸽不招募不在需求中的干员
This commit is contained in:
@@ -196,7 +196,7 @@ bool asst::RoguelikeRecruitTaskPlugin::_run()
|
||||
|
||||
const auto& oper_list = analyzer.get_result();
|
||||
|
||||
// 可能是晋升界面,随便选个精二的
|
||||
// 可能有临时招募的精二的,不要白不要
|
||||
for (const auto& info : oper_list) {
|
||||
if (info.elite != 2) {
|
||||
continue;
|
||||
@@ -206,18 +206,18 @@ bool asst::RoguelikeRecruitTaskPlugin::_run()
|
||||
return true;
|
||||
}
|
||||
|
||||
// 仍然没选,随便选个精一 50 以上的
|
||||
for (const auto& info : oper_list) {
|
||||
if (info.elite == 0 || (info.elite == 1 && info.level < 50)) {
|
||||
continue;
|
||||
}
|
||||
Log.trace(__FUNCTION__, "| Choose random elite 1:", info.name, info.elite, info.level);
|
||||
recruit_oper(info);
|
||||
return true;
|
||||
}
|
||||
//// 仍然没选,随便选个精一 50 以上的
|
||||
// for (const auto& info : oper_list) {
|
||||
// if (info.elite == 0 || (info.elite == 1 && info.level < 50)) {
|
||||
// continue;
|
||||
// }
|
||||
// Log.trace(__FUNCTION__, "| Choose random elite 1:", info.name, info.elite, info.level);
|
||||
// recruit_oper(info);
|
||||
// return true;
|
||||
// }
|
||||
|
||||
Log.trace(__FUNCTION__, "| Did not choose oper");
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
// 选择优先级最高的干员
|
||||
|
||||
Reference in New Issue
Block a user