playroom优化

This commit is contained in:
hahwu 2025-01-20 18:47:23 +08:00
parent 3571c8947c
commit 64c3285b5d

View File

@ -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)