mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 18:20:39 +08:00
fix: 修复基建组合不可用时的效率计算错误
fix: https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/1895
This commit is contained in:
@@ -2991,7 +2991,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"allowExternal": true,
|
||||
"allowExternal": false,
|
||||
"desc": "巫恋组",
|
||||
"necessary": [
|
||||
{
|
||||
@@ -3182,4 +3182,4 @@
|
||||
"Dorm",
|
||||
"Mfg"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -471,10 +471,10 @@ bool asst::InfrastProductionTask::optimal_calc()
|
||||
if (cur_combs.size() < cur_max_num_of_opers) {
|
||||
// 允许外部的话,就把单个干员凑进来
|
||||
if (group.allow_external) {
|
||||
for (size_t i = cur_combs.size(); i != cur_max_num_of_opers; ++i) {
|
||||
size_t index = i - cur_combs.size();
|
||||
cur_combs.emplace_back(cur_available_opers.at(index));
|
||||
cur_efficient += cur_available_opers.at(index).efficient.at(m_product);
|
||||
for (size_t index = 0; index < cur_max_num_of_opers - cur_combs.size(); ++index) {
|
||||
const auto& comb = cur_available_opers.at(index);
|
||||
cur_combs.emplace_back(comb);
|
||||
cur_efficient += comb.efficient.at(m_product);
|
||||
}
|
||||
}
|
||||
else { // 否则这个组合人不够,就不可用了
|
||||
|
||||
Reference in New Issue
Block a user