修复playroom普通奖励

This commit is contained in:
hahwu 2025-07-23 16:44:29 +08:00
parent 94d31c2cab
commit 18b0eb88b1

View File

@ -1118,15 +1118,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