1
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
昔念
2026-02-21 17:56:30 +08:00
parent f404a92387
commit 9011bdbb8a

View File

@@ -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))])