This commit is contained in:
by 2024-07-30 14:40:11 +08:00
commit eb3fefb9b8
1 changed files with 3 additions and 0 deletions

View File

@ -190,6 +190,9 @@ func (this *BagMgr) AddItems(p *Player, addItems []*Item, add int64, gainWay int
continue
}
item := srvdata.GameItemMgr.Get(p.Platform, v.ItemId)
if item == nil {
continue
}
switch item.Type {
case common.ItemTypeCoin:
//增加金币