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

мНет описания правки
мНет описания правки
Строка 116: Строка 116:
out = out .. '<div>Стоимость: <span style="color:#DA70D6;">' .. tech.cost .. '</span></div>'
out = out .. '<div>Стоимость: <span style="color:#DA70D6;">' .. tech.cost .. '</span></div>'
out = out .. '</div>'
out = out .. '</div>'
 
if tech.technologyPrerequisites and #tech.technologyPrerequisites > 0 then
-- if tech.technologyPrerequisites and #tech.technologyPrerequisites > 0 then
out = out .. '<div class="research__prerequisites">Необходимые технологии:'
-- out = out .. '<div class="research__prerequisites">Необходимые технологии:'
out = out .. '<ul>'
-- out = out .. '<ul>'
--
for _, prerequisiteId in ipairs(tech.technologyPrerequisites) do
-- for _, prerequisiteId in ipairs(tech.technologyPrerequisites) do
local prerequisiteTech = findResearchById(dataCache, prerequisiteId)
-- local prerequisiteTech = findResearchById(dataCache, prerequisiteId)
--
out = out .. '<li>[Файл:' .. prerequisiteId .. '.png|32x32px|link=]] ' .. prerequisiteTech.name .. '</li>'
-- out = out .. '<li>[[Файл:' .. prerequisiteId .. '.png|32x32px|link=]] ' .. prerequisiteTech.name .. '</li>'
end
-- end
--
out = out .. '</ul>'
-- out = out .. '</ul>'
out = out .. '</div>'
-- out = out .. '</div>'
end
-- end


out = out .. '<div class="research__unblocks">Разблокирует:'
out = out .. '<div class="research__unblocks">Разблокирует:'