mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 02:23:01 +08:00
feat: 自动战斗新增引航者试炼支持,"MoveCamera" / "移动镜头" 新字段
This commit is contained in:
@@ -135,6 +135,12 @@ std::vector<asst::battle::copilot::Action> asst::CopilotConfig::parse_actions(co
|
||||
{ "摆完挂机", ActionType::SkillDaemon },
|
||||
{ "开摆", ActionType::SkillDaemon },
|
||||
|
||||
{ "MoveCamera", ActionType::MoveCamera },
|
||||
{ "movecamera", ActionType::MoveCamera },
|
||||
{ "MOVECAMERA", ActionType::MoveCamera },
|
||||
{ "Movecamera", ActionType::MoveCamera },
|
||||
{ "移动镜头", ActionType::MoveCamera },
|
||||
|
||||
{ "DrawCard", ActionType::DrawCard },
|
||||
{ "drawcard", ActionType::DrawCard },
|
||||
{ "DRAWCARD", ActionType::DrawCard },
|
||||
@@ -183,6 +189,10 @@ std::vector<asst::battle::copilot::Action> asst::CopilotConfig::parse_actions(co
|
||||
action.role_counts = parse_role_counts(*tool_men);
|
||||
}
|
||||
}
|
||||
else if (action.type == ActionType::MoveCamera) {
|
||||
auto dist_arr = action_info.at("distance").as_array();
|
||||
action.distance = std::make_pair(dist_arr[0].as_double(), dist_arr[1].as_double());
|
||||
}
|
||||
|
||||
actions_list.emplace_back(std::move(action));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user