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

Нет описания правки
мНет описания правки
Строка 85: Строка 85:
     end
     end


     local output = '<h3>Рецепты станка: ' .. latheId .. '</h3>'
     local output = ''


     local recipes = {}
     local recipes = {}
Строка 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>' .. material .. ': ' .. amount .. '</li>'
                 output = output .. '<li>{{#invoke:Entity Lookup|createimagetooltip|File:' .. material .. '.png|' .. material .. '|Мета=32x32px,link=}} {{#invoke:Entity Lookup|getname|' .. material .. '}} [' .. amount .. ']</li>'
             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=Исследование: ' .. recipe.discipline .. ' - ' .. recipe.researchName
             output = output .. '|info=Исследование:[[File:' .. recipe.discipline .. ']] {{#invoke:Ftl|main|translation|' .. recipe.researchName
             output = output .. ' (Уровень: ' .. recipe.tier .. ')'
             output = output .. '}} (Уровень: ' .. recipe.tier .. ')'
         end
         end