支线任务去除锁定约束
This commit is contained in:
parent
f9c7bc15dd
commit
5148608d78
@ -163,7 +163,8 @@ func (this *ModuleRtask) initRtaskVerifyHandle() {
|
||||
comm.Rtype39, comm.Rtype50, comm.Rtype51, comm.Rtype53,
|
||||
comm.Rtype54, comm.Rtype57, comm.Rtype58, comm.Rtype60,
|
||||
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{
|
||||
find: this.modelRtaskRecord.lessEqualFirstParam,
|
||||
verify: this.modelRtaskRecord.verifyFirstGreatEqualParam,
|
||||
|
@ -109,11 +109,13 @@ func (this *Worldtask) TaskcondNotify(session comm.IUserSession, condId int32) e
|
||||
nextTaskId = taskConf.IdAfter
|
||||
|
||||
// 判断玩家等级要求
|
||||
if taskConf.Des == 2 {
|
||||
if user.Lv < taskConf.Lock {
|
||||
logFields = append(logFields, log.Field{Key: "当前lv", Value: user.Lv}, log.Field{Key: "期望等级", Value: taskConf.Lock})
|
||||
this.Debug("等级不满足", logFields...)
|
||||
return comm.NewCustomError(pb.ErrorCode_WorldtaskLvNotEnough)
|
||||
}
|
||||
}
|
||||
|
||||
//完成任务
|
||||
if err := this.modelWorldtask.finishTask(groupId, taskId, userTask); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user