mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 02:10:21 +08:00
fix: ranges::count_if 的返回类型问题
This commit is contained in:
@@ -104,8 +104,7 @@ bool asst::SSSBattleProcessTask::wait_until_start(bool weak)
|
||||
}
|
||||
else {
|
||||
replace_count = 4;
|
||||
int pioneer_count = ranges::count_if(opers, [](const auto& oper) { return oper.role == Role::Pioneer; }); // 先锋数量
|
||||
if (pioneer_count < 2) {
|
||||
if (ranges::count_if(opers, [](const auto& oper) { return oper.role == Role::Pioneer; }) /* 先锋数量 */ < 2) {
|
||||
cost_limit = 25; // 先锋低于2个时,降低费用阈值,以试图换出先锋
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user