Aleksei-bird 7c9c708c92 Первый фикс
Пачки некоторых позиций увеличены
2024-03-01 20:54:33 +03:00

18 lines
351 B
Lua

function registerObjectArray(objects)
for _,obj in pairs(objects) do
if type(obj) == "table" then
data:extend({obj})
end
end
end
--This is an expensive function to call!
function getPrototypeByName(name)
for catname,cat in pairs(data.raw) do
for pname,proto in pairs(cat) do
if name == pname then
return proto
end
end
end
end