Skip to content

Commit

Permalink
feat: 新增活动 朔日手记
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Jan 14, 2024
1 parent 650e2d1 commit b20a993
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 2 deletions.
22 changes: 21 additions & 1 deletion assets/.maay/control.json
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@
}
},
{
"name": "活动:复兴乌卢鲁运动会 13 艰难",
"name": "活动:复兴乌卢鲁运动会 13 艰难(活动已结束)",
"task": "RevivalTheUluruGames",
"option": [
"combat_times",
Expand All @@ -408,6 +408,26 @@
"next": "ActivityStageDifficulty"
}
}
},
{
"name": "活动:朔日手记 19 艰难",
"task": "NotesOnShuoRi",
"option": [
"combat_times",
"all_in",
"eat_candy_within_24h"
],
"provide": {
"EnterTheShow": {
"next": "NotesOnShuoRi"
},
"TargetStageName": {
"text": "19"
},
"StageDifficulty": {
"next": "ActivityStageDifficulty"
}
}
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions assets/resource/pipeline/activity/NotesOnShuoRi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"NotesOnShuoRi": {
"next": [
"NotesOnShuoRiEnterTheShow",
"Sub_StartUp"
]
},
"NotesOnShuoRiEnterTheShow": {
"recognition": "TemplateMatch",
"template": "Combat/Activity/NotesOnShuoRiEnterTheShow.png",
"roi": [
872,
119,
333,
178
],
"action": "Click",
"post_wait_freezes": 1,
"next": [
"NotesOnShuoRiMainChapter"
]
},
"NotesOnShuoRiMainChapter": {
"recognition": "TemplateMatch",
"template": "Combat/Activity/NotesOnShuoRiMainChapter.png",
"roi": [
1029,
569,
243,
140
],
"action": "Click",
"next": "SwipeLeftAndFindStage"
}
}
16 changes: 15 additions & 1 deletion source/cli/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,14 @@ json::value combat_param(int index)
difficulty = "ActivityStageDifficulty";
times = "1";
break;

case 22:
//"22. 活动:朔日手记 19 艰难\n"
chapter = "NotesOnShuoRi";
stage = "13";
difficulty = "ActivityStageDifficulty";
times = "1";
break;
}

return param;
Expand Down Expand Up @@ -391,7 +399,8 @@ bool proc_argv(const std::filesystem::path& config_path, int argc, char** argv,
"18. 活动:绿湖噩梦 17 艰难(活动已结束)\n"
"19. 活动:行至摩卢旁卡 16 艰难(活动已结束)\n"
"20. 活动:洞穴的囚徒 证明启示 05(活动已结束)\n"
"21. 活动:复兴乌卢鲁运动会 13 艰难\n")
"21. 活动:复兴乌卢鲁运动会 13 艰难(活动已结束)\n"
"22. 活动:朔日手记 19 艰难\n")
<< std::endl
<< std::endl
<< utf8_to_crt("请输入要执行的任务序号,可自定义顺序,以空格分隔,例如 1 2 4 12 3: ") << std::endl;
Expand Down Expand Up @@ -466,6 +475,11 @@ bool proc_argv(const std::filesystem::path& config_path, int argc, char** argv,
task_obj.param = combat_param(id);
break;

case 22:
task_obj.type = "NotesOnShuoRi";
task_obj.param = combat_param(id);
break;

default:
std::cout << "Unknown task: " << id << std::endl;
return false;
Expand Down

0 comments on commit b20a993

Please sign in to comment.