diff --git a/common/constant.go b/common/constant.go index b228c6f..ba42396 100644 --- a/common/constant.go +++ b/common/constant.go @@ -597,6 +597,7 @@ const ( ItemIDSlippers = 100010 // 拖鞋 ItemIDPermit = 100011 // 赛季通行证积分 ItemIDLong = 50013 // 龙币 + ItemIDPetSkill = 11001 //宠物技能升级道具 ) func ToItemId(id int32) int32 { diff --git a/worldsrv/bagmgr.go b/worldsrv/bagmgr.go index 10620a1..9624bf8 100644 --- a/worldsrv/bagmgr.go +++ b/worldsrv/bagmgr.go @@ -290,6 +290,10 @@ func (this *BagMgr) AddItems(p *Player, addItems []*Item, add int64, gainWay int Num: v.ItemNum, }) } + + if v.ItemId == common.ItemIDPetSkill && v.ItemNum > 0 { + PetMgrSington.CheckShowRed(p) + } } if len(changeItems) > 0 {