From cb960129f4a83382f9a6ab55f65a244807c4659e Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Wed, 9 Aug 2023 18:16:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BB=BB=E5=8A=A1=E5=9F=8B?= =?UTF-8?q?=E7=82=B9=E7=B1=BB=E5=9E=8B208=20=20=20=E6=8B=A5=E6=9C=89X?= =?UTF-8?q?=E5=90=8D=E5=9B=9E=E5=93=8D=E8=BE=BE=E5=88=B0=E6=BB=A1=E7=BA=A7?= =?UTF-8?q?=E7=9A=84X=E9=98=B5=E5=AE=B9=E5=AE=88=E6=8A=A4=E8=80=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- comm/const.go | 1 + modules/hero/api_talentlearn.go | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/comm/const.go b/comm/const.go index 4edb543c0..90d4a0557 100644 --- a/comm/const.go +++ b/comm/const.go @@ -834,6 +834,7 @@ const ( Rtype205 TaskType = 205 //拾取宝箱 Rtype206 TaskType = 206 //完成X次复合事件 Rtype207 TaskType = 207 //完成X组事件 + Rtype208 TaskType = 208 // 拥有X名回响达到满级的X阵容守护者 ) const ( MailLineEasy int32 = 1 // 简单 diff --git a/modules/hero/api_talentlearn.go b/modules/hero/api_talentlearn.go index 9c53a29e8..ee0e4b29e 100644 --- a/modules/hero/api_talentlearn.go +++ b/modules/hero/api_talentlearn.go @@ -204,6 +204,10 @@ func (this *apiComp) TalentLearn(session comm.IUserSession, req *pb.HeroTalentLe } } } + // 满回响 + if this.module.configure.GetHeroTalentMaxLv(heroObj.HeroID) == int32(len(talent.Talent)) { + szTask = append(szTask, comm.GetBuriedParam(comm.Rtype128, 1, cfg.Race)) + } szTask = append(szTask, comm.GetBuriedParam(comm.Rtype199, 1)) go this.module.ModuleBuried.TriggerBuried(session.Clone(), szTask...) }