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; //是否有通行证