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

This commit is contained in:
昔念
2026-02-21 01:37:21 +08:00
parent ff739c430e
commit a23662baba

View File

@@ -86,7 +86,7 @@ func (p *Player) GenMonster() {
if xmlres.PetMAP[int(p.OgreInfo.Data[i].ID)].CatchRate != 0 {
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))])