From 8b258f770dcf0027ae0d6fa517b3ebeb62d020f9 Mon Sep 17 00:00:00 2001 From: PreLeyZero Date: Sat, 19 Mar 2022 00:48:21 +0100 Subject: [PATCH] added vanilla overhaul + K2 overhaul --- data-final-fixes.lua | 4 + data.lua | 5 + info.json | 2 +- locale/en/lang_en.cfg | 4 +- prototypes/248k_fluids.lua | 17 ++- prototypes/248k_techs.lua | 4 + prototypes/fi_recipes.lua | 8 +- prototypes/fu_recipes.lua | 81 ++++++----- prototypes/gr_recipes.lua | 8 +- scripts/krastorio2/data-final-fixes.lua | 8 +- scripts/krastorio2/overhaul.lua | 125 +++++++++++++++++ scripts/overhaul.lua | 172 ++++++++++++++++++++++++ settings.lua | 7 + 13 files changed, 399 insertions(+), 46 deletions(-) create mode 100644 scripts/krastorio2/overhaul.lua create mode 100644 scripts/overhaul.lua diff --git a/data-final-fixes.lua b/data-final-fixes.lua index d293d3f..3ddcf3d 100644 --- a/data-final-fixes.lua +++ b/data-final-fixes.lua @@ -16,3 +16,7 @@ end if mods["space-exploration"] then require('scripts/SE/data-final-fixes') end +--overhaul K2 +if (settings.startup['overhaul_mode'].value == true and mods["Krastorio2"]) then + require('scripts/krastorio2/overhaul') +end \ No newline at end of file diff --git a/data.lua b/data.lua index 611c45c..e3eaf10 100644 --- a/data.lua +++ b/data.lua @@ -112,3 +112,8 @@ data:extend({ if data.raw.technology["atomic-bomb"] then table.insert(data.raw.technology["atomic-bomb"].effects, {type ="unlock-recipe", recipe ="fi_atomic_bomb_recipe"}) end + +--overhaul +if settings.startup['overhaul_mode'].value == true then + require('scripts/overhaul') +end \ No newline at end of file diff --git a/info.json b/info.json index 2b246b1..bde5baa 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "248k", - "version": "0.9.5", + "version": "1.0.0", "title": "248k Mod", "author": "PreLeyZero", "factorio_version": "1.1", diff --git a/locale/en/lang_en.cfg b/locale/en/lang_en.cfg index 4041a5b..f39641b 100644 --- a/locale/en/lang_en.cfg +++ b/locale/en/lang_en.cfg @@ -191,7 +191,8 @@ fi_arc_neodym=Molten neodymium fu_hydrogen=Hydrogen fu_oxygen=Oxygen -fu_lead_fluid=Liquid lead +fu_lead_fluid_hot=Liquid lead (1500°C) +fu_lead_fluid_cold=Liquid lead (500°C) fu_protium=Protium-H[1] fu_deuterium=Deuterium-H[2] fu_tritium=Tritium-H[3] @@ -533,6 +534,7 @@ el_ki_core_productivity=Enable productivity modules in KI core and amplifier el_burner_kerosene_power_output=Kerosene generator power output fu_burner_power_output=Fusion Stage burner power output override_krastorio_endgame=Adjust Krastorio2 recipes for Anti-matter reactor, Intergalactic transreciever +overhaul_mode=Overaul vanilla/Krastorio2 by inserting 248k in progression, aswell as in techs and recipes. NOTE: When 248k is added in already existing save this may cause problems. For best gameplay use this on new world. el_ki_beacon_effectivity_2=KI2 beacon effectivity el_ki_beacon_supply_area_2=KI2 beacon area diff --git a/prototypes/248k_fluids.lua b/prototypes/248k_fluids.lua index 346a640..44f8cfc 100644 --- a/prototypes/248k_fluids.lua +++ b/prototypes/248k_fluids.lua @@ -144,7 +144,22 @@ data:extend({ order = 'a-a', }, { - name = 'fu_lead_fluid', + name = 'fu_lead_fluid_hot', + type = 'fluid', + icon = sprite('fu_lead_fluid.png'), + icon_size = 64, + default_temperature = 15, + max_temperature = 1500, + heat_capacity = '100kJ', + base_color = { r=0.9, g=0.77, b=0.6 }, + flow_color = { r=0.9, g=0.77, b=0.6 }, + pressure_to_speed_ratio = 0.400, + flow_to_energy_ratio = 0, + subgroup = 'fu_item_subgroup_e', + order = 'a-a', + }, + { + name = 'fu_lead_fluid_cold', type = 'fluid', icon = sprite('fu_lead_fluid.png'), icon_size = 64, diff --git a/prototypes/248k_techs.lua b/prototypes/248k_techs.lua index f6f6278..600a369 100644 --- a/prototypes/248k_techs.lua +++ b/prototypes/248k_techs.lua @@ -2042,6 +2042,10 @@ data:extend({ type = 'unlock-recipe', recipe = 'fu_exchanger_2_recipe', }, + { + type = 'unlock-recipe', + recipe = 'fu_exchanger_3_recipe', + }, }, unit = { count = '200', diff --git a/prototypes/fi_recipes.lua b/prototypes/fi_recipes.lua index 4a79d76..7a847c4 100644 --- a/prototypes/fi_recipes.lua +++ b/prototypes/fi_recipes.lua @@ -46,7 +46,7 @@ data:extend({ {'concrete',60}, {'el_materials_ALK',20}, {'iron-gear-wheel',40}, - {'electric-engine-unit',15}, + {'engine-unit',15}, {'el_energy_crystal_item',10}, }, result = 'fi_crusher_item', @@ -63,7 +63,7 @@ data:extend({ {'fi_compound_material_item',60}, {'iron-gear-wheel',40}, {'electric-mining-drill',8}, - {'electric-engine-unit',10}, + {'engine-unit',10}, }, result = 'fi_miner_item', result_count = 1, @@ -706,7 +706,7 @@ data:extend({ {'concrete',60}, {'el_materials_ALK',20}, {'iron-gear-wheel',40}, - {'electric-engine-unit',15}, + {'engine-unit',15}, {'el_energy_crystal_item',10}, }, result = 'fi_fiberer_item', @@ -1005,7 +1005,7 @@ data:extend({ {'concrete',60}, {'el_materials_ALK',60}, {'iron-gear-wheel',40}, - {'electric-engine-unit',15}, + {'engine-unit',15}, {'el_energy_crystal_item',20}, }, result = 'fi_compound_machine_item', diff --git a/prototypes/fu_recipes.lua b/prototypes/fu_recipes.lua index 3d660cd..a13b257 100644 --- a/prototypes/fu_recipes.lua +++ b/prototypes/fu_recipes.lua @@ -331,7 +331,7 @@ data:extend({ {type="item", name="fu_crushed_lead_item", amount=10}, }, results = { - {type="fluid", name="fu_lead_fluid", amount=100, temperature=500}, + {type="fluid", name="fu_lead_fluid_cold", amount=100}, }, result_count = 1, energy_required = 10, @@ -343,11 +343,11 @@ data:extend({ category = 'fu_stelar_reactor_crafting_category', enabled = 'false', ingredients = { - {type="fluid", name="fu_lead_fluid", amount=1000}, + {type="fluid", name="fu_lead_fluid_cold", amount=1000}, {type="fluid", name="fu_protium", amount=20}, }, results = { - {type="fluid", name="fu_lead_fluid", amount=1000, temperature=1500}, + {type="fluid", name="fu_lead_fluid_hot", amount=1000}, }, result_count = 1, energy_required = 1, @@ -358,12 +358,12 @@ data:extend({ category = 'fu_stelar_reactor_crafting_category', enabled = 'false', ingredients = { - {type="fluid", name="fu_lead_fluid", amount=1000}, + {type="fluid", name="fu_lead_fluid_cold", amount=1000}, {type="fluid", name="fu_deuterium", amount=1}, {type="fluid", name="fu_tritium", amount=1}, }, results = { - {type="fluid", name="fu_lead_fluid", amount=1000, temperature=1500}, + {type="fluid", name="fu_lead_fluid_hot", amount=1000}, }, result_count = 1, energy_required = 1, @@ -374,12 +374,12 @@ data:extend({ category = 'fu_stelar_reactor_crafting_category', enabled = 'false', ingredients = { - {type="fluid", name="fu_lead_fluid", amount=1000}, + {type="fluid", name="fu_lead_fluid_cold", amount=1000}, {type="fluid", name="fu_protium", amount=15}, {type="fluid", name="fu_lithium_6", amount=15}, }, results = { - {type="fluid", name="fu_lead_fluid", amount=1000, temperature=1500}, + {type="fluid", name="fu_lead_fluid_hot", amount=1000}, }, result_count = 1, energy_required = 1, @@ -391,13 +391,13 @@ data:extend({ main_product = 'fu_materials_charged_container', enabled = 'false', ingredients = { - {type="fluid", name="fu_lead_fluid", amount=300}, + {type="fluid", name="fu_lead_fluid_cold", amount=300}, {type="fluid", name="fu_deuterium", amount=1}, {type="fluid", name="fu_tritium", amount=1}, {type="item", name="fu_materials_empty_container", amount=6}, }, results = { - {type="fluid", name="fu_lead_fluid", amount=300, temperature=1500}, + {type="fluid", name="fu_lead_fluid_hot", amount=300}, {type="item", name="fu_materials_charged_container", amount=6}, }, result_count = 1, @@ -413,13 +413,13 @@ data:extend({ main_product = 'fu_materials_charged_container', enabled = 'false', ingredients = { - {type="fluid", name="fu_lead_fluid", amount=300}, + {type="fluid", name="fu_lead_fluid_cold", amount=300}, {type="fluid", name="fu_protium", amount=15}, {type="fluid", name="fu_lithium_6", amount=15}, {type="item", name="fu_materials_empty_container", amount=6}, }, results = { - {type="fluid", name="fu_lead_fluid", amount=300, temperature=1500}, + {type="fluid", name="fu_lead_fluid_hot", amount=300}, {type="item", name="fu_materials_charged_container", amount=6}, }, result_count = 1, @@ -436,11 +436,11 @@ data:extend({ category = 'fu_tokamak_reactor_crafting_category', enabled = 'false', ingredients = { - {type="fluid", name="fu_lead_fluid", amount=110000}, + {type="fluid", name="fu_lead_fluid_cold", amount=110000}, {type="fluid", name="fu_deuterium", amount=200}, }, results = { - {type="fluid", name="fu_lead_fluid", amount=110000, temperature=1500}, + {type="fluid", name="fu_lead_fluid_hot", amount=110000}, }, result_count = 1, energy_required = 100, @@ -451,12 +451,12 @@ data:extend({ category = 'fu_tokamak_reactor_crafting_category', enabled = 'false', ingredients = { - {type="fluid", name="fu_lead_fluid", amount=180000}, + {type="fluid", name="fu_lead_fluid_cold", amount=180000}, {type="fluid", name="fu_deuterium", amount=100}, {type="fluid", name="fu_tritium", amount=100}, }, results = { - {type="fluid", name="fu_lead_fluid", amount=180000, temperature=1500}, + {type="fluid", name="fu_lead_fluid_hot", amount=180000}, }, result_count = 1, energy_required = 100, @@ -485,11 +485,11 @@ data:extend({ main_product = 'steam', enabled = 'false', ingredients = { - {type="fluid", name="fu_lead_fluid", amount=50, temperature=1500}, + {type="fluid", name="fu_lead_fluid_hot", amount=50}, {type="fluid", name="water", amount=1000}, }, results = { - {type="fluid", name="fu_lead_fluid", amount=50, temperature=500}, + {type="fluid", name="fu_lead_fluid_cold", amount=50}, {type="fluid", name="steam", amount=1000, temperature=500}, }, result_count = 1, @@ -505,11 +505,11 @@ data:extend({ main_product = 'steam', enabled = 'false', ingredients = { - {type="fluid", name="fu_lead_fluid", amount=100, temperature=1500}, + {type="fluid", name="fu_lead_fluid_hot", amount=100}, {type="fluid", name="water", amount=1000}, }, results = { - {type="fluid", name="fu_lead_fluid", amount=100, temperature=500}, + {type="fluid", name="fu_lead_fluid_cold", amount=100}, {type="fluid", name="steam", amount=1000, temperature=1000}, }, result_count = 1, @@ -518,6 +518,25 @@ data:extend({ order = 'b-a', always_show_made_in = true, }, + { + name = 'fu_exchanger_3_recipe', + type = 'recipe', + category = 'fu_exchanger_crafting_category', + main_product = 'fu_lead_fluid_cold', + enabled = 'false', + ingredients = { + {type="fluid", name="fu_lead_fluid_hot", amount=100}, + {type="fluid", name="water", amount=1000}, + }, + results = { + {type="fluid", name="fu_lead_fluid_cold", amount=100}, + }, + result_count = 1, + energy_required = 1, + subgroup = 'fu_item_subgroup_e', + order = 'b-a', + always_show_made_in = true, + }, --fu_robo { name = 'fu_robo_logistic_recipe', @@ -1156,12 +1175,12 @@ data:extend({ main_product = 'fu_materials_energy_crystal', subgroup = 'fu_item_subgroup_a-b', ingredients = { - {type="fluid", name="fu_lead_fluid", amount=50}, + {type="fluid", name="fu_lead_fluid_cold", amount=50}, {type="item", name="fu_materials_refined_crystal", amount=1} }, results = { {type="item", name="fu_materials_energy_crystal", amount=1}, - {type="fluid", name="fu_lead_fluid", amount=50, temperature=1500} + {type="fluid", name="fu_lead_fluid_hot", amount=50} }, result_count = 1, energy_required = 3, @@ -1225,12 +1244,12 @@ data:extend({ category = 'fu_magnet_category', main_product = 'fu_materials_magnet', ingredients = { - {type="fluid", name="fu_lead_fluid", amount=20}, + {type="fluid", name="fu_lead_fluid_cold", amount=20}, {type="item", name="fi_materials_neodym", amount=6}, {type="item", name="fi_materials_GFK", amount=2}, }, results = { - {type="fluid", name="fu_lead_fluid", amount=20, temperature=1500}, + {type="fluid", name="fu_lead_fluid_hot", amount=20}, {type="item", name="fu_materials_magnet", amount=1}, }, energy_required = 4, @@ -1310,10 +1329,10 @@ data:extend({ category = 'fu_laser_category', main_product = 'fu_materials_laser_card', ingredients = { - {type="fluid", name="fu_lead_fluid", amount=50} + {type="fluid", name="fu_lead_fluid_cold", amount=50} }, results = { - {type="fluid", name="fu_lead_fluid", amount=50, temperature=1500}, + {type="fluid", name="fu_lead_fluid_hot", amount=50}, {type="item", name="fu_materials_laser_card", amount=1} }, energy_required = 1, @@ -1326,11 +1345,11 @@ data:extend({ category = 'fu_plasma_category', main_product = 'fu_materials_plasma_card', ingredients = { - {type="fluid", name="fu_lead_fluid", amount=50}, + {type="fluid", name="fu_lead_fluid_cold", amount=50}, {type="item", name="stone", amount=10} }, results = { - {type="fluid", name="fu_lead_fluid", amount=50, temperature=1500}, + {type="fluid", name="fu_lead_fluid_hot", amount=50}, {type="item", name="fu_materials_plasma_card", amount=1} }, energy_required = 1, @@ -1343,11 +1362,11 @@ data:extend({ category = 'fu_magnet_category', main_product = 'fu_materials_magnet_card', ingredients = { - {type="fluid", name="fu_lead_fluid", amount=50}, + {type="fluid", name="fu_lead_fluid_cold", amount=50}, {type="item", name="fi_materials_neodym", amount=1} }, results = { - {type="fluid", name="fu_lead_fluid", amount=50, temperature=1500}, + {type="fluid", name="fu_lead_fluid_hot", amount=50}, {type="item", name="fu_materials_magnet_card", amount=1} }, energy_required = 1, @@ -1411,10 +1430,10 @@ data:extend({ category = 'crafting-with-fluid', enabled = 'false', ingredients = { - {type="fluid", name="fu_lead_fluid", amount=100}, + {type="fluid", name="fu_lead_fluid_hot", amount=100}, }, results = { - {type="fluid", name="fu_lead_fluid", amount=100, temperature=500}, + {type="fluid", name="fu_lead_fluid_cold", amount=100}, }, result_count = 1, energy_required = 6, diff --git a/prototypes/gr_recipes.lua b/prototypes/gr_recipes.lua index d7f471e..052d6ea 100644 --- a/prototypes/gr_recipes.lua +++ b/prototypes/gr_recipes.lua @@ -741,12 +741,12 @@ data:extend({ category = 'fu_magnet_category', main_product = 'gr_materials_magnet', ingredients = { - {type="fluid", name="fu_lead_fluid", amount=50}, + {type="fluid", name="fu_lead_fluid_cold", amount=50}, {type="item", name="gr_materials_plasma_cube", amount=2}, {type="item", name="fu_materials_magnet", amount=1}, }, results = { - {type="fluid", name="fu_lead_fluid", amount=50, temperature=1500}, + {type="fluid", name="fu_lead_fluid_hot", amount=50}, {type="item", name="gr_materials_magnet", amount=1}, }, energy_required = 2, @@ -760,12 +760,12 @@ data:extend({ category = 'fu_plasma_category', main_product = 'gr_materials_plasma_cube', ingredients = { - {type="fluid", name="fu_lead_fluid", amount=50}, + {type="fluid", name="fu_lead_fluid_cold", amount=50}, {type="item", name="fu_materials_KFK", amount=2}, {type="item", name="fi_materials_gold", amount=1}, }, results = { - {type="fluid", name="fu_lead_fluid", amount=50, temperature=1500}, + {type="fluid", name="fu_lead_fluid_hot", amount=50}, {type="item", name="gr_materials_plasma_cube", amount=1}, }, energy_required = 2, diff --git a/scripts/krastorio2/data-final-fixes.lua b/scripts/krastorio2/data-final-fixes.lua index 73465ec..0100693 100644 --- a/scripts/krastorio2/data-final-fixes.lua +++ b/scripts/krastorio2/data-final-fixes.lua @@ -113,11 +113,11 @@ data:extend({ main_product = 'steam', enabled = 'false', ingredients = { - {type="fluid", name="fu_lead_fluid", amount=50, temperature=1500}, + {type="fluid", name="fu_lead_fluid_hot", amount=50}, {type="fluid", name="water", amount=1000/2}, }, results = { - {type="fluid", name="fu_lead_fluid", amount=50, temperature=500}, + {type="fluid", name="fu_lead_fluid_cold", amount=50}, {type="fluid", name="steam", amount=1000/2, temperature=425}, }, result_count = 1, @@ -133,11 +133,11 @@ data:extend({ main_product = 'steam', enabled = 'false', ingredients = { - {type="fluid", name="fu_lead_fluid", amount=100, temperature=1500}, + {type="fluid", name="fu_lead_fluid_hot", amount=100}, {type="fluid", name="water", amount=1000/4}, }, results = { - {type="fluid", name="fu_lead_fluid", amount=100, temperature=500}, + {type="fluid", name="fu_lead_fluid_cold", amount=100}, {type="fluid", name="steam", amount=1000/4, temperature=975}, }, result_count = 1, diff --git a/scripts/krastorio2/overhaul.lua b/scripts/krastorio2/overhaul.lua new file mode 100644 index 0000000..2c01b8a --- /dev/null +++ b/scripts/krastorio2/overhaul.lua @@ -0,0 +1,125 @@ +local function add_to_recipe(recipe, item, item_amount) + if not data.raw.recipe[recipe] then + return + end + + if data.raw.recipe[recipe].ingredients then + table.insert(data.raw.recipe[recipe].ingredients, {type="item", name=item, amount=item_amount}) + end + + if data.raw.recipe[recipe].normal and data.raw.recipe[recipe].expensive then + table.insert(data.raw.recipe[recipe].normal.ingredients, {type="item", name=item, amount=item_amount}) + table.insert(data.raw.recipe[recipe].expensive.ingredients, {type="item", name=item, amount=item_amount}) + end +end + +local function add_to_recipes(table_in) + --table structure: {{recipe, item, item_amount}, ... , ...} + for i,v in pairs(table_in) do + add_to_recipe(table_in[i].recipe, table_in[i].item, table_in[i].item_amount) + end +end + +local function change_table_index(table_in, structure) + + local indexed_table = {} + + for _,v in ipairs(table_in) do + local indexed_sub_table = {} + for i,x in ipairs(v) do + indexed_sub_table[structure[i]] = x + end + table.insert(indexed_table, indexed_sub_table) + end + return indexed_table +end + +local function add_to_tech(tech, pre_tech) + if not data.raw.technology[tech] then + return + end + + if not data.raw.technology[pre_tech] then + return + end + + table.insert(data.raw.technology[tech].prerequisites, pre_tech) +end + +local function add_to_techs(table_in) + --table structure: {{tech, pre_tech}, ... , ...} + for i,v in pairs(table_in) do + add_to_tech(table_in[i].tech, table_in[i].pre_tech) + end +end + +local function remove_tech_card(tech, card) + if not data.raw.technology[tech] then + return + end + + for i,v in ipairs(data.raw.technology[tech].unit.ingredients) do + for j,w in ipairs(v) do + if w == card then + v = nil + end + end + end +end + +local function remove_tech_cards(table_in) + --table structure: {{tech, card}, ... , ...} + for i,v in pairs(table_in) do + remove_tech_card(table_in[i].tech, table_in[i].card) + end +end + +--=================================================================================================================== +-- 248k items to Krastorio2 recipes +--=================================================================================================================== + +--[BUILDINGS] + +building_table = { + +} + +--[ITEMS] + +item_table = { + {"productivity-module-2", "fi_modules_core_item", 1}, + {"productivity-module-3", "fi_modules_core_item", 3}, + {"speed-module-2", "fi_modules_core_item", 1}, + {"speed-module-3", "fi_modules_core_item", 3}, + {"effectivity-module-2", "fi_modules_core_item", 1}, + {"effectivity-module-3", "fi_modules_core_item", 3}, +} + +--[TECH] + +tech_table = { + +} + +--[REMOVE TECH CARDS] + +card_table = { + {"el_purifier_tech", "logistic-science-pack"}, + {"el_arc_furnace_tech", "logistic-science-pack"}, + {"el_caster_tech", "logistic-science-pack"}, + {"el_ALK_tech", "logistic-science-pack"}, +} + +--=================================================================================================================== +-- structure and adding +--=================================================================================================================== + + +recipe_structure = {"recipe", "item", "item_amount"} +tech_structure = {"tech", "pre_tech"} +card_structure = {"tech", "card"} + +add_to_recipes(change_table_index(building_table, recipe_structure)) +add_to_recipes(change_table_index(item_table, recipe_structure)) +add_to_techs(change_table_index(tech_table, tech_structure)) +remove_tech_cards(change_table_index(card_table, card_structure)) \ No newline at end of file diff --git a/scripts/overhaul.lua b/scripts/overhaul.lua new file mode 100644 index 0000000..9a7cfa7 --- /dev/null +++ b/scripts/overhaul.lua @@ -0,0 +1,172 @@ +local function add_to_recipe(recipe, item, item_amount) + if not data.raw.recipe[recipe] then + return + end + + if data.raw.recipe[recipe].ingredients then + table.insert(data.raw.recipe[recipe].ingredients, {type="item", name=item, amount=item_amount}) + end + + if data.raw.recipe[recipe].normal and data.raw.recipe[recipe].expensive then + table.insert(data.raw.recipe[recipe].normal.ingredients, {type="item", name=item, amount=item_amount}) + table.insert(data.raw.recipe[recipe].expensive.ingredients, {type="item", name=item, amount=item_amount}) + end +end + +local function add_to_recipes(table_in) + --table structure: {{recipe, item, item_amount}, ... , ...} + for i,v in pairs(table_in) do + add_to_recipe(table_in[i].recipe, table_in[i].item, table_in[i].item_amount) + end +end + +local function change_table_index(table_in, structure) + + local indexed_table = {} + + for _,v in ipairs(table_in) do + local indexed_sub_table = {} + for i,x in ipairs(v) do + indexed_sub_table[structure[i]] = x + end + table.insert(indexed_table, indexed_sub_table) + end + return indexed_table +end + +local function add_to_tech(tech, pre_tech) + if not data.raw.technology[tech] then + return + end + + if not data.raw.technology[pre_tech] then + return + end + + table.insert(data.raw.technology[tech].prerequisites, pre_tech) +end + +local function add_to_techs(table_in) + --table structure: {{tech, pre_tech}, ... , ...} + for i,v in pairs(table_in) do + add_to_tech(table_in[i].tech, table_in[i].pre_tech) + end +end +--=================================================================================================================== +-- 248k items to vanilla recipes +--=================================================================================================================== + +--[BUILDINGS] + +building_table = { + {"assembling-machine-2", "el_materials_ALK", 5}, + -- + --{"fast-inserter", "el_aluminum_item", 2}, + --{"long-handed-inserter", "el_aluminum_item", 2}, + -- + {"engine-unit", "el_materials_ALK", 5}, + {"fast-transport-belt", "el_materials_ALK", 1}, + {"fast-splitter", "el_materials_ALK", 3}, + {"fast-underground-belt", "el_materials_ALK", 8}, + {"chemical-plant", "el_materials_ALK", 10}, + {"oil-refinery", "el_materials_ALK", 10}, + {"medium-electric-pole", "el_materials_ALK", 4}, + {"big-electric-pole", "el_materials_ALK", 8}, + + {"stack-inserter", "el_energy_crystal_item", 2}, + + {"express-splitter", "fi_materials_GFK", 3}, + {"express-transport-belt", "fi_materials_GFK", 1}, + {"express-underground-belt","fi_materials_GFK", 8}, + {"electric-furnace", "fi_materials_GFK", 12}, + {"centrifuge", "fi_materials_GFK", 25}, + {"steam-turbine", "fi_materials_GFK", 20}, + {"heat-exchanger", "fi_materials_GFK", 10}, + {"heat-pipe", "fi_materials_titan",2}, + + {"rocket-silo", "fu_materials_KFK", 40}, + + {"beacon", "fi_materials_titan", 12}, + {"substation", "fi_materials_titan", 6}, + {"assembling-machine-3", "fi_materials_titan", 6}, +} + +--[ITEMS] + +item_table = { + {"advanced-circuit", "el_materials_ceramic", 5}, + {"processing-unit", "fi_materials_gold", 3}, + {"electric-engine-unit", "fi_materials_gold", 3}, + {"flying-robot-frame", "fi_materials_neodym", 6}, + {"productivity-module-2", "fi_modules_core_item", 1}, + {"productivity-module-3", "fi_modules_core_item", 3}, + {"speed-module-2", "fi_modules_core_item", 1}, + {"speed-module-3", "fi_modules_core_item", 3}, + {"effectivity-module-2", "fi_modules_core_item", 1}, + {"effectivity-module-3", "fi_modules_core_item", 3}, + {"satellite", "fu_materials_KFK", 10}, + + --{"automation-science-pack", "fi_modules_core_item", 3}, + --{"logistic-science-pack", "fi_modules_core_item", 3}, + {"chemical-science-pack", "el_energy_crystal_item",3}, + {"production-science-pack", "fi_materials_titan", 1}, + {"utility-science-pack", "fi_materials_neodym", 1}, + +} + +--[TECHS] + +tech_table = { + {"automation-2", "el_ALK_tech"}, + {"chemical-science-pack", "el_grower_tech"}, + {"engine", "el_ALK_tech"}, + {"oil-processing", "el_ALK_tech"}, + {"electric-energy-distribution-1", "el_ALK_tech"}, + {"el_energy_tech", "solar-energy"}, + {"stack-inserter", "el_grower_tech"}, + {"electric-engine", "fi_caster_tech"}, + {"robotics", "fi_caster_tech"}, + {"production-science-pack", "fi_caster_tech"}, + {"utility-science-pack", "fi_caster_tech"}, + {"electric-energy-distribution-2", "fi_caster_tech"}, + {"uranium-processing", "fi_materials_tech"}, + {"advanced-electronics-2", "fi_materials_tech"}, + {"fi_energy_tech", "nuclear-power"}, + {"nuclear-power", "fi_materials_tech"}, + {"effect-transmission", "fi_materials_tech"}, + {"automation-3", "fi_materials_tech"}, + {"logistics-3", "fi_materials_tech"}, + {"effectivity-module-2", "fi_modules_1_tech"}, + {"speed-module-2", "fi_modules_1_tech"}, + {"productivity-module-2", "fi_modules_1_tech"}, + {"kovarex-enrichment-process", "el_ki_eff_1_tech"}, + {"kovarex-enrichment-process", "fi_ki_eff_1_tech"}, + {"rocket-silo", "fu_KFK_tech"}, + {"space-science-pack", "fu_KFK_tech"}, + {"el_train_tech", "railway"}, + {"el_kerosene_tech", "oil-processing"}, + {"fi_refining_tech", "uranium-processing"}, + {"fi_crafter_tech", "fi_refining_tech"}, + + --add science packs + {"fi_stage_tech", "chemical-science-pack"}, + {"fu_stage_tech", "utility-science-pack"}, + {"el_purifier_tech", "logistic-science-pack"}, + {"fu_tokamak_tech", "production-science-pack"}, + {"fu_space_probe_1_tech", "production-science-pack"}, + {"fu_space_probe_1_tech", "space-science-pack"}, + {"fu_star_engine_tech", "space-science-pack"}, + {"fu_hydrogen_1_tech", "production-science-pack"}, + {"fu_hydrogen_2_tech", "space-science-pack"}, +} + +--=================================================================================================================== +-- structure and adding +--=================================================================================================================== + +recipe_structure = {"recipe", "item", "item_amount"} +tech_structure = {"tech", "pre_tech"} + +add_to_recipes(change_table_index(building_table, recipe_structure)) +add_to_recipes(change_table_index(item_table, recipe_structure)) +add_to_techs(change_table_index(tech_table, tech_structure)) \ No newline at end of file diff --git a/settings.lua b/settings.lua index 420205c..d854717 100644 --- a/settings.lua +++ b/settings.lua @@ -185,4 +185,11 @@ data:extend({ default_value = true, order = 'b', }, + { + name = 'overhaul_mode', + type = 'bool-setting', + setting_type = 'startup', + default_value = true, + order = 'b', + }, }) \ No newline at end of file