支线任务去除锁定约束
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.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,
|
||||||
|
@ -109,10 +109,12 @@ func (this *Worldtask) TaskcondNotify(session comm.IUserSession, condId int32) e
|
|||||||
nextTaskId = taskConf.IdAfter
|
nextTaskId = taskConf.IdAfter
|
||||||
|
|
||||||
// 判断玩家等级要求
|
// 判断玩家等级要求
|
||||||
if user.Lv < taskConf.Lock {
|
if taskConf.Des == 2 {
|
||||||
logFields = append(logFields, log.Field{Key: "当前lv", Value: user.Lv}, log.Field{Key: "期望等级", Value: taskConf.Lock})
|
if user.Lv < taskConf.Lock {
|
||||||
this.Debug("等级不满足", logFields...)
|
logFields = append(logFields, log.Field{Key: "当前lv", Value: user.Lv}, log.Field{Key: "期望等级", Value: taskConf.Lock})
|
||||||
return comm.NewCustomError(pb.ErrorCode_WorldtaskLvNotEnough)
|
this.Debug("等级不满足", logFields...)
|
||||||
|
return comm.NewCustomError(pb.ErrorCode_WorldtaskLvNotEnough)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//完成任务
|
//完成任务
|
||||||
|
Loading…
Reference in New Issue
Block a user