This commit is contained in:
aozhiwei 2021-05-12 10:12:02 +08:00
parent a4a690fe6f
commit e1b7c344d7
3 changed files with 15 additions and 4 deletions

View File

@ -111,6 +111,7 @@ namespace MetaData
}
void MapThing::Init()
{
{
std::vector<std::string> strings;
a8::Split(i->buff_list(), strings, '|');
@ -118,6 +119,14 @@ namespace MetaData
buff_list.push_back(a8::XValue(tmp_str));
}
}
{
std::vector<std::string> strings;
a8::Split(i->airdrop_mon(), strings, '|');
for (const std::string& tmp_str : strings) {
airdrop_mon_list.push_back(a8::XValue(tmp_str));
}
}
}
void Equip::Init()
{

View File

@ -43,6 +43,7 @@ namespace MetaData
{
const metatable::MapThing* i = nullptr;
std::vector<int> buff_list;
std::vector<int> airdrop_mon_list;
void Init();
};

View File

@ -60,6 +60,7 @@ message MapThing
optional int32 explosion_interval = 18;
optional int32 explosion_times = 19;
optional int32 explosion_float = 20;
optional string airdrop_mon = 21;
}
message SafeArea