1
This commit is contained in:
parent
08524100d3
commit
02579d1f81
@ -173,6 +173,29 @@ namespace MetaData
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
std::vector<std::string> time_strings;
|
||||||
|
a8::Split(i->power_time(), time_strings, '|');
|
||||||
|
std::vector<std::string> gun_strings;
|
||||||
|
a8::Split(i->power_gun(), gun_strings, '|');
|
||||||
|
std::vector<std::string> buff_strings;
|
||||||
|
a8::Split(i->power_buff(), buff_strings, '|');
|
||||||
|
if (time_strings.size() == gun_strings.size() && gun_strings.size() == buff_strings.size()) {
|
||||||
|
int last_time = 0;
|
||||||
|
for (size_t i = 0; i < time_strings.size(); ++i) {
|
||||||
|
int time = a8::XValue(time_strings[i]);
|
||||||
|
int gun = a8::XValue(gun_strings[i]);
|
||||||
|
int buff = a8::XValue(buff_strings[i]);
|
||||||
|
power_charge.push_back(std::make_tuple(time, gun, buff));
|
||||||
|
if (time <= last_time) {
|
||||||
|
abort();
|
||||||
|
}
|
||||||
|
last_time = time;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
abort();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int Equip::GetWeaponIdx()
|
int Equip::GetWeaponIdx()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user