Модуль:Prototypes/Механика/Исследование: различия между версиями
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 83: | Строка 83: | ||
-- Обработка индексов для замены рецептов | -- Обработка индексов для замены рецептов | ||
local customRecipeUnlocksIndexes = {} | local customRecipeUnlocksIndexes = {} | ||
for i = 1, 10 do | |||
local customIndex = frame.args["customRecipeUnlocksIndex" .. i] | local customIndex = frame.args["customRecipeUnlocksIndex" .. i] | ||
if | if customIndex then | ||
table.insert(customRecipeUnlocksIndexes, {index = i, recipe = customIndex}) | |||
end | end | ||
end | end | ||