17,428
edits
(getEquipRequirements: Support AoD (and other namespaces) for 'Completion' requirement type) |
(getEquipRequirementRow: Fix retrieval of namespace) |
||
Line 457: | Line 457: | ||
result = result..'\r\n|style="text-align:right;"| '..req.count | result = result..'\r\n|style="text-align:right;"| '..req.count | ||
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 | ||
return '\r\n!style="text-align:right;" colspan=2|' .. Shared.printError('Invalid namespace for completion requirement "' .. req.namespace .. '"') | return '\r\n!style="text-align:right;" colspan=2|' .. Shared.printError('Invalid namespace for completion requirement "' .. req.namespace .. '"') |