Skip to content

Commit

Permalink
feat: 新增活动 复兴乌卢鲁运动会 CLI 支持
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Dec 2, 2023
1 parent b23ee95 commit e1c6372
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/.maay/control.json
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@
},
{
"name": "活动:洞穴的囚徒 证明启示 05(活动已结束)",
"task": "dummyThePrisonerintheCave",
"task": "ThePrisonerintheCave",
"option": [
"combat_times",
"all_in",
Expand Down
16 changes: 15 additions & 1 deletion source/cli/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,14 @@ json::value combat_param(int index)
difficulty = "dummyStageDifficulty_None";
times = "1";
break;

case 21:
//"21. 活动:复兴乌卢鲁运动会 13 艰难\n"
chapter = "RevivalTheUluruGames";
stage = "13";
difficulty = "ActivityStageDifficulty";
times = "1";
break;
}

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

case 21:
task_obj.type = "RevivalTheUluruGames";
task_obj.param = combat_param(id);
break;

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

0 comments on commit e1c6372

Please sign in to comment.