diff --git a/server/gameserver/mt/Param.cc b/server/gameserver/mt/Param.cc index d1b938c0..439a80bb 100644 --- a/server/gameserver/mt/Param.cc +++ b/server/gameserver/mt/Param.cc @@ -209,6 +209,29 @@ namespace mt } } + { + std::vector strings; + a8::Split(GetStringParam("robot_placement"), strings, '|'); + for (auto& str : strings) { + s_.robot_placement.push_back(a8::XValue(str).GetDouble()); + } + if (s_.robot_placement.size() != 9) { + abort(); + } + } + { + s_.robot_placement_time = GetIntParam("robot_placement_time"); + } + { + std::vector strings; + a8::Split(GetStringParam("robot_placement_type"), strings, '|'); + for (auto& str : strings) { + s_.robot_placement_type.push_back(a8::XValue(str).GetDouble()); + } + if (s_.robot_placement_type.size() != 2) { + abort(); + } + } } int Param::GetIntParam(const std::string& param_name, int def_val)