Merge branch 'main' of https://cnb.cool/blzing/blazing
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
昔念
2026-02-05 19:59:27 +08:00

View File

@@ -29,7 +29,7 @@ func NewPetFusionService() *PetFusionService {
func (s *PetFusionService) Data(p1, p2, rand uint32) uint32 { func (s *PetFusionService) Data(p1, p2, rand uint32) uint32 {
if !grand.Meet(int((rand)/2), 100) { if !grand.Meet(int(rand/2)+50, 100) {
return 0 return 0
} }
@@ -44,7 +44,8 @@ func (s *PetFusionService) Data(p1, p2, rand uint32) uint32 {
props = append(props, int(v.Probability)) props = append(props, int(v.Probability))
} }
utils.RandomByIntProbs(pets, props) t,_:=utils.RandomByIntProbs(pets, props)
return uint32(t)
//说明是失败,直接返回失败 //说明是失败,直接返回失败
} else { } else {