This commit is contained in:
@@ -84,8 +84,11 @@ func (p *Player) GenMonster() {
|
|||||||
p.OgreInfo.Data[i].FixSHiny()
|
p.OgreInfo.Data[i].FixSHiny()
|
||||||
}
|
}
|
||||||
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) {
|
||||||
p.OgreInfo.Data[i].RandomByWeightShiny()
|
p.OgreInfo.Data[i].RandomByWeightShiny()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
if ok && len(mapinfo.DropItemIds) > 0 {
|
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