feat!: 自动战斗不再允许使用带TR的导航关卡名禁用自动编队,改为自动检测 (#11868)

* fix: 自动战斗不再允许使用带TR的导航关卡名禁用自动编队,改为自动检测

* chore: Auto update by pre-commit hooks [skip changelog]

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
status102
2025-02-13 09:49:44 +08:00
committed by GitHub
parent 8afc70b298
commit 34fa74e8f3
5 changed files with 32 additions and 15 deletions

View File

@@ -144,8 +144,7 @@ bool asst::CopilotTask::set_params(const json::value& params)
m_not_use_prts_task_ptr->set_enable(need_navigate); // 不使用代理指挥
m_medicine_plugin_ptr->set_enable(use_sanity_potion);
// 关卡名含有"TR"的为教学关,不需要编队
m_formation_task_ptr->set_enable(with_formation && navigate_name.find("TR") == std::string::npos);
m_formation_task_ptr->set_enable(with_formation);
m_formation_task_ptr->set_select_formation(select_formation);
m_formation_task_ptr->set_add_trust(add_trust);
m_formation_task_ptr->set_support_unit_usage(support_unit_usage);