This commit is contained in:
aozhiwei 2023-05-22 13:27:29 +08:00
parent 2c141c1059
commit f694e2119c

View File

@ -23,6 +23,41 @@ namespace mt
}
}
}
for (int i = 1; i <= 3; ++i) {
gun_num_buff_hash_[i] = buffs;
}
}
{
std::vector<std::string> strings;
a8::Split(pickup6(), strings, '|');
for (auto& str : strings) {
if (!str.empty()) {
if (str.at(0) == '-') {
buffs.erase(-a8::XValue(str).GetInt());
} else {
buffs.insert(a8::XValue(str).GetInt());
}
}
}
for (int i = 3; i <= 6; ++i) {
gun_num_buff_hash_[i] = buffs;
}
}
{
std::vector<std::string> strings;
a8::Split(pickup9(), strings, '|');
for (auto& str : strings) {
if (!str.empty()) {
if (str.at(0) == '-') {
buffs.erase(-a8::XValue(str).GetInt());
} else {
buffs.insert(a8::XValue(str).GetInt());
}
}
}
for (int i = 6; i <= 9; ++i) {
gun_num_buff_hash_[i] = buffs;
}
}
}
}