同步到测试服

This commit is contained in:
liwei1dao 2022-11-16 18:11:43 +08:00
parent 3bbb9ac9a6
commit bf9fbd150e
2 changed files with 17 additions and 2 deletions

View File

@ -73863,5 +73863,16 @@
"atkpro": 1,
"defpro": 0.8,
"modelsize": 1
},
{
"Id": 710003,
"pos": 5,
"captainId": 0,
"monster": 140071,
"lv": 10,
"hppro": 0.6,
"atkpro": 1,
"defpro": 0.8,
"modelsize": 1
}
]

View File

@ -59,10 +59,14 @@ func (this *modelBattleComp) createeve(session comm.IUserSession, conn *db.DBCon
captain int32
masters []*pb.BattleRole
)
if req.Format != nil {
model := db.NewDBModel(comm.TableHero, time.Hour, conn)
record.Redflist = make([]*pb.DBBattleFormt, 1)
record.Redflist[0] = &pb.DBBattleFormt{
Leadpos: req.Format.Leadpos,
Team: make([]*pb.BattleRole, len(req.Format.Format)),
}
//自己的英雄阵营
for i, v := range req.Format.Format {
if v != "" {
@ -365,7 +369,7 @@ func (this *modelBattleComp) createMasterRoles(comp, wheel int, fid int32) (capt
} else {
hero := &pb.DBHero{}
if hero = this.module.ModuleHero.CreateMonster(monst.HeroId, monst.Star, v.Lv); hero == nil {
this.module.Error("on found battle req data", log.Fields{ "HeroId": monst.HeroId})
this.module.Error("on found battle req data", log.Fields{"HeroId": monst.HeroId})
code = pb.ErrorCode_ReqParameterError
return
} else {