修复playroom转盘bug

This commit is contained in:
hahwu 2025-07-23 15:46:18 +08:00
parent abe849d68c
commit 037142bb0a

View File

@ -580,7 +580,12 @@ func (p *PlayroomMod) Draw() (int, []*item.Item, error) {
p.AllMood = 0
ProbList := limitedTimeEventCfg.GetSenceJackpotProb()
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 {