增加道具

This commit is contained in:
sk 2024-07-30 09:25:50 +08:00
parent e638f43619
commit 86ba780a40
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:
//增加金币