This commit is contained in:
aozhiwei 2023-05-22 13:23:09 +08:00
parent 06b361f966
commit 2c141c1059

View File

@ -10,8 +10,20 @@ namespace mt
void MergeItem::Init1()
{
{
std::vector<std::string> strings;
a8::Split(pickup3(), strings, '|');
std::set<int> buffs;
{
std::vector<std::string> strings;
a8::Split(pickup3(), 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());
}
}
}
}
}
}