Quellcode durchsuchen

无尽模式完善(排行榜未做)

lt vor 11 Monaten
Ursprung
Commit
7ed9e9ed6a

+ 18 - 0
RO_Server_Trunk-branch_0.1.39/roserver/db/model/orm_helper.go

@@ -165,6 +165,14 @@ func ServerCompetitionGet(ssAckMsg *serverproto.SSGetServerCompetitionAck) {
 			}
 			continue
 		}
+
+		if k == "towerRound" {
+			err = model.GetDecodeMessage(ssAckMsg.TowerInfo, v)
+			if err != nil {
+				continue
+			}
+			continue
+		}
 		infoData := &serverproto.ServerCompetitionInfo{}
 		err = model.GetDecodeMessage(infoData, v)
 		if err != nil {
@@ -197,6 +205,16 @@ func ServerCompetitionSave(ntfMsg *serverproto.SSServerCompetitionInfoSaveNtf) {
 			util.WarnF("ServerCompetitionSave round end time err=%v msg=%v", err, *ntfMsg)
 		}
 	}
+	if ntfMsg.TowerInfo != nil {
+		err, msgStr := model.GetEncodeMessage(ntfMsg.TowerInfo)
+		if err != nil {
+			return
+		}
+		_, err = service.GetRedis().HSet(model.ServerCompetitionPrefix, "towerRound", msgStr).Result()
+		if err != nil {
+			util.WarnF("ServerCompetitionSave round end time err=%v msg=%v", err, *ntfMsg)
+		}
+	}
 }
 
 // 获取角色信息列表

+ 7 - 6
RO_Server_Trunk-branch_0.1.39/roserver/game/model/role_tower.go

