diff --git a/modules/hunting/api_challengeover.go b/modules/hunting/api_challengeover.go index f315e8d51..e145dc588 100644 --- a/modules/hunting/api_challengeover.go +++ b/modules/hunting/api_challengeover.go @@ -102,7 +102,6 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.HuntingCha } hunting.Boss[req.BossType] += 1 mapData["boss"] = hunting.Boss - } mapData["bossTime"] = hunting.BossTime @@ -112,6 +111,22 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.HuntingCha // 随机任务统计 this.module.ModuleRtask.SendToRtask(session, comm.Rtype81, req.Difficulty, req.BossType) this.module.ModuleRtask.SendToRtask(session, comm.Rtype82, req.BossType) - + // 狩猎副本掉落觉醒材料 + for _, v := range reward { + if _conf, err := this.configure.GetItemConfigureData(v.T); err == nil { + if _conf.Usetype == 8 { + this.module.ModuleRtask.SendToRtask(session, comm.Rtype153, v.N) + } + } + } + if newChallenge && bWin { + for _, v := range cfgHunting.Firstprize { + if _conf, err := this.configure.GetItemConfigureData(v.T); err == nil { + if _conf.Usetype == 8 { + this.module.ModuleRtask.SendToRtask(session, comm.Rtype153, v.N) + } + } + } + } return }