This commit is contained in:
xinian
2026-02-17 22:53:45 +08:00
committed by cnb
parent 756edc1cdd
commit 6b1a2c6f99
3 changed files with 4 additions and 4 deletions

View File

@@ -77,7 +77,7 @@ func (p *Player) GenMonster() {
if cool.Config.ServerInfo.IsVip != 0 { //测试服,百分百异色
p.OgreInfo.Data[i].FixSHiny()
}
if xmlres.PetMAP[int(p.OgreInfo.Data[i].ID)].CatchRate != 0 && grand.Meet(2, 1000) {
if xmlres.PetMAP[int(p.OgreInfo.Data[i].ID)].CatchRate != 0 && grand.Meet(1, 900) {
p.OgreInfo.Data[i].RandSHiny()
}
if ok {

View File

@@ -1,4 +1,4 @@
package player
package model
import (
"crypto/sha256"

View File

@@ -5,7 +5,7 @@ import (
"blazing/common/data/xmlres"
"blazing/common/utils"
"blazing/cool"
"blazing/logic/service/player"
"blazing/modules/config/service"
"errors"
"fmt"
@@ -231,7 +231,7 @@ func (pet *PetInfo) FixShiny() {
if co != nil {
pet.ShinyInfo = append(pet.ShinyInfo, co.Color)
} else {
r := player.GenerateRandomOffspringMatrix()
r := GenerateRandomOffspringMatrix()
var t data.GlowFilter
t.ColorMatrixFilter = r.Get()
pet.ShinyInfo = append(pet.ShinyInfo, t)