@@ -96,7 +96,7 @@ func (this *RoleTower) Load(msg interface{}) bool {
 		//无尽模式初始化第一层boss
 		if this.nowTowerWjLevel == 0 {
 			this.nowTowerWjLevel = 1
-			this.duration = 1
+			this.duration = TowerMag.day
 			//this.TowerRefreshRankTime()
 			this.TowerBossRandom()
 			this.SetDirty(true)
@@ -285,7 +285,7 @@ func (this *RoleTower) OnTowerWjFightBegin(towerLevel int32) serverproto.ErrorCo
 	return serverproto.ErrorCode_ERROR_OK
 }
 
-func (this *RoleTower) OnTowerWjFightBuff(buff1, buff2, bufff3 int32) (b1, b2, b3 int32, err serverproto.ErrorCode) {
+func (this *RoleTower) OnTowerWjFightBuff(buff1, buff2, buff3 int32) (b1, b2, b3 int32, err serverproto.ErrorCode) {
 	if this.IsTowerUnlock() == false {
 		return 0, 0, 0, serverproto.ErrorCode_ERROR_CLIMBING_TOWER_IS_LOCKED
 	}
@@ -309,7 +309,7 @@ func (this *RoleTower) OnTowerWjFightBuff(buff1, buff2, bufff3 int32) (b1, b2, b
 				}
 			}
 		}
-	} else if bufff3 > 0 {
+	} else if buff3 > 0 {
 		globalData = serverproto.GlobalCfgLoader[int32(serverproto.GlobalType_Global_TowerBuff3Cost)]
 		if this.buff3 < globalData.IVal {
 			for i, v := range model.TowerBuff3Cost {
@@ -332,11 +332,12 @@ func (this *RoleTower) OnTowerWjFightBuff(buff1, buff2, bufff3 int32) (b1, b2, b
 		this.buff1++
 	} else if buff2 > 0 {
 		this.buff2++
-	} else if bufff3 > 0 {
+	} else if buff3 > 0 {
 		this.buff3++
 	} else {
 		return 0, 0, 0, serverproto.ErrorCode_ERROR_FAIL
 	}
+	this.SetDirty(true)
 	util.InfoF("uuid:%v tower buff buy buff1:%v,buff2:%v,buff3:%v", this.role.GetUUid(), this.buff1, this.buff2, this.buff3)
 	return this.buff1, this.buff2, this.buff3, serverproto.ErrorCode_ERROR_OK
 }
@@ -410,7 +411,7 @@ func (this *RoleTower) OnTowerWjFightEnd(towerLevel, fightTime int32, recordTime
 	//给奖励
 	var v *model.TowerWjReward
 	if this.rewardLevel < towerLevel {
-		for _, v = range model.ConvertTowerWjData[this.duration] {
+		for _, v = range model.ConvertTowerWjData[TowerMag.day] {
 			if this.nowTowerWjLevel >= v.Min && this.nowTowerWjLevel <= v.Max {
 				var addItemList = map[int32]int32{}
 				for _, exItems := range v.ExItemList {
@@ -441,7 +442,7 @@ func (this *RoleTower) OnTowerWjFightEnd(towerLevel, fightTime int32, recordTime
 		Buff2:          this.buff2,
 		Buff3:          this.buff3,
 		WjLevel:        this.nowTowerWjLevel,
-		Duration:       this.duration,
+		Duration:       TowerMag.day,
 		RefreshTowerWj: this.refreshTowerWj,
 		RewardLevel:    this.rewardLevel,
 	}

+ 145 - 79
RO_Server_Trunk-branch_0.1.39/roserver/serverproto/framework.pb.go

@@ -1087,6 +1087,7 @@ var xxx_messageInfo_SSGetServerCompetitionReq proto.InternalMessageInfo
 type SSGetServerCompetitionAck struct {
 	CompetitionDataList  []*ServerCompetitionInfo `protobuf:"bytes,1,rep,name=competition_data_list,json=competitionDataList,proto3" json:"competition_data_list,omitempty"`
 	RounInfo             *StRecRound              `protobuf:"bytes,2,opt,name=roun_info,json=rounInfo,proto3" json:"roun_info,omitempty"`
+	TowerInfo            *TowerRound              `protobuf:"bytes,3,opt,name=tower_info,json=towerInfo,proto3" json:"tower_info,omitempty"`
 	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
 	XXX_unrecognized     []byte                   `json:"-"`
 	XXX_sizecache        int32                    `json:"-"`
@@ -1131,10 +1132,65 @@ func (m *SSGetServerCompetitionAck) GetRounInfo() *StRecRound {
 	return nil
 }
 
+func (m *SSGetServerCompetitionAck) GetTowerInfo() *TowerRound {
+	if m != nil {
+		return m.TowerInfo
+	}
+	return nil
+}
+
+type TowerRound struct {
+	Day                  int32    `protobuf:"varint,1,opt,name=Day,proto3" json:"Day,omitempty"`
+	IsRefresh            bool     `protobuf:"varint,2,opt,name=is_refresh,json=isRefresh,proto3" json:"is_refresh,omitempty"`
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
+	XXX_unrecognized     []byte   `json:"-"`
+	XXX_sizecache        int32    `json:"-"`
+}
+
+func (m *TowerRound) Reset()         { *m = TowerRound{} }
+func (m *TowerRound) String() string { return proto.CompactTextString(m) }
+func (*TowerRound) ProtoMessage()    {}
+func (*TowerRound) Descriptor() ([]byte, []int) {
+	return fileDescriptor_d31604874e01146d, []int{20}
+}
+
+func (m *TowerRound) XXX_Unmarshal(b []byte) error {
+	return xxx_messageInfo_TowerRound.Unmarshal(m, b)
+}
+func (m *TowerRound) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+	return xxx_messageInfo_TowerRound.Marshal(b, m, deterministic)
+}
+func (m *TowerRound) XXX_Merge(src proto.Message) {
+	xxx_messageInfo_TowerRound.Merge(m, src)
+}
+func (m *TowerRound) XXX_Size() int {
+	return xxx_messageInfo_TowerRound.Size(m)
+}
+func (m *TowerRound) XXX_DiscardUnknown() {
+	xxx_messageInfo_TowerRound.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_TowerRound proto.InternalMessageInfo
+
+func (m *TowerRound) GetDay() int32 {
+	if m != nil {
+		return m.Day
+	}
+	return 0
+}
+
+func (m *TowerRound) GetIsRefresh() bool {
+	if m != nil {
+		return m.IsRefresh
+	}
+	return false
+}
+
 // 服务器保存赛季信息
 type SSServerCompetitionInfoSaveNtf struct {
 	CompetitionData      *ServerCompetitionInfo `protobuf:"bytes,1,opt,name=competition_data,json=competitionData,proto3" json:"competition_data,omitempty"`
 	RoundInfo            *StRecRound            `protobuf:"bytes,2,opt,name=round_info,json=roundInfo,proto3" json:"round_info,omitempty"`
+	TowerInfo            *TowerRound            `protobuf:"bytes,3,opt,name=tower_info,json=towerInfo,proto3" json:"tower_info,omitempty"`
 	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
 	XXX_unrecognized     []byte                 `json:"-"`
 	XXX_sizecache        int32                  `json:"-"`
@@ -1144,7 +1200,7 @@ func (m *SSServerCompetitionInfoSaveNtf) Reset()         { *m = SSServerCompetit
 func (m *SSServerCompetitionInfoSaveNtf) String() string { return proto.CompactTextString(m) }
 func (*SSServerCompetitionInfoSaveNtf) ProtoMessage()    {}
 func (*SSServerCompetitionInfoSaveNtf) Descriptor() ([]byte, []int) {
-	return fileDescriptor_d31604874e01146d, []int{20}
+	return fileDescriptor_d31604874e01146d, []int{21}
 }
 
 func (m *SSServerCompetitionInfoSaveNtf) XXX_Unmarshal(b []byte) error {
@@ -1179,6 +1235,13 @@ func (m *SSServerCompetitionInfoSaveNtf) GetRoundInfo() *StRecRound {
 	return nil
 }
 
+func (m *SSServerCompetitionInfoSaveNtf) GetTowerInfo() *TowerRound {
+	if m != nil {
+		return m.TowerInfo
+	}
+	return nil
+}
+
 // 配置文件热加载
 type SSServerConfigReloadNtf struct {
 	CfgList              []string `protobuf:"bytes,1,rep,name=cfg_list,json=cfgList,proto3" json:"cfg_list,omitempty"`
@@ -1191,7 +1254,7 @@ func (m *SSServerConfigReloadNtf) Reset()         { *m = SSServerConfigReloadNtf
 func (m *SSServerConfigReloadNtf) String() string { return proto.CompactTextString(m) }
 func (*SSServerConfigReloadNtf) ProtoMessage()    {}
 func (*SSServerConfigReloadNtf) Descriptor() ([]byte, []int) {
-	return fileDescriptor_d31604874e01146d, []int{21}
+	return fileDescriptor_d31604874e01146d, []int{22}
 }
 
 func (m *SSServerConfigReloadNtf) XXX_Unmarshal(b []byte) error {
@@ -1232,7 +1295,7 @@ func (m *StRecRound) Reset()         { *m = StRecRound{} }
 func (m *StRecRound) String() string { return proto.CompactTextString(m) }
 func (*StRecRound) ProtoMessage()    {}
 func (*StRecRound) Descriptor() ([]byte, []int) {
-	return fileDescriptor_d31604874e01146d, []int{22}
+	return fileDescriptor_d31604874e01146d, []int{23}
 }
 
 func (m *StRecRound) XXX_Unmarshal(b []byte) error {
@@ -1287,7 +1350,7 @@ func (m *SSGetGServerStateReq) Reset()         { *m = SSGetGServerStateReq{} }
 func (m *SSGetGServerStateReq) String() string { return proto.CompactTextString(m) }
 func (*SSGetGServerStateReq) ProtoMessage()    {}
 func (*SSGetGServerStateReq) Descriptor() ([]byte, []int) {
-	return fileDescriptor_d31604874e01146d, []int{23}
+	return fileDescriptor_d31604874e01146d, []int{24}
 }
 
 func (m *SSGetGServerStateReq) XXX_Unmarshal(b []byte) error {
@@ -1327,7 +1390,7 @@ func (m *SSGetGServerStateAck) Reset()         { *m = SSGetGServerStateAck{} }
 func (m *SSGetGServerStateAck) String() string { return proto.CompactTextString(m) }
 func (*SSGetGServerStateAck) ProtoMessage()    {}
 func (*SSGetGServerStateAck) Descriptor() ([]byte, []int) {
-	return fileDescriptor_d31604874e01146d, []int{24}
+	return fileDescriptor_d31604874e01146d, []int{25}
 }
 
 func (m *SSGetGServerStateAck) XXX_Unmarshal(b []byte) error {
@@ -1383,6 +1446,7 @@ func init() {
 	proto.RegisterType((*ServerCompetitionInfo)(nil), "serverproto.ServerCompetitionInfo")
 	proto.RegisterType((*SSGetServerCompetitionReq)(nil), "serverproto.SSGetServerCompetitionReq")
 	proto.RegisterType((*SSGetServerCompetitionAck)(nil), "serverproto.SSGetServerCompetitionAck")
+	proto.RegisterType((*TowerRound)(nil), "serverproto.TowerRound")
 	proto.RegisterType((*SSServerCompetitionInfoSaveNtf)(nil), "serverproto.SSServerCompetitionInfoSaveNtf")
 	proto.RegisterType((*SSServerConfigReloadNtf)(nil), "serverproto.SSServerConfigReloadNtf")
 	proto.RegisterType((*StRecRound)(nil), "serverproto.StRecRound")
@@ -1395,78 +1459,80 @@ func init() {
 }
 
 var fileDescriptor_d31604874e01146d = []byte{
-	// 1153 bytes of a gzipped FileDescriptorProto
-	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x56, 0xcf, 0x6e, 0x23, 0xc5,
-	0x13, 0xd6, 0x38, 0xfe, 0x33, 0x53, 0x49, 0xec, 0x64, 0xb2, 0xf9, 0xc5, 0x89, 0xf7, 0x07, 0x66,
-	0x94, 0x45, 0x01, 0x89, 0x20, 0xed, 0xae, 0x40, 0x08, 0x21, 0x11, 0x02, 0x8a, 0xac, 0x6c, 0xa2,
-	0xa8, 0x27, 0xbb, 0x87, 0xbd, 0x8c, 0x26, 0x33, 0x35, 0x43, 0xcb, 0x9e, 0x6e, 0x67, 0xba, 0xed,
-	0xc5, 0x1c, 0x39, 0xc0, 0x95, 0x1b, 0x8f, 0x80, 0xb8, 0x21, 0xde, 0x85, 0xf7, 0x41, 0xdd, 0x3d,
-	0xb6, 0xc7, 0xde, 0x98, 0x44, 0x42, 0x9c, 0x38, 0xd9, 0x5d, 0x55, 0xfd, 0x55, 0xf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x54, 0xf6, 0xf8, 0x41, 0x85, 0xea, 0x23, 0xc5, 0xba, 0xd2, 0xe7, 0xb0, 0x37, 0x2f,
-	0x94, 0x25, 0x34, 0x25, 0x38, 0xe0, 0x61, 0xac, 0x2a, 0xdc, 0x07, 0x3b, 0x4a, 0xd2, 0x39, 0x8b,
-	0x0e, 0x69, 0x44, 0x49, 0xaa, 0x85, 0xc4, 0x00, 0xe6, 0x70, 0xaa, 0xe1, 0x5c, 0x3d, 0x1e, 0x35,
-	0x6a, 0xa1, 0x09, 0x47, 0x59, 0x8c, 0xbb, 0x03, 0x7a, 0x51, 0x96, 0x83, 0xad, 0x0c, 0x5a, 0x0d,
-	0x87, 0xd0, 0x34, 0x62, 0xa1, 0x2c, 0x2d, 0x6b, 0x62, 0x43, 0x5b, 0x7b, 0x2c, 0xd5, 0xc2, 0xf8,
-	0x14, 0x1e, 0xe9, 0xd6, 0x9f, 0xf9, 0xd3, 0xd7, 0xa8, 0x44, 0xa5, 0xe2, 0x77, 0xa1, 0x78, 0x2c,
-	0x07, 0x72, 0x32, 0xc4, 0x22, 0x35, 0x18, 0xd3, 0xf5, 0x64, 0x88, 0xde, 0xf8, 0x8e, 0x8d, 0x4a,
-	0x2e, 0xf7, 0x6d, 0x74, 0xbf, 0x98, 0x05, 0x94, 0xee, 0xdb, 0xe3, 0x3b, 0x3a, 0xa3, 0x21, 0x75,
-	0x4f, 0x8a, 0xed, 0x8a, 0xa0, 0xaf, 0xb6, 0x5e, 0x37, 0x8f, 0x3f, 0xfe, 0xbc, 0x14, 0x7d, 0x53,
-	0xd7, 0x3f, 0xcf, 0xfe, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x29, 0x78, 0x58, 0x7c, 0xef, 0x0b, 0x00,
-	0x00,
+	// 1196 bytes of a gzipped FileDescriptorProto
+	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x56, 0x4f, 0x6f, 0x1b, 0x45,
+	0x14, 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, 0x7b, 0x17, 0x3a, 0x96, 0xdb, 0x5c,
+	0xe4, 0x75, 0x0a, 0xaf, 0x1b, 0x69, 0x5f, 0xe4, 0x86, 0xc7, 0x5f, 0xc2, 0x4d, 0xc3, 0xd4, 0x27,
+	0xe1, 0xe4, 0xf1, 0xac, 0x91, 0x2e, 0xdd, 0x87, 0x50, 0xbd, 0xed, 0x23, 0x3d, 0x1e, 0x61, 0x95,
+	0x1a, 0xac, 0xe8, 0x74, 0x3c, 0xc2, 0xe0, 0xe2, 0x12, 0x47, 0x62, 0xf7, 0x55, 0x8e, 0xfe, 0xa3,
+	0xa9, 0x41, 0x6d, 0x3d, 0xdc, 0xb9, 0x64, 0xa2, 0x26, 0xa4, 0x99, 0x65, 0xe5, 0x4e, 0x00, 0x7d,
+	0xbb, 0xf9, 0xaa, 0x73, 0xf0, 0xf9, 0xd7, 0x35, 0xeb, 0xd7, 0xab, 0xe6, 0xe7, 0xc1, 0x3f, 0x01,
+	0x00, 0x00, 0xff, 0xff, 0xfe, 0x95, 0xf1, 0x8e, 0x9e, 0x0c, 0x00, 0x00,
 }

+ 9 - 0
RO_Server_Trunk-branch_0.1.39/roserver/serverproto/framework.proto

@@ -118,11 +118,20 @@ message SSGetServerCompetitionReq { //project db
 message SSGetServerCompetitionAck { //project game
     repeated ServerCompetitionInfo competition_data_list       = 1; //当前已经进行到的赛季id(结束或者进行中)
     StRecRound roun_info     =2;         // 飞艇数据记录
+    TowerRound tower_info =3;//本服务器无尽模式周期
 }
+
+
+message TowerRound {
+    int32 Day =1;//本服务器无尽模式周期
+    bool is_refresh =2;//本服务器是否有玩家本期达到1000层
+}
+
 //服务器保存赛季信息
 message SSServerCompetitionInfoSaveNtf {    //project db
     ServerCompetitionInfo competition_data      = 1;
     StRecRound round_info      = 2;
+    TowerRound tower_info =3;//本服务器无尽模式周期
 }
 //配置文件热加载
 message SSServerConfigReloadNtf {   //project social|game

+ 2 - 2
RO_Server_Trunk-branch_0.1.39/roserver/serverproto/user.proto

@@ -1129,8 +1129,8 @@ message RoleTower{
     uint64 sys_reward_time             = 4; //获取系统补偿奖励(印记奖励)时间戳
     uint64 tower_level_day_reward_time = 5; // 每天馈赠奖励可领取时间戳
     repeated int32 boss =6;//无尽模式当前官卡boss
-    int32    now_tower_wj_level           = 7; //
-    int64    now_tower_wj_time            = 8; //
+    int32    now_tower_wj_level           = 7; //当前无尽关卡
+    int64    now_tower_wj_time            = 8; //上衣关卡挑战时间点
     int64 refresh_tower_wj =9;//下次刷新排行榜时间
     int32 buff1 =10;//祝福1
     int32 buff2 =11;//祝福2