修复playroom转盘bug
This commit is contained in:
parent
abe849d68c
commit
037142bb0a
@ -580,7 +580,12 @@ func (p *PlayroomMod) Draw() (int, []*item.Item, error) {
|
|||||||
p.AllMood = 0
|
p.AllMood = 0
|
||||||
ProbList := limitedTimeEventCfg.GetSenceJackpotProb()
|
ProbList := limitedTimeEventCfg.GetSenceJackpotProb()
|
||||||
Id := GoUtil.RandMap(ProbList)
|
Id := GoUtil.RandMap(ProbList)
|
||||||
return Id, limitedTimeEventCfg.GetSenceJackpotReward(Id), nil
|
Items := limitedTimeEventCfg.GetSenceJackpotReward(Id)
|
||||||
|
if len(Items) > 1 {
|
||||||
|
// 多个奖励时,随机选择一个
|
||||||
|
Items = []*item.Item{GoUtil.RandItem(Items)}
|
||||||
|
}
|
||||||
|
return Id, Items, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *PlayroomMod) NotifyWork() *msg.NotifyPlayroomWork {
|
func (p *PlayroomMod) NotifyWork() *msg.NotifyPlayroomWork {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user