This commit is contained in:
meixiongfeng 2023-05-23 11:11:19 +08:00
commit d997a995c2

View File

@ -230,6 +230,8 @@ func (this *modelArena) matcheAI(dan, num int32) (results []*pb.ArenaPlayer, err
results[i] = &pb.ArenaPlayer{
Uid: fmt.Sprintf("ai_%s", id.NewXId()),
Name: this.randUserName(),
Avatar: fmt.Sprintf("tx_js_3300%d", rand.Int31n(3)+3),
Lv: rand.Int31n(10) + 10,
Dan: dan,
Integral: int32(rand.Intn(int(active.ScoreUp)-int(active.ScoreLow))) + active.ScoreLow,
Isai: true,
@ -297,6 +299,8 @@ func (this *modelArena) matchePlayer(uid string, dan, num int32) (results []*pb.
results = append(results, &pb.ArenaPlayer{
Uid: temp.Uid,
Name: temp.Name,
Avatar: temp.Avatar,
Lv: temp.Lv,
Dan: temp.Dan,
Integral: temp.Integral,
Defend: temp.Defend,