Модуль:TableOfChemicals: различия между версиями

Нет описания правки
Нет описания правки
Строка 1: Строка 1:
p = {}
p = {}
p.chem = mw.text.jsonDecode(mw.title.new("User:KrasnoshchekovPavel/chem_prototypes.json"):getContent())
p.chem = mw.text.jsonDecode(mw.title.new("User:KrasnoshchekovPavel/chem_prototypes.json"):getContent()) -- Заменить на яна после обновы
p.react = mw.text.jsonDecode(mw.title.new("User:KrasnoshchekovPavel/react_prototypes.json"):getContent())
p.react = mw.text.jsonDecode(mw.title.new("User:KrasnoshchekovPavel/react_prototypes.json"):getContent())


Строка 146: Строка 146:
["DummyGrind"] = "Blender.png", -- Измельчение
["DummyGrind"] = "Blender.png", -- Измельчение
["DummyJuice"] = "Blender.png", -- Выжимка
["DummyJuice"] = "Blender.png", -- Выжимка
["DummyCondense"] = "Конденсатор газа.png", --
["DummyCondense"] = "Конденсатор газа.png",  
["Centrifuge"] = "Центрифуга.png",
["Centrifuge"] = "Центрифуга.png",
["Electrolysis"] = "Электролизер.png",
["Electrolysis"] = "Электролизер.png",
Строка 168: Строка 168:
for _, effect in pairs(metabolismGroup) do
for _, effect in pairs(metabolismGroup) do
if effect.description ~= "" then
if effect.description ~= "" then
local description = (string.gsub(effect.description, "%[", "\""))
table.insert(descriptions, effect.description)
description = (string.gsub(effect.description, "%]", "\""))
table.insert(descriptions, description)
end
end
end
end