修复playroom转盘bug
This commit is contained in:
parent
7c23a004c0
commit
9cf0b15ec3
@ -565,7 +565,10 @@ func (p *PlayroomMod) GetTaskReward(Type int) (int, []*item.Item, error) {
|
|||||||
Id = GoUtil.RandMap(ProbList)
|
Id = GoUtil.RandMap(ProbList)
|
||||||
Items = playroomCfg.GetTaskJackpotReward(Id)
|
Items = playroomCfg.GetTaskJackpotReward(Id)
|
||||||
}
|
}
|
||||||
|
if len(Items) > 1 {
|
||||||
|
// 多个奖励时,随机选择一个
|
||||||
|
Items = []*item.Item{GoUtil.RandItem(Items)}
|
||||||
|
}
|
||||||
return Id, Items, nil
|
return Id, Items, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user