1
This commit is contained in:
parent
06b361f966
commit
2c141c1059
@ -10,8 +10,20 @@ namespace mt
|
|||||||
void MergeItem::Init1()
|
void MergeItem::Init1()
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
std::vector<std::string> strings;
|
std::set<int> buffs;
|
||||||
a8::Split(pickup3(), strings, '|');
|
{
|
||||||
|
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());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user