支线任务去除锁定约束

This commit is contained in:
wh_zcy 2022-12-30 16:36:27 +08:00
parent f9c7bc15dd
commit 5148608d78
2 changed files with 8 additions and 5 deletions

View File

@ -163,7 +163,8 @@ func (this *ModuleRtask) initRtaskVerifyHandle() {
comm.Rtype39, comm.Rtype50, comm.Rtype51, comm.Rtype53, comm.Rtype39, comm.Rtype50, comm.Rtype51, comm.Rtype53,
comm.Rtype54, comm.Rtype57, comm.Rtype58, comm.Rtype60, comm.Rtype54, comm.Rtype57, comm.Rtype58, comm.Rtype60,
comm.Rtype62, comm.Rtype64, comm.Rtype69, comm.Rtype72, comm.Rtype88, comm.Rtype104, comm.Rtype62, comm.Rtype64, comm.Rtype69, comm.Rtype72, comm.Rtype88, comm.Rtype104,
comm.Rtype96, comm.Rtype105, comm.Rtype128, comm.Rtype130, comm.Rtype131: comm.Rtype96, comm.Rtype105, comm.Rtype128, comm.Rtype130, comm.Rtype131,
comm.Rtype141, comm.Rtype142, comm.Rtype143, comm.Rtype144, comm.Rtype145, comm.Rtype146:
this.registerVerifyHandle(v.Id, &rtaskCondi{ this.registerVerifyHandle(v.Id, &rtaskCondi{
find: this.modelRtaskRecord.lessEqualFirstParam, find: this.modelRtaskRecord.lessEqualFirstParam,
verify: this.modelRtaskRecord.verifyFirstGreatEqualParam, verify: this.modelRtaskRecord.verifyFirstGreatEqualParam,

View File

@ -109,11 +109,13 @@ func (this *Worldtask) TaskcondNotify(session comm.IUserSession, condId int32) e
nextTaskId = taskConf.IdAfter nextTaskId = taskConf.IdAfter
// 判断玩家等级要求 // 判断玩家等级要求
if taskConf.Des == 2 {
if user.Lv < taskConf.Lock { if user.Lv < taskConf.Lock {
logFields = append(logFields, log.Field{Key: "当前lv", Value: user.Lv}, log.Field{Key: "期望等级", Value: taskConf.Lock}) logFields = append(logFields, log.Field{Key: "当前lv", Value: user.Lv}, log.Field{Key: "期望等级", Value: taskConf.Lock})
this.Debug("等级不满足", logFields...) this.Debug("等级不满足", logFields...)
return comm.NewCustomError(pb.ErrorCode_WorldtaskLvNotEnough) return comm.NewCustomError(pb.ErrorCode_WorldtaskLvNotEnough)
} }
}
//完成任务 //完成任务
if err := this.modelWorldtask.finishTask(groupId, taskId, userTask); err != nil { if err := this.modelWorldtask.finishTask(groupId, taskId, userTask); err != nil {