Модуль:Prototypes/Машина/Станок: различия между версиями

мНет описания правки
Нет описания правки
Строка 217: Строка 217:
         if next(recipe.materials) then
         if next(recipe.materials) then
             for material, amount in pairs(recipe.materials) do
             for material, amount in pairs(recipe.materials) do
                 output = output .. '<li>{{#invoke:Entity Lookup|createimagetooltip|File:' .. material .. '.png|' .. material .. '|Мета=32x32px,link=}} {{#invoke:Entity Lookup|getname|' .. material .. '}} [' .. amount .. ']</li>'
                 output = output .. '<b>[[File:' .. material .. '.png]] ' .. amount .. ' ' .. material .. '</b>'
             end
             end
         else
         else
Строка 225: Строка 225:
         -- Информация об исследовании
         -- Информация об исследовании
         if recipe.discipline ~= "Static" and recipe.discipline ~= "Unknown" then
         if recipe.discipline ~= "Static" and recipe.discipline ~= "Unknown" then
             output = output .. '|info=Исследование:[[File:' .. recipe.discipline .. ']] {{#invoke:Ftl|main|translation|' .. recipe.researchName
             output = output .. '|info=[[File:' .. recipe.discipline .. '.png]] {{#invoke:Ftl|main|translation|' .. recipe.researchName
             output = output .. '}} (Уровень: ' .. recipe.tier .. ')'
             output = output .. '}} (Уровень: ' .. recipe.tier .. ')'
         end
         end