diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index f691ca9..371ce44 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -330,6 +330,12 @@ void Human::FillMFPlayerStats(cs::MFPlayerStats* stats_pb) p->set_key(pair.first); p->set_value(pair.second); } + if (vip_lv != 0) { + stats_pb->set_vip_lv(vip_lv); + } + if (head != 0) { + stats_pb->set_head(head); + } } void Human::GetAabbBox(AabbCollider& aabb_box) diff --git a/server/tools/protobuild/cs_proto.proto b/server/tools/protobuild/cs_proto.proto index 90a06dd..08f4c78 100755 --- a/server/tools/protobuild/cs_proto.proto +++ b/server/tools/protobuild/cs_proto.proto @@ -621,6 +621,9 @@ message MFPlayerStats optional string account_id = 21; //账号id optional int64 guild_id = 22; //公会id optional int32 rescue_guild_member = 23; //救起公会成员次数 + + optional int32 vip_lv = 35 [default = 0]; //等级 + optional int32 head = 36 [default = 0]; //头像框 } //空投