宝箱关卡
This commit is contained in:
parent
67dafc242c
commit
06b07998e9
@ -44,12 +44,11 @@ func (this *apiComp) Challenge(session comm.IUserSession, req *pb.MainlineChalle
|
|||||||
code = pb.ErrorCode_MainlineNotFindChapter
|
code = pb.ErrorCode_MainlineNotFindChapter
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if v == int32(req.MainlineId) {
|
||||||
|
break
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if node.Previoustage != curChapter.MainlineId {
|
|
||||||
code = pb.ErrorCode_MainlineNotFindChapter
|
|
||||||
return
|
|
||||||
}
|
|
||||||
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,
|
||||||
Leadpos: req.Leadpos,
|
Leadpos: req.Leadpos,
|
||||||
|
@ -49,10 +49,9 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.MainlineCh
|
|||||||
code = pb.ErrorCode_MainlineNotFindChapter
|
code = pb.ErrorCode_MainlineNotFindChapter
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if v == int32(req.MainlineId) {
|
||||||
|
break
|
||||||
}
|
}
|
||||||
if node.Previoustage != mainline.MainlineId {
|
|
||||||
code = pb.ErrorCode_MainlineNotFindChapter
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
res = append(res, node.Award...)
|
res = append(res, node.Award...)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user