Merge branch 'dev' of http://git.legu.cc/liwei_3d/go_dreamfactory into dev
This commit is contained in:
commit
d997a995c2
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user