优化竞技场机器人头像等级信息

This commit is contained in:
liwei1dao 2023-05-23 10:51:01 +08:00
parent 27ca07a422
commit 82b29a3657

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,