赛车活动优化

This commit is contained in:
hahwu 2025-04-01 18:37:56 +08:00
parent ece4e28731
commit 3adf049c92

View File

@ -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