获得道具记录消耗
This commit is contained in:
parent
ea7e0a29b5
commit
bf08bbbfbd
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in New Issue