猫猫回礼奖励bug修复

This commit is contained in:
hahwu 2026-04-13 18:32:26 +08:00
parent 0c01365f45
commit 244b158563

View File

@ -5018,7 +5018,7 @@ func ReqCatReturnGiftReward(player *Player, req *msg.ReqCatReturnGiftReward) err
items = append(items, item.MsgToItem(v.Reward)...)
maxRewardId = max(maxRewardId, int(v.Id))
if v.StarReward > 0 {
items = append(items, item.NewItem(GoUtil.FormatStarItemNum(int(v.StarReward), player.GetOrderFactor()), 1))
items = append(items, item.NewItem(item.ITEM_STAR_ID, GoUtil.FormatStarItemNum(int(v.StarReward), player.GetOrderFactor())))
}
}
}