Модуль:Meals Lookup: различия между версиями
Mhamster (обсуждение | вклад) Нет описания правки |
Mhamster (обсуждение | вклад) Нет описания правки |
||
| Строка 41: | Строка 41: | ||
local reagents = "" | local reagents = "" | ||
for solidId, amount in pairs(p.getmicrowaverecipesolids(frame, recipe)) do | for solidId, amount in pairs(p.getmicrowaverecipesolids(frame, recipe)) do | ||
solids = solids .. frame | solids = solids .. frame:expandTemplate{ title = "Recipe Component", item = e.getname(frame, solidId), amount = amount} | ||
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 | reagents = reagents .. frame:expandTemplate{ title = "Recipe Component", item = e.getname(frame, reagentId), amount = amount} | ||
end | end | ||
return out | return out | ||