战斗标题

This commit is contained in:
meixiongfeng 2022-09-22 18:42:09 +08:00
parent b0a4811445
commit 8fa0f78888
5 changed files with 9 additions and 0 deletions

View File

@ -51,6 +51,7 @@ func (this *apiComp) Challenge(session comm.IUserSession, req *pb.HuntingChallen
code, record := this.module.battle.CreatePveBattle(session, &pb.BattlePVEReq{ code, record := this.module.battle.CreatePveBattle(session, &pb.BattlePVEReq{
Ptype: pb.PlayType_moonfantasy, Ptype: pb.PlayType_moonfantasy,
Title: "",
Leadpos: req.Leadpos, Leadpos: req.Leadpos,
Teamids: req.Teamids, Teamids: req.Teamids,
Mformat: cfgData.Boss, Mformat: cfgData.Boss,
@ -60,6 +61,7 @@ func (this *apiComp) Challenge(session comm.IUserSession, req *pb.HuntingChallen
} }
session.SendMsg(string(this.module.GetType()), HuntingChallengeResp, &pb.VikingChallengeResp{Info: &pb.BattleInfo{ session.SendMsg(string(this.module.GetType()), HuntingChallengeResp, &pb.VikingChallengeResp{Info: &pb.BattleInfo{
Id: record.Id, Id: record.Id,
Title: record.Title,
Btype: record.Btype, Btype: record.Btype,
Ptype: record.Ptype, Ptype: record.Ptype,
RedCompId: record.RedCompId, RedCompId: record.RedCompId,

View File

@ -51,6 +51,7 @@ func (this *apiComp) Challenge(session comm.IUserSession, req *pb.MainlineChalle
code, record := this.module.battle.CreatePveBattle(session, &pb.BattlePVEReq{ code, record := this.module.battle.CreatePveBattle(session, &pb.BattlePVEReq{
Ptype: pb.PlayType_moonfantasy, Ptype: pb.PlayType_moonfantasy,
Title: node.Title,
Leadpos: req.Leadpos, Leadpos: req.Leadpos,
Teamids: req.Teamids, Teamids: req.Teamids,
Mformat: node.FormatList, Mformat: node.FormatList,
@ -60,6 +61,7 @@ func (this *apiComp) Challenge(session comm.IUserSession, req *pb.MainlineChalle
} }
session.SendMsg(string(this.module.GetType()), MainlineChallengeResp, &pb.MainlineChallengeResp{Info: &pb.BattleInfo{ session.SendMsg(string(this.module.GetType()), MainlineChallengeResp, &pb.MainlineChallengeResp{Info: &pb.BattleInfo{
Id: record.Id, Id: record.Id,
Title: record.Title,
Btype: record.Btype, Btype: record.Btype,
Ptype: record.Ptype, Ptype: record.Ptype,
RedCompId: record.RedCompId, RedCompId: record.RedCompId,

View File

@ -32,6 +32,7 @@ func (this *apiComp) Battle(session comm.IUserSession, req *pb.MoonfantasyBattle
Monster: mdata.Monster, Monster: mdata.Monster,
Info: &pb.BattleInfo{ Info: &pb.BattleInfo{
Id: record.Id, Id: record.Id,
Title: record.Title,
Btype: record.Btype, Btype: record.Btype,
Ptype: record.Ptype, Ptype: record.Ptype,
RedCompId: record.RedCompId, RedCompId: record.RedCompId,

View File

@ -58,6 +58,7 @@ func (this *apiComp) Challenge(session comm.IUserSession, req *pb.PagodaChalleng
} }
code, record := this.module.battle.CreatePveBattle(session, &pb.BattlePVEReq{ code, record := this.module.battle.CreatePveBattle(session, &pb.BattlePVEReq{
Ptype: pb.PlayType_moonfantasy, Ptype: pb.PlayType_moonfantasy,
Title: "",
Leadpos: req.Leadpos, Leadpos: req.Leadpos,
Teamids: req.Teamids, Teamids: req.Teamids,
Mformat: conf.MonsterId, Mformat: conf.MonsterId,
@ -67,6 +68,7 @@ func (this *apiComp) Challenge(session comm.IUserSession, req *pb.PagodaChalleng
} }
session.SendMsg(string(this.module.GetType()), PagodaChallengeResp, &pb.PagodaChallengeResp{Info: &pb.BattleInfo{ session.SendMsg(string(this.module.GetType()), PagodaChallengeResp, &pb.PagodaChallengeResp{Info: &pb.BattleInfo{
Id: record.Id, Id: record.Id,
Title: record.Title,
Btype: record.Btype, Btype: record.Btype,
Ptype: record.Ptype, Ptype: record.Ptype,
RedCompId: record.RedCompId, RedCompId: record.RedCompId,

View File

@ -51,6 +51,7 @@ func (this *apiComp) Challenge(session comm.IUserSession, req *pb.VikingChalleng
code, record := this.module.battle.CreatePveBattle(session, &pb.BattlePVEReq{ code, record := this.module.battle.CreatePveBattle(session, &pb.BattlePVEReq{
Ptype: pb.PlayType_moonfantasy, Ptype: pb.PlayType_moonfantasy,
Title: "",
Leadpos: req.Leadpos, Leadpos: req.Leadpos,
Teamids: req.Teamids, Teamids: req.Teamids,
Mformat: cfgData.Boss, Mformat: cfgData.Boss,
@ -60,6 +61,7 @@ func (this *apiComp) Challenge(session comm.IUserSession, req *pb.VikingChalleng
} }
session.SendMsg(string(this.module.GetType()), VikingChallengeResp, &pb.VikingChallengeResp{Info: &pb.BattleInfo{ session.SendMsg(string(this.module.GetType()), VikingChallengeResp, &pb.VikingChallengeResp{Info: &pb.BattleInfo{
Id: record.Id, Id: record.Id,
Title: record.Title,
Btype: record.Btype, Btype: record.Btype,
Ptype: record.Ptype, Ptype: record.Ptype,
RedCompId: record.RedCompId, RedCompId: record.RedCompId,