This commit is contained in:
@@ -44,7 +44,7 @@ func (s *PetFusionService) Data(p1, p2, rand uint32) uint32 {
|
||||
props = append(props, int(v.Probability))
|
||||
|
||||
}
|
||||
t,_:=utils.RandomByIntProbs(pets, props)
|
||||
t, _ := utils.RandomByWeight(pets, props)
|
||||
return uint32(t)
|
||||
//说明是失败,直接返回失败
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user