任务统计
This commit is contained in:
parent
51c0c21595
commit
fdcd3ab3f9
@ -100,9 +100,11 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.HuntingCha
|
||||
res = append(res, cfgHunting.Firstprize...)
|
||||
|
||||
for _, v := range cfgHunting.Firstprize {
|
||||
if _conf, err := this.module.configure.GetItemConfigureData(v.T); err == nil {
|
||||
if _conf.Usetype == comm.UseType8 {
|
||||
tasks = append(tasks, comm.GetBuriedParam(comm.Rtype154, v.N))
|
||||
if v.A == "item" {
|
||||
if _conf, err := this.module.configure.GetItemConfigureData(v.T); err == nil {
|
||||
if _conf.Usetype == comm.UseType8 {
|
||||
tasks = append(tasks, comm.GetBuriedParam(comm.Rtype154, v.N))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -204,16 +206,15 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.HuntingCha
|
||||
}()
|
||||
tasks = append(tasks, comm.GetBuriedParam(comm.Rtype80, 1, req.BossType, req.Difficulty))
|
||||
// 随机任务统计
|
||||
// this.module.ModuleRtask.SendToRtask(session, comm.Rtype81, req.Difficulty, req.BossType)
|
||||
// this.module.ModuleRtask.SendToRtask(session, comm.Rtype82, req.BossType)
|
||||
tasks = append(tasks, comm.GetBuriedParam(comm.Rtype81, req.Difficulty, req.BossType))
|
||||
tasks = append(tasks, comm.GetBuriedParam(comm.Rtype82, 1, req.BossType))
|
||||
// 狩猎副本掉落觉醒材料
|
||||
for _, v := range reward {
|
||||
if _conf, err := this.module.configure.GetItemConfigureData(v.T); err == nil {
|
||||
if _conf.Usetype == comm.UseType8 {
|
||||
// this.module.ModuleRtask.SendToRtask(session, comm.Rtype154, v.N)
|
||||
tasks = append(tasks, comm.GetBuriedParam(comm.Rtype154, v.N))
|
||||
if v.A == "item" {
|
||||
if _conf, err := this.module.configure.GetItemConfigureData(v.T); err == nil {
|
||||
if _conf.Usetype == comm.UseType8 {
|
||||
tasks = append(tasks, comm.GetBuriedParam(comm.Rtype154, v.N))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user