diff --git a/server/gameserver/constant.h b/server/gameserver/constant.h index ce60a475..534ca97d 100755 --- a/server/gameserver/constant.h +++ b/server/gameserver/constant.h @@ -307,6 +307,8 @@ enum PropertyType_e kPropZombieId = 23, kPropSkillLeftTime = 24, + kPropSkillCurrTimes = 25, + kPropSkillMaxTimes = 26, }; enum MapObjectType_e diff --git a/server/tools/protobuild/cs_proto.proto b/server/tools/protobuild/cs_proto.proto index 42bdaf3c..6e25a9c0 100755 --- a/server/tools/protobuild/cs_proto.proto +++ b/server/tools/protobuild/cs_proto.proto @@ -126,6 +126,12 @@ message MFVec2 property_type: 24 技能cd时间 property_subtype: 技能id valule: 技能cd时间(剩余时间) + property_type: 25 技能次数 + property_subtype: 技能id + valule: 当前可用次数 + property_type: 26 技能次数上限 + property_subtype: 技能id + valule: 次数上限 */ message MFPropertyChg { @@ -749,6 +755,8 @@ message MFSkill optional int32 skill_id = 1; //技能id optional int32 left_time = 2; //技能cd时间(剩余时间) optional int32 cd_time = 3; //技能cd时间(总时间) + optional int32 curr_times = 4; //当前可用次数 + optional int32 max_times = 5; //次数上限 } message MFPlaySkill @@ -760,7 +768,7 @@ message MFPlaySkill message MFTextElement { optional string text = 1; //文本内容 - optional int32 color = 2; //默认系统颜色rgb + optional int32 color = 2 [default = 0xFFFFFF]; //默认系统颜色rgb } message MFImageElement