diff --git a/server/gameserver/metadata.cc b/server/gameserver/metadata.cc index 6302ab2..f06b786 100644 --- a/server/gameserver/metadata.cc +++ b/server/gameserver/metadata.cc @@ -3,6 +3,8 @@ #include "metadata.h" #include "metamgr.h" +#include "framework/cpp/utils.h" + namespace MetaData { void Parameter::Init() @@ -102,7 +104,11 @@ namespace MetaData } { std::vector 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; for (auto& str : strings) { if (str.empty()) { diff --git a/server/tools/protobuild/metatable.proto b/server/tools/protobuild/metatable.proto index c49b5f5..9ff3ce9 100755 --- a/server/tools/protobuild/metatable.proto +++ b/server/tools/protobuild/metatable.proto @@ -104,6 +104,7 @@ message EquipUpgrade { optional int32 id = 1; optional string attr_type = 4; + optional string spera_type = 5; } message Player