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

Нет описания правки
Нет описания правки
Строка 44: Строка 44:
     end
     end
     for reagentId, amount in pairs(p.getmicrowaverecipereagents(frame, recipe)) do
     for reagentId, amount in pairs(p.getmicrowaverecipereagents(frame, recipe)) do
         reagents = reagents .. frame:expandTemplate{ title = "Recipe Component", item = e.getname(frame, reagentId), amount = amount}
         reagents = reagents .. frame:expandTemplate{ title = "Chem Recipe Component", reagent = reagentId, amount = amount}
     end
     end
    out = frame:expandTemplate{ title = "Recipe Box",
    name = e.getname(frame, recipe["result"]),
    ["component-1"] = solids..reagents,
    transformer = frame:expandTemplate{title="Recipe Transformers", "microwaveRecipes", recipe["time"]},
    result = frame:expandTemplate{ title = "Recipe Component", item = e.getname(frame, recipe["result"])}}
     return out
     return out
end
end