From 6c4726246e1f518ee29b43e78e98854427db3aea Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Thu, 5 Jan 2023 18:24:09 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8B=A9=E7=8C=8E=E5=89=AF=E6=9C=AC=E6=8E=89?= =?UTF-8?q?=E8=90=BD=E8=A7=89=E9=86=92=E6=9D=90=E6=96=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/hunting/api_challengeover.go | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) 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 }