feat: 将肉鸽招募的滑动最大值放入 tasks.json 中方便修改

This commit is contained in:
zzyyyl
2022-10-03 23:08:54 +08:00
parent a3887f6583
commit edf3da646f
2 changed files with 6 additions and 1 deletions

View File

@@ -7521,6 +7521,11 @@
"Roguelike1ChooseOperConfirm"
]
},
"Roguelike1RecruitSwipeMaxTime": {
"template": "empty.png",
"maxTimes_Doc": "这个参数是肉鸽招募时,向右划动的最大次数",
"maxTimes": 4
},
"Roguelike1RecruitOcrFlag": {
"roi": [
525,

View File

@@ -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;
// 翻页找出所有候选干员