diff --git a/comm/const.go b/comm/const.go index cc1540846..81e6f6bac 100644 --- a/comm/const.go +++ b/comm/const.go @@ -653,7 +653,7 @@ const ( Rtype168 TaskType = 168 //完成功夫大师挑战塔第X层 Rtype169 TaskType = 169 //触发指定套装的套装效果 - Rtype170 TaskType = 170 //获得指定材料X个 + //Rtype170 TaskType = 170 //获得指定材料X个 Rtype171 TaskType = 171 Rtype172 TaskType = 172 //连续战斗X次(接取任务后,在任意战斗内使用连续战斗一次,进度便加一) Rtype173 TaskType = 173 //解锁星象点X次(接取任务后,每解锁任意英的星象点一次,进度便加一) diff --git a/modules/items/module.go b/modules/items/module.go index deb67eff2..9f39b273b 100644 --- a/modules/items/module.go +++ b/modules/items/module.go @@ -159,7 +159,10 @@ func (this *Items) AddItems(session comm.IUserSession, items map[string]int32, b this.itemsChangePush(session, change) //推送道具背包变化 } for k, v := range items { - tasks = append(tasks, comm.GettaskParam(comm.Rtype187, v, utils.ToInt32(k))) + if v > 0 { + tasks = append(tasks, comm.GettaskParam(comm.Rtype187, v, utils.ToInt32(k))) + //tasks = append(tasks, comm.GettaskParam(comm.Rtype170, utils.ToInt32(k), v)) // 20230526 移除170 任务 + } } if len(tasks) > 0 { go this.ModuleRtask.TriggerTask(session.GetUserId(), tasks...) diff --git a/modules/rtask/module.go b/modules/rtask/module.go index 76ebd829b..440c05237 100644 --- a/modules/rtask/module.go +++ b/modules/rtask/module.go @@ -188,7 +188,7 @@ func (this *ModuleRtask) getHandle(tt comm.TaskType) (handles []*rtaskCondHandle comm.Rtype46, comm.Rtype76, comm.Rtype79, comm.Rtype52, comm.Rtype55, comm.Rtype56, comm.Rtype82, comm.Rtype65, comm.Rtype66, comm.Rtype67, comm.Rtype68, comm.Rtype70, comm.Rtype140, - comm.Rtype169, comm.Rtype170, comm.Rtype174, comm.Rtype179, comm.Rtype180: + comm.Rtype169, comm.Rtype174, comm.Rtype179, comm.Rtype180: handle := &rtaskCondHandle{ condId: v.Id, verify: this.modelRtaskRecord.verifyMultiEqual,