From 47f7c7faaef637f78f86338588f20df171d3b835 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Mon, 8 Jan 2024 14:54:07 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=B9=BF=E6=92=AD=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/hero/api_awaken.go | 2 +- modules/hero/api_talentlearn.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/hero/api_awaken.go b/modules/hero/api_awaken.go index 491d12c0c..451dbb45d 100644 --- a/modules/hero/api_awaken.go +++ b/modules/hero/api_awaken.go @@ -142,7 +142,7 @@ func (this *apiComp) Awaken(session comm.IUserSession, req *pb.HeroAwakenReq) (e go this.module.AsynHandleSession(session.Clone(), func(session comm.IUserSession) { //英雄觉醒 【玩家名称】已将【英雄名称】觉醒至满级! if user, err := this.module.ModuleUser.GetUser(session.GetUserId()); err == nil { - this.chat.SendSysChatToWorld(session, comm.ChatSystem11, _hero, _hero.JuexingLv, 0, user.Name, _hero.HeroID) + this.chat.SendSysChatToWorld(session, comm.ChatSystem11, _hero, _hero.JuexingLv, _hero.Star, user.Name, _hero.HeroID) } else { this.module.Errorf("no found userdata uid:%s", session.GetUserId()) } diff --git a/modules/hero/api_talentlearn.go b/modules/hero/api_talentlearn.go index b2ad7afa0..3d7a3d292 100644 --- a/modules/hero/api_talentlearn.go +++ b/modules/hero/api_talentlearn.go @@ -218,7 +218,7 @@ func (this *apiComp) TalentLearn(session comm.IUserSession, req *pb.HeroTalentLe if this.module.configure.GetHeroTalentMaxLv(heroObj.HeroID) == int32(len(talent.Talent)) { tasks = append(tasks, comm.GetBuriedParam(comm.Rtype128, 1, cfg.Race)) if user, err := this.module.ModuleUser.GetUser(session.GetUserId()); err == nil { - this.chat.SendSysChatToWorld(session, comm.ChatSystem10, heroObj, int32(len(talent.Talent)), 0, user.Name, heroObj.HeroID) + this.chat.SendSysChatToWorld(session, comm.ChatSystem10, heroObj, heroObj.Star, 0, user.Name, heroObj.HeroID) } else { this.module.Errorf("no found userdata uid:%s", session.GetUserId()) } From 5a4c86758c33720ddb934c99fc342d1a816e7e00 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Mon, 8 Jan 2024 14:55:34 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=BB=A1=E7=BA=A7=E6=98=9F=E7=BA=A7?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/hero/api_strengthenUpSkill.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/hero/api_strengthenUpSkill.go b/modules/hero/api_strengthenUpSkill.go index bb8794edf..5bb78eadf 100644 --- a/modules/hero/api_strengthenUpSkill.go +++ b/modules/hero/api_strengthenUpSkill.go @@ -149,10 +149,12 @@ func (this *apiComp) StrengthenUpSkill(session comm.IUserSession, req *pb.HeroSt tasks = append(tasks, comm.GetBuriedParam(comm.Rtype117, lvUpCount, utils.ToInt32(_hero.HeroID))) go this.module.AsynHandleSession(session.Clone(), func(session comm.IUserSession) { //英雄技能培养 【玩家名称】已将【英雄名称】技能培养至满级! - if user, err := this.module.ModuleUser.GetUser(session.GetUserId()); err == nil { - this.chat.SendSysChatToWorld(session, comm.ChatSystem9, _hero, _hero.Lv, 0, user.Name, _hero.HeroID) - } else { - this.module.Errorf("no found userdata uid:%s", session.GetUserId()) + if maxLv { // 满级星级参数 + if user, err := this.module.ModuleUser.GetUser(session.GetUserId()); err == nil { + this.chat.SendSysChatToWorld(session, comm.ChatSystem9, _hero, _hero.Star, 0, user.Name, _hero.HeroID) + } else { + this.module.Errorf("no found userdata uid:%s", session.GetUserId()) + } } this.module.ModuleBuried.TriggerBuried(session, tasks...) this.module.WriteUserLog(session.GetUserId(), req, comm.GMResDelType, "HeroStrengthenUpSkillReq", cost)