修复playroom普通奖励
This commit is contained in:
parent
bab980b508
commit
7c23a004c0
@ -1115,15 +1115,14 @@ func (p *Player) GetPlayroomGameReward(Type, SelectId int) []*item.Item {
|
||||
BaseMod := p.PlayMod.getBaseMod()
|
||||
Level := BaseMod.GetLevel()
|
||||
Items := make([]*item.Item, 0)
|
||||
if Type == playroom.GAME_RESULT_LOSE {
|
||||
switch Type {
|
||||
case playroom.GAME_RESULT_LOSE:
|
||||
Items = append(Items, item.NewItem(item.ITEM_STAR_ID, 20))
|
||||
}
|
||||
if Type == playroom.GAME_RESULT_LOW {
|
||||
case playroom.GAME_RESULT_LOW:
|
||||
Items = append(Items, item.NewItem(item.ITEM_STAR_ID, Level*2))
|
||||
}
|
||||
if Type == playroom.GAME_RESULT_MIDDLE {
|
||||
case playroom.GAME_RESULT_MIDDLE:
|
||||
Items = append(Items, item.NewItem(item.ITEM_STAR_ID, Level*3))
|
||||
} else {
|
||||
default:
|
||||
Items = PlayroomMod.SelectReward(SelectId)
|
||||
}
|
||||
return Items
|
||||
|
||||
Loading…
Reference in New Issue
Block a user