上传战斗后援占位
This commit is contained in:
parent
326276f337
commit
5af1eccf79
@ -145,7 +145,7 @@ func (this *modelBattleComp) createeve(session comm.IUserSession, conn *db.DBCon
|
||||
}
|
||||
}
|
||||
if conf.DefaultHero != 0 {
|
||||
if captain, masters, errdata = this.createMasterRoles(100, 0, conf.DefaultHero); errdata != nil {
|
||||
if captain, masters, errdata = this.createMasterRoles(1100, 0, conf.DefaultHero); errdata != nil {
|
||||
return
|
||||
}
|
||||
record.Redflist[0].Systeam = masters
|
||||
@ -154,7 +154,7 @@ func (this *modelBattleComp) createeve(session comm.IUserSession, conn *db.DBCon
|
||||
}
|
||||
}
|
||||
if conf.RedAssistTeam != 0 {
|
||||
if captain, masters, errdata = this.createMasterRoles(100, 0, conf.RedAssistTeam); errdata != nil {
|
||||
if captain, masters, errdata = this.createMasterRoles(1200, 0, conf.RedAssistTeam); errdata != nil {
|
||||
return
|
||||
}
|
||||
record.Redflist[0].Backupteam = masters
|
||||
@ -162,7 +162,7 @@ func (this *modelBattleComp) createeve(session comm.IUserSession, conn *db.DBCon
|
||||
} else {
|
||||
record.Redflist = make([]*pb.DBBattleFormt, len(req.Sysformat))
|
||||
for i, v := range req.Sysformat {
|
||||
if captain, masters, errdata = this.createMasterRoles(100, i, v); errdata != nil {
|
||||
if captain, masters, errdata = this.createMasterRoles(1100, i, v); errdata != nil {
|
||||
return
|
||||
}
|
||||
record.Redflist[i] = &pb.DBBattleFormt{
|
||||
@ -172,7 +172,7 @@ func (this *modelBattleComp) createeve(session comm.IUserSession, conn *db.DBCon
|
||||
}
|
||||
if req.Backupformat != nil && len(req.Backupformat) > 0 {
|
||||
for i, v := range req.Backupformat {
|
||||
if captain, masters, errdata = this.createMasterRoles(100, i, v); errdata != nil {
|
||||
if captain, masters, errdata = this.createMasterRoles(1200, i, v); errdata != nil {
|
||||
return
|
||||
}
|
||||
record.Redflist[i].Backupteam = masters
|
||||
@ -181,7 +181,7 @@ func (this *modelBattleComp) createeve(session comm.IUserSession, conn *db.DBCon
|
||||
}
|
||||
|
||||
for i, v := range req.Buleformat {
|
||||
if captain, masters, errdata = this.createMasterRoles(200, i, v); errdata != nil {
|
||||
if captain, masters, errdata = this.createMasterRoles(2100, i, v); errdata != nil {
|
||||
return
|
||||
}
|
||||
record.Buleflist[i] = &pb.DBBattleFormt{
|
||||
@ -289,7 +289,7 @@ func (this *modelBattleComp) createpve(session comm.IUserSession, conn *db.DBCon
|
||||
}
|
||||
|
||||
if conf.DefaultHero != 0 {
|
||||
if captain, masters, errdata = this.createMasterRoles(100, 0, conf.DefaultHero); errdata != nil {
|
||||
if captain, masters, errdata = this.createMasterRoles(1100, 0, conf.DefaultHero); errdata != nil {
|
||||
return
|
||||
}
|
||||
record.Redflist[0].Systeam = masters
|
||||
@ -298,7 +298,7 @@ func (this *modelBattleComp) createpve(session comm.IUserSession, conn *db.DBCon
|
||||
}
|
||||
}
|
||||
if conf.RedAssistTeam != 0 {
|
||||
if captain, masters, errdata = this.createMasterRoles(100, 0, conf.RedAssistTeam); errdata != nil {
|
||||
if captain, masters, errdata = this.createMasterRoles(1200, 0, conf.RedAssistTeam); errdata != nil {
|
||||
return
|
||||
}
|
||||
record.Redflist[0].Backupteam = masters
|
||||
@ -313,7 +313,7 @@ func (this *modelBattleComp) createpve(session comm.IUserSession, conn *db.DBCon
|
||||
// }
|
||||
|
||||
for i, v := range req.Mformat {
|
||||
if captain, masters, errdata = this.createMasterRoles(200, i, v); errdata != nil {
|
||||
if captain, masters, errdata = this.createMasterRoles(2100, i, v); errdata != nil {
|
||||
return
|
||||
}
|
||||
record.Buleflist[i] = &pb.DBBattleFormt{
|
||||
@ -323,7 +323,7 @@ func (this *modelBattleComp) createpve(session comm.IUserSession, conn *db.DBCon
|
||||
}
|
||||
|
||||
if conf.BlueAssistTeam != 0 {
|
||||
if captain, masters, errdata = this.createMasterRoles(200, 0, conf.BlueAssistTeam); errdata != nil {
|
||||
if captain, masters, errdata = this.createMasterRoles(2200, 0, conf.BlueAssistTeam); errdata != nil {
|
||||
return
|
||||
}
|
||||
record.Buleflist[0].Backupteam = masters
|
||||
@ -448,7 +448,7 @@ func (this *modelBattleComp) createpvb(session comm.IUserSession, conn *db.DBCon
|
||||
masters []*pb.BattleRole
|
||||
)
|
||||
for i, v := range req.Mformat {
|
||||
if captain, masters, errdata = this.createMasterRoles(200, i, v); errdata != nil {
|
||||
if captain, masters, errdata = this.createMasterRoles(2100, i, v); errdata != nil {
|
||||
return
|
||||
}
|
||||
record.Buleflist[i] = &pb.DBBattleFormt{
|
||||
@ -1064,7 +1064,7 @@ func (this *modelBattleComp) creatStoneBattle(session comm.IUserSession, stoneBa
|
||||
masters []*pb.BattleRole
|
||||
)
|
||||
for i, v := range stoneBattle.Format {
|
||||
if captain, masters, errdata = this.createMasterRoles(200, i, v); errdata != nil {
|
||||
if captain, masters, errdata = this.createMasterRoles(2100, i, v); errdata != nil {
|
||||
return
|
||||
}
|
||||
for _, v1 := range masters {
|
||||
|
Loading…
Reference in New Issue
Block a user