钻石抽奖
This commit is contained in:
parent
1c6706d014
commit
9636dccb99
|
|
@ -339,7 +339,7 @@ func (this *CSDiamondLotteryHandler) Process(s *netlib.Session, packetid int, da
|
||||||
}
|
}
|
||||||
if status {
|
if status {
|
||||||
//白名单从列表里获取奖励
|
//白名单从列表里获取奖励
|
||||||
id := rand.Intn(len(playerData.AwatdId)) + 1
|
id := rand.Intn(len(playerData.AwatdId))
|
||||||
awardId := playerData.AwatdId[id]
|
awardId := playerData.AwatdId[id]
|
||||||
for _, lotteryInfo := range config.Info {
|
for _, lotteryInfo := range config.Info {
|
||||||
if lotteryInfo.Id == awardId {
|
if lotteryInfo.Id == awardId {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue