feat: 自动战斗跳过“以下干员出战后将被禁用,是否继续?”对话框 #4917 #4694 #5351 (#6492)

This commit is contained in:
MistEO
2023-09-23 17:54:21 +08:00
committed by GitHub
3 changed files with 14 additions and 0 deletions

View File

@@ -7459,6 +7459,15 @@
255
]
},
"SkipForbiddenOperConfirm": {
"action": "ClickSelf",
"roi": [
640,
554,
632,
76
]
},
"BattleStartAll": {
"action": "DoNothing",
"algorithm": "JustReturn",

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

View File

@@ -43,6 +43,11 @@ asst::CopilotTask::CopilotTask(const AsstCallback& callback, Assistant* inst)
m_copilot_list_notification_ptr = start_2_tp->register_plugin<CopilotListNotificationPlugin>();
m_subtasks.emplace_back(start_2_tp);
//跳过“以下干员出战后将被禁用,是否继续?”对话框
auto start_3_tp = std::make_shared<ProcessTask>(callback, inst, TaskType);
start_3_tp->set_tasks({ "SkipForbiddenOperConfirm", "Stop" }).set_ignore_error(false);
m_subtasks.emplace_back(start_3_tp);
m_subtasks.emplace_back(m_battle_task_ptr)->set_retry_times(0);
m_stop_task_ptr->set_enable(false);