宠物技能红点 补提

This commit is contained in:
by 2024-07-04 16:51:57 +08:00
parent b93901f765
commit 1d99e5f794
2 changed files with 5 additions and 0 deletions

View File

@ -597,6 +597,7 @@ const (
ItemIDSlippers = 100010 // 拖鞋
ItemIDPermit = 100011 // 赛季通行证积分
ItemIDLong = 50013 // 龙币
ItemIDPetSkill = 11001 //宠物技能升级道具
)
func ToItemId(id int32) int32 {

View File

@ -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 {