Anonymous

Module:Shop: Difference between revisions

From Melvor Idle
getRequirementString: Fix completion req handling
(getPurchaseIcon: Properly handle pages with apostrophes in the game)
(getRequirementString: Fix completion req handling)
Line 241: Line 241:
         end
         end
         elseif req.type == 'Completion' then
         elseif req.type == 'Completion' then
             local ns = GameData.getEntityByID('namespaces', req.namespace)
             local ns = GameData.getEntityByName('namespaces', req.namespace)
             if ns ~= nil then
             if ns ~= nil then
                 table.insert(reqArray, req.percent .. '% ' .. ns.displayName .. ' Completion')
                 table.insert(reqArray, req.percent .. '% ' .. ns.displayName .. ' Completion')