1
This commit is contained in:
parent
67ecb2ded2
commit
00a2bce3ea
@ -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();
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user