mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 09:50:40 +08:00
@@ -389,25 +389,6 @@
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "前行的林地",
|
||||
"option_num": 2,
|
||||
"choose": 1,
|
||||
"choices": [
|
||||
{
|
||||
"name": "树上就不能走吗?",
|
||||
"option_num": 2,
|
||||
"choose": 1,
|
||||
"requirements": [
|
||||
{
|
||||
"name": "Vision",
|
||||
"type": ">",
|
||||
"value": "0"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -102,9 +102,12 @@ std::optional<std::string> asst::RoguelikeStageEncounterTaskPlugin::handle_singl
|
||||
analyzer.set_replace(Task.get<OcrTaskInfo>("NumberOcrReplace")->replace_map);
|
||||
analyzer.set_use_char_model(true);
|
||||
if (!analyzer.analyze()) {
|
||||
return std::nullopt;
|
||||
// return std::nullopt;
|
||||
Log.error("Failed to recognize special value for event:", event.name);
|
||||
}
|
||||
else {
|
||||
utils::chars_to_number(analyzer.get_result().front().text, special_val);
|
||||
}
|
||||
utils::chars_to_number(analyzer.get_result().front().text, special_val);
|
||||
}
|
||||
|
||||
int choose_option = process_task(event, special_val);
|
||||
|
||||
Reference in New Issue
Block a user