fixed conditional require
This commit is contained in:
parent
6ee2fbac40
commit
ae297c4e8b
4 changed files with 11 additions and 11 deletions
|
@ -7,6 +7,7 @@ end
|
||||||
--krastorio2
|
--krastorio2
|
||||||
if mods["Krastorio2"] then
|
if mods["Krastorio2"] then
|
||||||
require('scripts/krastorio2/data-final-fixes')
|
require('scripts/krastorio2/data-final-fixes')
|
||||||
|
require('scripts/krastorio2/overhaul')
|
||||||
end
|
end
|
||||||
--ind2
|
--ind2
|
||||||
if mods["IndustrialRevolution"] then
|
if mods["IndustrialRevolution"] then
|
||||||
|
@ -16,17 +17,13 @@ end
|
||||||
if mods["space-exploration"] then
|
if mods["space-exploration"] then
|
||||||
require('scripts/SE/data-final-fixes')
|
require('scripts/SE/data-final-fixes')
|
||||||
end
|
end
|
||||||
--overhaul K2
|
|
||||||
if (settings.startup['overhaul_mode'].value == true and mods["Krastorio2"]) then
|
|
||||||
require('scripts/krastorio2/overhaul')
|
|
||||||
end
|
|
||||||
--overhaul with realistic reactors
|
--overhaul with realistic reactors
|
||||||
if mods["RealisticReactors"] then
|
if mods["RealisticReactors"] then
|
||||||
for i,v in ipairs(data.raw.technology["nuclear-power"].prerequisites) do
|
for i,v in ipairs(data.raw.technology["nuclear-power"].prerequisites) do
|
||||||
if v == "effectivity-module-2" then data.raw.technology["nuclear-power"].prerequisites[i] = nil end
|
if v == "effectivity-module-2" then data.raw.technology["nuclear-power"].prerequisites[i] = nil end
|
||||||
end
|
end
|
||||||
|
|
||||||
if (settings.startup['overhaul_mode'].value == true and settings.startup['overhaul_realistic_reactors'].value == true) then
|
if settings.startup['overhaul_realistic_reactors'].value then
|
||||||
require('scripts/realisticreactors/overhaul')
|
require('scripts/realisticreactors/overhaul')
|
||||||
end
|
end
|
||||||
end
|
end
|
|
@ -1,3 +1,6 @@
|
||||||
|
if settings.startup['overhaul_mode'].value then
|
||||||
|
-- indent ignored
|
||||||
|
|
||||||
local function add_to_recipe(recipe, item, item_amount)
|
local function add_to_recipe(recipe, item, item_amount)
|
||||||
if not data.raw.recipe[recipe] then
|
if not data.raw.recipe[recipe] then
|
||||||
return
|
return
|
||||||
|
@ -514,11 +517,7 @@ add_cards_to_tree(del_doubles(walk_techs("gr_charger_tech", break_con)), "singul
|
||||||
add_cards_to_tree(del_doubles(walk_techs("gr_compact_fusion_tech", break_con)), "singularity-tech-card")
|
add_cards_to_tree(del_doubles(walk_techs("gr_compact_fusion_tech", break_con)), "singularity-tech-card")
|
||||||
add_cards_to_tree(del_doubles(walk_techs("kr-singularity-tech-card", break_con)), "fu_space_probe_science_item")
|
add_cards_to_tree(del_doubles(walk_techs("kr-singularity-tech-card", break_con)), "fu_space_probe_science_item")
|
||||||
|
|
||||||
|
end --indent ignored
|
||||||
--TODO
|
|
||||||
--rare metals with fi_materials
|
|
||||||
--compact fusion tech and singularity tech
|
|
||||||
--singularity tech stuff integate
|
|
||||||
|
|
||||||
--===================================================================================================================
|
--===================================================================================================================
|
||||||
-- math and meta
|
-- math and meta
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
if settings.startup['overhaul_mode'].value == true then
|
if settings.startup['overhaul_mode'].value then
|
||||||
-- indent ignored
|
-- indent ignored
|
||||||
|
|
||||||
local function add_to_recipe(recipe, item, item_amount)
|
local function add_to_recipe(recipe, item, item_amount)
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
if settings.startup['overhaul_mode'].value then
|
||||||
|
-- indent ignored
|
||||||
|
|
||||||
local function add_to_recipe(recipe, item, item_amount)
|
local function add_to_recipe(recipe, item, item_amount)
|
||||||
if not data.raw.recipe[recipe] then
|
if not data.raw.recipe[recipe] then
|
||||||
return
|
return
|
||||||
|
@ -415,3 +418,4 @@ add_tech_cards(change_table_index(add_card_table, tech_structure))
|
||||||
remove_pre_techs(change_table_index(pre_tech_table, tech_structure))
|
remove_pre_techs(change_table_index(pre_tech_table, tech_structure))
|
||||||
remove_tech_cards(change_table_index(remove_card_table, card_structure))
|
remove_tech_cards(change_table_index(remove_card_table, card_structure))
|
||||||
|
|
||||||
|
end --indent ignored
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue