宝箱关卡

This commit is contained in:
meixiongfeng 2022-09-15 18:56:55 +08:00
parent 67dafc242c
commit 06b07998e9
2 changed files with 6 additions and 8 deletions

View File

@ -44,12 +44,11 @@ func (this *apiComp) Challenge(session comm.IUserSession, req *pb.MainlineChalle
code = pb.ErrorCode_MainlineNotFindChapter
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{
Ptype: pb.PlayType_moonfantasy,
Leadpos: req.Leadpos,

View File

@ -49,10 +49,9 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.MainlineCh
code = pb.ErrorCode_MainlineNotFindChapter
return
}
}
if node.Previoustage != mainline.MainlineId {
code = pb.ErrorCode_MainlineNotFindChapter
return
if v == int32(req.MainlineId) {
break
}
}
res = append(res, node.Award...)