1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
---------------------
-- Rewards Manager
---------------------
end
if collectibleId > 0 then
return rewardData
end
return nil
end
local rewardNames = { }
for rewardIndex = 1 , numRewards do
if entryType == REWARD_ENTRY_TYPE_REWARD_LIST then
end
internalassert ( GetNumRewardListEntries ( rewardListId ) == # rewardListEntries , string . format ( "Code Redemption: Unsupported reward type in reward list %d" , rewardListId ) )
else
-- we don't have a quantity so we'll assume 1, we shouldn't be getting any rewards
-- here that require a quantity specified, those should come as part of a reward list
local quantity = 1
if internalassert ( rewardData , string . format ( "Code Redemption: Unsupported reward type for reward %d" , rewardId ) ) then
end
end
end
return rewardNames
end
if entryType == REWARD_ENTRY_TYPE_COLLECTIBLE then
if collectibleId > 0 then
if specializedCollectibleType == SPECIALIZED_COLLECTIBLE_TYPE_NONE then
else
end
end
end
end
|