mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 18:20:39 +08:00
feat: 将肉鸽招募的滑动最大值放入 tasks.json 中方便修改
This commit is contained in:
@@ -7521,6 +7521,11 @@
|
||||
"Roguelike1ChooseOperConfirm"
|
||||
]
|
||||
},
|
||||
"Roguelike1RecruitSwipeMaxTime": {
|
||||
"template": "empty.png",
|
||||
"maxTimes_Doc": "这个参数是肉鸽招募时,向右划动的最大次数",
|
||||
"maxTimes": 4
|
||||
},
|
||||
"Roguelike1RecruitOcrFlag": {
|
||||
"roi": [
|
||||
525,
|
||||
|
||||
@@ -49,7 +49,7 @@ bool asst::RoguelikeRecruitTaskPlugin::_run()
|
||||
// 干员名字的识别位置
|
||||
std::unordered_map<std::string, Rect> last_oper_rects;
|
||||
|
||||
constexpr int SwipeTimes = 4;
|
||||
int SwipeTimes = Task.get("Roguelike1RecruitSwipeMaxTime")->max_times;
|
||||
int i = 0;
|
||||
std::unordered_set<std::string> pre_oper_names;
|
||||
// 翻页找出所有候选干员
|
||||
|
||||
Reference in New Issue
Block a user