新武器等级ok
This commit is contained in:
parent
615b509c76
commit
c85492693e
@ -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()) {
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user