mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 10:10:45 +08:00
fix: 肉鸽招募时检查最低练度
This commit is contained in:
@@ -95,15 +95,19 @@ bool asst::RoguelikeRecruitTaskPlugin::_run()
|
||||
}
|
||||
}
|
||||
else {
|
||||
// 干员待招募
|
||||
// 干员待招募,检查练度
|
||||
if (oper_info.elite == 2) {
|
||||
// TODO: 招募时已精二 (随机提升或对应分队) => promoted_priority
|
||||
priority = recruit_info.recruit_priority;
|
||||
}
|
||||
else {
|
||||
// 招募时未精二
|
||||
else if (oper_info.elite == 1 && oper_info.level >= 50) {
|
||||
// 精一50级以上
|
||||
priority = recruit_info.recruit_priority;
|
||||
}
|
||||
else {
|
||||
// 精一50级以下,默认不招募
|
||||
Log.trace(__FUNCTION__, "| Ignored low level oper:", oper_info.name, oper_info.elite, oper_info.level);
|
||||
}
|
||||
}
|
||||
|
||||
// 已经划到后备干员,且已有候选干员,假定后面的干员优先级不会更高,不再划动
|
||||
@@ -111,6 +115,11 @@ bool asst::RoguelikeRecruitTaskPlugin::_run()
|
||||
stop_swipe = true;
|
||||
}
|
||||
|
||||
// 优先级为0,可能练度不够被忽略
|
||||
if (priority == 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// 添加到候选名单
|
||||
auto existing_it = ranges::find_if(recruit_list, [&](const RoguelikeRecruitInfo& pri) -> bool {
|
||||
return pri.name == recruit_info.name;
|
||||
|
||||
Reference in New Issue
Block a user