1
This commit is contained in:
parent
488a08737f
commit
42c136434e
@ -1115,6 +1115,30 @@ namespace MetaData
|
||||
assert(int_param1 < i->duration_time() * 1000);
|
||||
}
|
||||
break;
|
||||
case kBET_BatchAddBuff:
|
||||
{
|
||||
for (auto& tuple : batch_add_list) {
|
||||
int rand_space = std::get<0>(tuple);
|
||||
const auto& items = std::get<1>(tuple);
|
||||
if (items.empty()) {
|
||||
abort();
|
||||
}
|
||||
if (rand_space == -1) {
|
||||
MetaData::Buff* buff_meta = MetaMgr::Instance()->GetBuff(std::get<0>(items[0]));
|
||||
if (!buff_meta) {
|
||||
abort();
|
||||
}
|
||||
} else {
|
||||
for (const auto& item : items) {
|
||||
MetaData::Buff* buff_meta = MetaMgr::Instance()->GetBuff(std::get<0>(item));
|
||||
if (!buff_meta) {
|
||||
abort();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
{
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user