From 33eeeb25f8026ca81ee27990995189ce4c198b2a Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 21 May 2020 11:47:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8D=8F=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/gameserver/constant.h | 1 + server/gameserver/types.h | 1 + server/tools/protobuild/cs_proto.proto | 1 + 3 files changed, 3 insertions(+) diff --git a/server/gameserver/constant.h b/server/gameserver/constant.h index 1b32161..21d8daa 100755 --- a/server/gameserver/constant.h +++ b/server/gameserver/constant.h @@ -122,6 +122,7 @@ enum BuffEffectType_e kBET_Camouflage = 5, //伪装 kBET_AdPlaying = 6, //看广告中 kBET_LordMode = 7, //上帝模式 + kBET_NewBieMode = 8, //新手模式血量低于50% kBET_OnceChgAttr = 11, //一次性buff kBET_End }; diff --git a/server/gameserver/types.h b/server/gameserver/types.h index 9df4a03..6327baa 100755 --- a/server/gameserver/types.h +++ b/server/gameserver/types.h @@ -83,6 +83,7 @@ struct PlayerStats int gold = 0; int score = 0; + std::vector> items; int pass_score = 0; int rank_score = 0; diff --git a/server/tools/protobuild/cs_proto.proto b/server/tools/protobuild/cs_proto.proto index 636a81e..5f2532f 100755 --- a/server/tools/protobuild/cs_proto.proto +++ b/server/tools/protobuild/cs_proto.proto @@ -573,6 +573,7 @@ message MFPlayerStats optional int32 gold = 10; //金币 optional int32 score = 11; //积分 + repeated MFPair items = 6; //奖励道具 key:item_id value:数量 optional int32 pass_score = 9; //通行证积分 optional int32 rank_score = 13; //排名积分 optional bool has_pass = 27; //是否有通行证