Модуль:tableofchemicals

Вернуться

Строка 52: Строка 52:
if firstProductId and p.chem[firstProductId] then
if firstProductId and p.chem[firstProductId] then
templateArgs.id = p.chem[firstProductId].id
templateArgs.name = p.chem[firstProductId].name or firstProductId
templateArgs.name = p.chem[firstProductId].name
templateArgs.color = p.chem[firstProductId].color or ""
templateArgs.description = p.chem[firstProductId].desc .. " На вид " .. p.chem[firstProductId].physicalDesc .. "."
templateArgs.textColor = p.chem[firstProductId].textColor or ""
templateArgs.color = p.chem[firstProductId].color
else
templateArgs.textColor = p.chem[firstProductId].textColor
templateArgs.name = ""
templateArgs.effects = getEffects(firstProductId)
templateArgs.color = ""
templateArgs.recipes_count = tablelength(p.chem[firstProductId].recipes)
templateArgs.textColor = ""
end
end