赛车活动优化
This commit is contained in:
parent
ece4e28731
commit
3adf049c92
@ -108,7 +108,7 @@ func (r *RaceMod) GetReward() ([]*item.Item, error) {
|
||||
func randOpponents(OpponentNum int) []*Opponent {
|
||||
Opponent := make([]*Opponent, 0)
|
||||
names := randnameCfg.GetRandNames(OpponentNum)
|
||||
for i := 0; i < OpponentNum; i++ {
|
||||
for i := 0; i < OpponentNum-1; i++ {
|
||||
Opponent = append(Opponent, randOpponent(i, names[i]))
|
||||
}
|
||||
return Opponent
|
||||
|
||||
Loading…
Reference in New Issue
Block a user