boss 关卡类型定义

This commit is contained in:
meixiongfeng 2022-09-16 15:30:15 +08:00
parent 8ac605b645
commit 6337ba17dd
2 changed files with 3 additions and 2 deletions

View File

@ -332,6 +332,7 @@ const (
const (
MaxMainlineIntensity = 3 // 最大难度
MaxRankNum = 3
MainLineBoss = 3
)
///聊天消息公告类型

View File

@ -61,7 +61,7 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.MainlineCh
"chapterId": mainline.ChapterId,
"branchID": mainline.BranchID,
}
if node.Episodetype == 5 { // 打完boss 设置领奖状态
if node.Episodetype == comm.MainLineBoss { // 打完boss 设置领奖状态
update["awaredID"] = pb.AwaredType_TypeAvailable
mainline.AwaredID = pb.AwaredType_TypeAvailable
}
@ -71,7 +71,7 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.MainlineCh
return
}
if node.Episodetype == 5 { // 挑战完成 boss关
if node.Episodetype == comm.MainLineBoss { // 挑战完成 boss关
_data := &pb.DBMainline{}
conf := this.module.configure.GetMainlineChapter(mainline.ChapterId + 1)
_data.Id = primitive.NewObjectID().Hex()