Модуль:Meals Lookup: различия между версиями
AsnDen (обсуждение | вклад) м Откат правок KrasnoshchekovPavel (обсуждение) к последней версии Mhamster Метка: откат |
Нет описания правки |
||
| Строка 341: | Строка 341: | ||
local recipe = p.chemicals[id] | local recipe = p.chemicals[id] | ||
local input = buildreagents(frame, getchemicalreagents(recipe)) | local input = buildreagents(frame, getchemicalreagents(recipe)) | ||
local | |||
local | local results = {} | ||
for _, v in pairs(recipe["effects"]) do | |||
table.insert(results, v.description) | |||
end | |||
local result = table.concat(results, "\n") | |||
out = frame:preprocess("{{Recipe Box" .. | out = frame:preprocess("{{Recipe Box" .. | ||
"|component-1=" .. input .. | "|component-1=" .. input .. | ||
"|name= " .. | |||
"|transformer={{Recipe Transformers|mixableRecipes}}" .. | "|transformer={{Recipe Transformers|mixableRecipes}}" .. | ||
"|result= | "|result=" .. result .. "}}") | ||
return out | return out | ||
end | end | ||