Модуль:tableofchemicals

Вернуться

Строка 43: Строка 43:
templateArgs.products = table.concat(products, "<br>")
templateArgs.products = table.concat(products, "<br>")
templateArgs.actions = getActions(reactPrototype)
templateArgs.actions = getActions(reactPrototype)
templateArgs.name = chemPrototype.name or ""
local chemPrototype = p.chem[reactPrototype.chemId]
templateArgs.color = chemPrototype.color or "#808080"
templateArgs.name = chemPrototype and chemPrototype.name or ""
templateArgs.textColor = chemPrototype.textColor or "#FFFFFF"
templateArgs.color = chemPrototype and chemPrototype.color or "#808080"
templateArgs.textColor = chemPrototype and chemPrototype.textColor or "#FFFFFF"
templateArgs.id = reactPrototype.id or ""
templateArgs.id = reactPrototype.id or ""