17,105
edits
m (Hotfix) |
(getEquipRequirements: Support AoD (and other namespaces) for 'Completion' requirement type) |
||
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 | local ns = GameData.getEntityByID(GameData.namespaces, req.namespace) | ||
if | if ns == nil then | ||
return '\r\n!style="text-align:right;" colspan=2|' .. Shared.printError('Invalid namespace for completion requirement "' .. req.namespace .. '"') | |||
else | else | ||
result = '\r\n!style="text-align:right;"| ' .. ns.displayName .. ' Completion' | |||
result = result .. '\r\n|style="text-align:right;"| ' .. req.percent .. '%' | |||
end | end | ||
else | else | ||
return '\r\n!style="text-align:right;" colspan=2|' .. Shared.printError('Invalid equip requirement type "' .. req.type .. '"') | return '\r\n!style="text-align:right;" colspan=2|' .. Shared.printError('Invalid equip requirement type "' .. req.type .. '"') |