This commit is contained in:
aozhiwei 2023-03-29 12:05:20 +08:00
parent 67ecb2ded2
commit 00a2bce3ea
2 changed files with 24 additions and 0 deletions

View File

@ -12,6 +12,29 @@ namespace mt
void Buff::Init1()
{
{
std::string data = "";
std::vector<std::string> strings;
a8::Split(data, strings, '|');
for (auto& str : strings) {
std::vector<std::string> 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();

View File

@ -61,6 +61,7 @@ namespace mt
long long _exclude_spec_race = 0;
std::vector<int> _effect_list;
float _res_scale;
std::vector<std::tuple<float, float, float, int, int, int>> _bullet_born_offset;
std::vector<int> _child_buff_list;