1
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package player
|
||||
package model
|
||||
|
||||
import (
|
||||
"crypto/sha256"
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user