Update main.lua

This commit is contained in:
PHIDIAS
2023-03-18 02:45:31 +09:00
parent c26b26f026
commit d04135f853

View File

@@ -1,20 +1,22 @@
local alpha_order = {'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm'} local alpha_order = {'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm'}
local graphics_location = '__PHI-MB__/graphics/' local graphics_location = '__PHI-MB__/graphics/'
local items = {'assembling-machine', 'electric-furnace', 'chemical-plant', 'oil-refinery'} local items = {'assembling-machine', 'electric-furnace', 'chemical-plant', 'oil-refinery', 'centrifuge'}
local item_min = { local item_min = {
['assembling-machine'] = 4, ['assembling-machine'] = 4,
['electric-furnace'] = 2, ['electric-furnace'] = 2,
['chemical-plant'] = 2, ['chemical-plant'] = 2,
['oil-refinery'] = 2 ['oil-refinery'] = 2,
['centrifuge'] = 2
} }
local item_max = { local item_max = {
['assembling-machine'] = 5, ['assembling-machine'] = 5,
['electric-furnace'] = 3, ['electric-furnace'] = 3,
['chemical-plant'] = 3, ['chemical-plant'] = 3,
['oil-refinery'] = 3 ['oil-refinery'] = 3,
['centrifuge'] = 3
} }
local recipe_list = { local recipe_list = {
@@ -191,12 +193,13 @@ table.insert(data.raw.technology['compound-energy-1'].effects, {type='unlock-rec
table.insert(data.raw.technology['compound-energy-1'].effects, {type='unlock-recipe', recipe='electric-furnace-2'}) table.insert(data.raw.technology['compound-energy-1'].effects, {type='unlock-recipe', recipe='electric-furnace-2'})
table.insert(data.raw.technology['compound-energy-1'].effects, {type='unlock-recipe', recipe='chemical-plant-2'}) table.insert(data.raw.technology['compound-energy-1'].effects, {type='unlock-recipe', recipe='chemical-plant-2'})
table.insert(data.raw.technology['compound-energy-1'].effects, {type='unlock-recipe', recipe='oil-refinery-2'}) table.insert(data.raw.technology['compound-energy-1'].effects, {type='unlock-recipe', recipe='oil-refinery-2'})
table.insert(data.raw.technology['compound-energy-1'].effects, {type='unlock-recipe', recipe='centrifuge-2'})
table.insert(data.raw.technology['compound-energy-2'].effects, {type='unlock-recipe', recipe='assembling-machine-5'}) table.insert(data.raw.technology['compound-energy-2'].effects, {type='unlock-recipe', recipe='assembling-machine-5'})
table.insert(data.raw.technology['compound-energy-2'].effects, {type='unlock-recipe', recipe='electric-furnace-3'}) table.insert(data.raw.technology['compound-energy-2'].effects, {type='unlock-recipe', recipe='electric-furnace-3'})
table.insert(data.raw.technology['compound-energy-2'].effects, {type='unlock-recipe', recipe='chemical-plant-3'}) table.insert(data.raw.technology['compound-energy-2'].effects, {type='unlock-recipe', recipe='chemical-plant-3'})
table.insert(data.raw.technology['compound-energy-2'].effects, {type='unlock-recipe', recipe='oil-refinery-3'}) table.insert(data.raw.technology['compound-energy-2'].effects, {type='unlock-recipe', recipe='oil-refinery-3'})
table.insert(data.raw.technology['compound-energy-2'].effects, {type='unlock-recipe', recipe='centrifuge-3'})
for i=1, #recipe_list, 1 do for i=1, #recipe_list, 1 do
if data.raw.recipe[recipe_list[i]] ~= nil then if data.raw.recipe[recipe_list[i]] ~= nil then