Code: Select all
{name = "landfill", count = 1500, input = "stone"},
{name = "landfill", count = 50},
Code: Select all
global.round_input = nil
for k = 1, number_of_items do
local item = global.item_list[k]
if item.input then
if not global.rount_input then
global.round_input = item.input
else
break
end
end