同步到测试服
This commit is contained in:
parent
3bbb9ac9a6
commit
bf9fbd150e
@ -73863,5 +73863,16 @@
|
|||||||
"atkpro": 1,
|
"atkpro": 1,
|
||||||
"defpro": 0.8,
|
"defpro": 0.8,
|
||||||
"modelsize": 1
|
"modelsize": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Id": 710003,
|
||||||
|
"pos": 5,
|
||||||
|
"captainId": 0,
|
||||||
|
"monster": 140071,
|
||||||
|
"lv": 10,
|
||||||
|
"hppro": 0.6,
|
||||||
|
"atkpro": 1,
|
||||||
|
"defpro": 0.8,
|
||||||
|
"modelsize": 1
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -63,6 +63,10 @@ func (this *modelBattleComp) createeve(session comm.IUserSession, conn *db.DBCon
|
|||||||
if req.Format != nil {
|
if req.Format != nil {
|
||||||
model := db.NewDBModel(comm.TableHero, time.Hour, conn)
|
model := db.NewDBModel(comm.TableHero, time.Hour, conn)
|
||||||
record.Redflist = make([]*pb.DBBattleFormt, 1)
|
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 {
|
for i, v := range req.Format.Format {
|
||||||
if v != "" {
|
if v != "" {
|
||||||
@ -365,7 +369,7 @@ func (this *modelBattleComp) createMasterRoles(comp, wheel int, fid int32) (capt
|
|||||||
} else {
|
} else {
|
||||||
hero := &pb.DBHero{}
|
hero := &pb.DBHero{}
|
||||||
if hero = this.module.ModuleHero.CreateMonster(monst.HeroId, monst.Star, v.Lv); hero == nil {
|
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
|
code = pb.ErrorCode_ReqParameterError
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user