新武器等级ok

This commit is contained in:
aozhiwei 2020-08-07 10:25:05 +08:00
parent 615b509c76
commit c85492693e
2 changed files with 8 additions and 1 deletions

View File

@ -3,6 +3,8 @@
#include "metadata.h" #include "metadata.h"
#include "metamgr.h" #include "metamgr.h"
#include "framework/cpp/utils.h"
namespace MetaData namespace MetaData
{ {
void Parameter::Init() void Parameter::Init()
@ -102,7 +104,11 @@ namespace MetaData
} }
{ {
std::vector<std::string> strings; std::vector<std::string> strings;
a8::Split(i->attr_type(), strings, '|'); if (f8::IsOnlineEnv()) {
a8::Split(i->attr_type(), strings, '|');
} else {
a8::Split(i->spera_type(), strings, '|');
}
int level = 1; int level = 1;
for (auto& str : strings) { for (auto& str : strings) {
if (str.empty()) { if (str.empty()) {

View File

@ -104,6 +104,7 @@ message EquipUpgrade
{ {
optional int32 id = 1; optional int32 id = 1;
optional string attr_type = 4; optional string attr_type = 4;
optional string spera_type = 5;
} }
message Player message Player