修复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()
|
BaseMod := p.PlayMod.getBaseMod()
|
||||||
Level := BaseMod.GetLevel()
|
Level := BaseMod.GetLevel()
|
||||||
Items := make([]*item.Item, 0)
|
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))
|
Items = append(Items, item.NewItem(item.ITEM_STAR_ID, 20))
|
||||||
}
|
case playroom.GAME_RESULT_LOW:
|
||||||
if Type == playroom.GAME_RESULT_LOW {
|
|
||||||
Items = append(Items, item.NewItem(item.ITEM_STAR_ID, Level*2))
|
Items = append(Items, item.NewItem(item.ITEM_STAR_ID, Level*2))
|
||||||
}
|
case playroom.GAME_RESULT_MIDDLE:
|
||||||
if Type == playroom.GAME_RESULT_MIDDLE {
|
|
||||||
Items = append(Items, item.NewItem(item.ITEM_STAR_ID, Level*3))
|
Items = append(Items, item.NewItem(item.ITEM_STAR_ID, Level*3))
|
||||||
} else {
|
default:
|
||||||
Items = PlayroomMod.SelectReward(SelectId)
|
Items = PlayroomMod.SelectReward(SelectId)
|
||||||
}
|
}
|
||||||
return Items
|
return Items
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user