共鸣消息广播

This commit is contained in:
meixiongfeng 2024-01-08 14:19:42 +08:00
parent 2a6e2339c5
commit 7036b400ea

View File

@ -217,6 +217,11 @@ func (this *apiComp) TalentLearn(session comm.IUserSession, req *pb.HeroTalentLe
// 满回响 // 满回响
if this.module.configure.GetHeroTalentMaxLv(heroObj.HeroID) == int32(len(talent.Talent)) { if this.module.configure.GetHeroTalentMaxLv(heroObj.HeroID) == int32(len(talent.Talent)) {
tasks = append(tasks, comm.GetBuriedParam(comm.Rtype128, 1, cfg.Race)) 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)
} else {
this.module.Errorf("no found userdata uid:%s", session.GetUserId())
}
} }
tasks = append(tasks, comm.GetBuriedParam(comm.Rtype199, 1)) tasks = append(tasks, comm.GetBuriedParam(comm.Rtype199, 1))
go this.module.AsynHandleSession(session.Clone(), func(session comm.IUserSession) { go this.module.AsynHandleSession(session.Clone(), func(session comm.IUserSession) {