From e4be76023be99c3fe273fb909f8da456fafa0a99 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 21 Jun 2024 11:03:09 +0800 Subject: [PATCH] 1 --- server/matchserver/player/player.go | 2 ++ server/matchserver/team/team.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/server/matchserver/player/player.go b/server/matchserver/player/player.go index eed5799e..8f0ba6f8 100644 --- a/server/matchserver/player/player.go +++ b/server/matchserver/player/player.go @@ -215,6 +215,8 @@ func (this *player) FillMFTeamMember(member_pb *cs.MFTeamMember) { member_pb.Hero = &cs.MFHero{} member_pb.Hero.HeroId = proto.Int32(this.hero.heroId) member_pb.Hero.Quality = proto.Int32(this.hero.quality) + member_pb.Hero.CurrentTimes = proto.Int32(this.hero.currentTimes) + member_pb.Hero.TotalTimes = proto.Int32(this.hero.totalTimes) } member_pb.State = proto.Int32(this.state) if this.IsOnline() { diff --git a/server/matchserver/team/team.go b/server/matchserver/team/team.go index 41f5b80b..6c28ba80 100644 --- a/server/matchserver/team/team.go +++ b/server/matchserver/team/team.go @@ -54,6 +54,8 @@ func (this* robot) FillMFTeamMember(member_pb *cs.MFTeamMember) { member_pb.Hero = &cs.MFHero{} member_pb.Hero.HeroId = proto.Int32(this.meta.GetHeroId()) member_pb.Hero.Quality = proto.Int32(0) + member_pb.Hero.CurrentTimes = proto.Int32(0) + member_pb.Hero.TotalTimes = proto.Int32(0) } member_pb.State = proto.Int32(0) member_pb.Online = proto.Int32(1)