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

This commit is contained in:
xinian
2026-02-23 03:56:27 +08:00
committed by cnb
parent a942032bf0
commit a5e378073c
4 changed files with 13 additions and 8 deletions

View File

@@ -86,12 +86,13 @@ func (p *Player) GenMonster() {
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].Item = append(p.OgreInfo.Data[i].Item, 400687+int64(xmlres.PetMAP[int(p.OgreInfo.Data[i].ID)].Type))
}
}
if ok && len(mapinfo.DropItemIds) > 0 {
p.OgreInfo.Data[i].Item = int64(mapinfo.DropItemIds[grand.Intn(len(mapinfo.DropItemIds))])
p.OgreInfo.Data[i].Item = append(p.OgreInfo.Data[i].Item, int64(mapinfo.DropItemIds[grand.Intn(len(mapinfo.DropItemIds))]))
}
}

View File

@@ -32,7 +32,7 @@ type OgrePetInfo struct {
ShinyLen uint32 `json:"-" struc:"sizeof=ShinyInfo"`
ShinyInfo []data.GlowFilter `json:"ShinyInfo,omitempty"`
Lv uint32 `struc:"skip"` //等级
Item int64 `struc:"skip"` //奖励,如果有的话
Item []int64 `struc:"skip"` //奖励,如果有的话
Ext uint32 `struc:"skip"` //是否变尼尔尼奥
}