Anonymous

Module:Shop: Difference between revisions

From Melvor Idle
getRequirementString: Support requirement type ArchaeologyItemsDonated
(getToolTable: Use sticky headers)
(getRequirementString: Support requirement type ArchaeologyItemsDonated)
Line 284: Line 284:
             end
             end
             table.insert(reqArray, reqText)
             table.insert(reqArray, reqText)
        elseif req.type == 'ArchaeologyItemsDonated' then
        table.insert(reqArray, 'Donate ' .. Shared.formatnum(req.count) .. ' Artefacts to the Museum in ' .. Icons.Icon({'Archaeology', type='skill'}))
         else
         else
             table.insert(reqArray, Shared.printError('Unknown requirement: ' .. (req.type or 'nil')))
             table.insert(reqArray, Shared.printError('Unknown requirement: ' .. (req.type or 'nil')))