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 xmlres.PetMAP[int(p.OgreInfo.Data[i].ID)].CatchRate != 0 {
|
||||||
if grand.Meet(1, 500) {
|
if grand.Meet(1, 500) {
|
||||||
p.OgreInfo.Data[i].RandomByWeightShiny()
|
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 (
|
import (
|
||||||
"blazing/common/data"
|
"blazing/common/data"
|
||||||
|
"blazing/common/data/xmlres"
|
||||||
"blazing/common/socket/errorcode"
|
"blazing/common/socket/errorcode"
|
||||||
"blazing/cool"
|
"blazing/cool"
|
||||||
"blazing/logic/service/common"
|
"blazing/logic/service/common"
|
||||||
@@ -45,6 +46,7 @@ func (o *OgrePetInfo) FixSHiny() {
|
|||||||
|
|
||||||
if co != nil && len(o.ShinyInfo) == 0 {
|
if co != nil && len(o.ShinyInfo) == 0 {
|
||||||
o.ShinyInfo = append(o.ShinyInfo, *co)
|
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 {
|
if co != nil && len(o.ShinyInfo) == 0 {
|
||||||
o.ShinyInfo = append(o.ShinyInfo, *co)
|
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