From de76c2330befddf6e4986893e9a8b86f9b8a11b3 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 21 Jun 2024 11:01:32 +0800 Subject: [PATCH] 1 --- server/matchserver/player/player.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/matchserver/player/player.go b/server/matchserver/player/player.go index ac50ae06..eed5799e 100644 --- a/server/matchserver/player/player.go +++ b/server/matchserver/player/player.go @@ -68,6 +68,8 @@ func (this *player) init(req *pendingLoginRequest, rsp *common.LoginRsp){ this.hero.specSkill = q5.ToInt32(rsp.Info.HeroInfo.SpecSkill) q5.DuckToSimple(rsp.Info.HeroInfo.Wealth, &this.hero.wealth) q5.DuckToSimple(rsp.Info.HeroInfo.ValidLefttime, &this.hero.validLeftTime) + q5.DuckToSimple(rsp.Info.HeroInfo.CurrentTimes, &this.hero.currentTimes) + q5.DuckToSimple(rsp.Info.HeroInfo.TotalTimes, &this.hero.totalTimes) } } @@ -89,6 +91,8 @@ func (this *player) againInit(req *pendingLoginRequest, rsp *common.LoginRsp){ this.hero.specSkill = q5.ToInt32(rsp.Info.HeroInfo.SpecSkill) q5.DuckToSimple(rsp.Info.HeroInfo.Wealth, &this.hero.wealth) q5.DuckToSimple(rsp.Info.HeroInfo.ValidLefttime, &this.hero.validLeftTime) + q5.DuckToSimple(rsp.Info.HeroInfo.CurrentTimes, &this.hero.currentTimes) + q5.DuckToSimple(rsp.Info.HeroInfo.TotalTimes, &this.hero.totalTimes) } } @@ -426,6 +430,8 @@ func (this *player) CMRefreshUser(hdr *f5.MsgHdr, msg *cs.CMRefreshUser) { this.hero.specSkill = q5.ToInt32(rspObj.Info.HeroInfo.SpecSkill) q5.DuckToSimple(rspObj.Info.HeroInfo.Wealth, &this.hero.wealth) q5.DuckToSimple(rspObj.Info.HeroInfo.ValidLefttime, &this.hero.validLeftTime) + q5.DuckToSimple(rspObj.Info.HeroInfo.CurrentTimes, &this.hero.currentTimes) + q5.DuckToSimple(rspObj.Info.HeroInfo.TotalTimes, &this.hero.totalTimes) } if this.GetTeam() != nil { this.GetTeam().SendUpdateNotify()