Модуль:Meals Lookup: различия между версиями

Нет описания правки
Нет описания правки
Строка 395: Строка 395:
         -- INTRUDER ALERT: SHITCODE IS IN THE BASE
         -- INTRUDER ALERT: SHITCODE IS IN THE BASE
         local id = ""
         local id = ""
        out = out .. table.length(recipes) .. " " .. type "\n"
         if type == "microwaveRecipes" and not table.isempty(recipes) == nil then
         if type == "microwaveRecipes" and not table.isempty(recipes) == nil then
             do
             do
Строка 499: Строка 500:
     for _, patt in pairs(frame.args) do
     for _, patt in pairs(frame.args) do
         local ids = getrecipesbyname(frame, tablo, patt)
         local ids = getrecipesbyname(frame, tablo, patt)
         for type, recipes in pairs(ids) do
         -- for type, recipes in pairs(ids) do
            out = out .. table.length(recipes)
        --    out = out .. table.length(recipes)
            for n, recipe in pairs(recipes) do
        --    for n, recipe in pairs(recipes) do
                local id = recipe["id"]
        --        local id = recipe["id"]
                out = out .. id .. "\n"
        --        out = out .. id .. "\n"
            end
        --    end
         end
         -- end
         out = out .. p.buildrecipeboxuniversal(frame, ids)
         out = out .. p.buildrecipeboxuniversal(frame, ids)
     end
     end