playroom优化
This commit is contained in:
parent
3571c8947c
commit
64c3285b5d
@ -345,6 +345,10 @@ func (p *PlayroomMod) Draw() (int, []*item.Item, error) {
|
||||
if p.AllMood < 100 {
|
||||
return 0, nil, fmt.Errorf("Draw AllMood < 100")
|
||||
}
|
||||
if p.JackpotNum == 0 {
|
||||
return 0, nil, fmt.Errorf("Draw JackpotNum is 0")
|
||||
}
|
||||
p.JackpotNum--
|
||||
p.AllMood = 0
|
||||
ProbList := limitedTimeEventCfg.GetSenceJackpotProb()
|
||||
Id := GoUtil.RandMap(ProbList)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user