This commit is contained in:
@@ -68,6 +68,9 @@ func (s *ShinyService) RandShiny(id uint32) *data.GlowFilter {
|
||||
|
||||
}
|
||||
}
|
||||
if len(ret) == 0 {
|
||||
return nil
|
||||
}
|
||||
r := model.GenerateRandomOffspringMatrix()
|
||||
var t = data.GetDef()
|
||||
|
||||
|
||||
@@ -218,7 +218,10 @@ func (pet *PetInfo) Cure() {
|
||||
func (pet *PetInfo) FixShiny() {
|
||||
|
||||
co := service.NewShinyService().RandShiny(pet.ID)
|
||||
pet.ShinyInfo = append(pet.ShinyInfo, *co)
|
||||
if co != nil {
|
||||
pet.ShinyInfo = append(pet.ShinyInfo, *co)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// 比重融合
|
||||
|
||||
Reference in New Issue
Block a user