mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 01:40:46 +08:00
fix.修复一个掉落识别错误的问题
https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/846
This commit is contained in:
@@ -6754,6 +6754,10 @@
|
||||
"l",
|
||||
"1"
|
||||
],
|
||||
[
|
||||
"工",
|
||||
"1"
|
||||
],
|
||||
[
|
||||
"o",
|
||||
"0"
|
||||
|
||||
@@ -31,9 +31,7 @@ bool asst::StageDropsImageAnalyzer::analyze()
|
||||
cv::imwrite("debug/" + stem + "_draw.png", m_image_draw);
|
||||
#endif
|
||||
|
||||
return std::all_of(m_drops.cbegin(), m_drops.cend(), [](const auto& item_info) -> bool {
|
||||
return item_info.quantity > 0;
|
||||
});
|
||||
return ret;
|
||||
}
|
||||
|
||||
asst::StageKey asst::StageDropsImageAnalyzer::get_stage_key() const
|
||||
@@ -203,10 +201,8 @@ bool asst::StageDropsImageAnalyzer::analyze_drops()
|
||||
if (quantity <= 0) {
|
||||
has_error = true;
|
||||
Log.error(__FUNCTION__, "quantity error", quantity);
|
||||
continue;
|
||||
}
|
||||
if (item.empty()) {
|
||||
has_error = true;
|
||||
Log.warn(__FUNCTION__, "item id is empty");
|
||||
}
|
||||
StageDropInfo info;
|
||||
|
||||
Reference in New Issue
Block a user