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 {
|
||||||
p.OgreInfo.Data[i].RandSHiny()
|
p.OgreInfo.Data[i].RandSHiny()
|
||||||
}
|
}
|
||||||
if ok {
|
if ok && len(mapinfo.DropItemIds) > 0 {
|
||||||
|
|
||||||
p.OgreInfo.Data[i].Item = int64(mapinfo.DropItemIds[grand.Intn(len(mapinfo.DropItemIds))])
|
p.OgreInfo.Data[i].Item = int64(mapinfo.DropItemIds[grand.Intn(len(mapinfo.DropItemIds))])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user