17,101
edits
(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. | 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') |