获得道具记录消耗

This commit is contained in:
sk 2024-07-15 17:12:05 +08:00
parent ea7e0a29b5
commit bf08bbbfbd
1 changed files with 17 additions and 1 deletions

View File

@ -389,7 +389,23 @@ func (this *CSDiamondLotteryHandler) Process(s *netlib.Session, packetid int, da
}
}
}
BagMgrSingleton.AddItems(p, items, 0, common.GainWayDiamondLottery, "system", "钻石抽奖", 0, 0, false)
BagMgrSingleton.AddItemsV2(&ItemParam{
P: p,
Change: items,
Cost: []*model.ItemInfo{
{
ItemId: common.ItemIDDiamond,
ItemNum: diamondNum,
},
},
Add: 0,
GainWay: common.GainWayDiamondLottery,
Operator: "system",
Remark: "钻石抽奖",
gameId: 0,
gameFreeId: 0,
noLog: false,
})
pack.LuckyScore = p.DiamondLotteryScore
p.SendToClient(int(player_proto.PlayerPacketID_PACKET_SC_DiamondLottery), pack)
logger.Logger.Trace("返回钻石抽奖信息:", pack.String())