This commit is contained in:
@@ -86,7 +86,7 @@ func (p *Player) GenMonster() {
|
||||
if xmlres.PetMAP[int(p.OgreInfo.Data[i].ID)].CatchRate != 0 {
|
||||
if grand.Meet(1, 500) {
|
||||
p.OgreInfo.Data[i].RandomByWeightShiny()
|
||||
p.OgreInfo.Data[i].Item = append(p.OgreInfo.Data[i].Item, 400687+int64(xmlres.PetMAP[int(p.OgreInfo.Data[i].ID)].Type))
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ package player
|
||||
|
||||
import (
|
||||
"blazing/common/data"
|
||||
"blazing/common/data/xmlres"
|
||||
"blazing/common/socket/errorcode"
|
||||
"blazing/cool"
|
||||
"blazing/logic/service/common"
|
||||
@@ -45,6 +46,7 @@ func (o *OgrePetInfo) FixSHiny() {
|
||||
|
||||
if co != nil && len(o.ShinyInfo) == 0 {
|
||||
o.ShinyInfo = append(o.ShinyInfo, *co)
|
||||
o.Item = append(o.Item, 400687+int64(xmlres.PetMAP[int(o.ID)].Type))
|
||||
}
|
||||
|
||||
}
|
||||
@@ -57,6 +59,7 @@ func (o *OgrePetInfo) RandomByWeightShiny() {
|
||||
|
||||
if co != nil && len(o.ShinyInfo) == 0 {
|
||||
o.ShinyInfo = append(o.ShinyInfo, *co)
|
||||
o.Item = append(o.Item, 400687+int64(xmlres.PetMAP[int(o.ID)].Type))
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user