diff --git a/server/gameserver/mt/Buff.cc b/server/gameserver/mt/Buff.cc index 7e174915..193d51a5 100644 --- a/server/gameserver/mt/Buff.cc +++ b/server/gameserver/mt/Buff.cc @@ -12,6 +12,29 @@ namespace mt void Buff::Init1() { + { + std::string data = ""; + std::vector strings; + a8::Split(data, strings, '|'); + for (auto& str : strings) { + std::vector strings2; + a8::Split(str, strings2, ':'); + if (strings2.size() < 2) { + abort(); + } + _bullet_born_offset.push_back + (std::make_tuple( + a8::XValue(strings2[0]).GetDouble(), + a8::XValue(strings2[1]).GetDouble(), + strings2.size() > 2 ? a8::XValue(strings2[2]).GetDouble() : 0, + strings2.size() > 3 ? a8::XValue(strings2[3]).GetInt() : 0, + strings2.size() > 4 ? a8::XValue(strings2[4]).GetInt() : 0, + strings2.size() > 5 ? a8::XValue(strings2[5]).GetInt() : 0 + ) + ); + } + } + _buff_param1 = a8::XValue(buff_param1()).GetDouble(); _buff_param2 = a8::XValue(buff_param2()).GetDouble(); _buff_param3 = a8::XValue(buff_param3()).GetDouble(); diff --git a/server/gameserver/mt/Buff.h b/server/gameserver/mt/Buff.h index b5cb18a1..3fe72413 100644 --- a/server/gameserver/mt/Buff.h +++ b/server/gameserver/mt/Buff.h @@ -61,6 +61,7 @@ namespace mt long long _exclude_spec_race = 0; std::vector _effect_list; float _res_scale; + std::vector> _bullet_born_offset; std::vector _child_buff_list;