Модуль:TableOfChemicals: различия между версиями
Нет описания правки |
Нет описания правки |
||
| Строка 88: | Строка 88: | ||
local productText = string.format(productTemplate, productAmount, productChemData.id, productChemData.name) | local productText = string.format(productTemplate, productAmount, productChemData.id, productChemData.name) | ||
table.insert(products, productText) | table.insert(products, productText) | ||
end | |||
-- Эффекты реакции | |||
if tablelength(reactPrototype.effects) then | |||
for _, effect in pairs(reactPrototype.effects) do | |||
if effect.description ~= "" then | |||
table.insert(products, effect.description) | |||
end | |||
end | |||
end | end | ||
templateArgs.products = table.concat(products, "<br>") | templateArgs.products = table.concat(products, "<br>") | ||