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,7 +84,10 @@ func (p *Player) GenMonster() {
p.OgreInfo.Data[i].FixSHiny()
}
if xmlres.PetMAP[int(p.OgreInfo.Data[i].ID)].CatchRate != 0 {
p.OgreInfo.Data[i].RandomByWeightShiny()
if grand.Meet(1, 500) {
p.OgreInfo.Data[i].RandomByWeightShiny()
}
}
if ok && len(mapinfo.DropItemIds) > 0 {