3,118
edits
(Amends for abyss depths) |
(Fixed currencies not showing up in task list) |
||
Line 895: | Line 895: | ||
local rewards = {} | local rewards = {} | ||
local rewardsVariableQty = {} | local rewardsVariableQty = {} | ||
if task.rewards. | if task.rewards.currencies ~= nil then | ||
for _, currReward in ipairs(task.rewards. | for _, currReward in ipairs(task.rewards.currencies) do | ||
if isDailyTask then | if isDailyTask and currReward.id ~= 'melvorD:GP' then | ||
table.insert(rewardsVariableQty, Icons._Currency(currReward.id)) | table.insert(rewardsVariableQty, Icons._Currency(currReward.id)) | ||
elseif not isDailyTask then | |||
table.insert(rewards, Icons._Currency(currReward.id, currReward. | table.insert(rewards, Icons._Currency(currReward.id, currReward.quantity)) | ||
end | end | ||
end | end |