diff --git a/PHI-CL/config.lua b/PHI-CL/config.lua index 7a88ddb..a1f8507 100644 --- a/PHI-CL/config.lua +++ b/PHI-CL/config.lua @@ -357,14 +357,6 @@ local items = { } }, ['space-age'] = { - ['science'] = { - ['agricultural-science-pack'] = true, - ['cryogenic-science-pack'] = true, - ['electromagnetic-science-pack'] = true, - ['metallurgic-science-pack'] = true, - ['promethium-science-pack'] = true, - ['space-science-pack'] = true - }, ['gleba_tree'] = { ['cuttlepop'] = true, ['sunnycomb'] = true, diff --git a/PHI-CL/data.lua b/PHI-CL/data.lua index da49d6d..7e14659 100644 --- a/PHI-CL/data.lua +++ b/PHI-CL/data.lua @@ -535,6 +535,10 @@ if settings.startup['PHI-SA'].value then if data.raw.technology[k] then data.raw.technology[k].hidden = v data.raw.technology[k].hidden_in_factoriopedia = v + + if settings.startup['PHI-SA-VANILLA'].value and data.raw.technology[k].unit and data.raw.technology[k].unit.ingredients then + data.raw.technology[k].unit.ingredients = {{'space-science-pack', 1}} + end end end @@ -1099,27 +1103,6 @@ if settings.startup['PHI-SA'].value then end end - --[[ - for _, v in pairs(data.raw.technology) do - if v.unit and v.unit.ingredients then - for i=#v.unit.ingredients, 1, -1 do - if items['space-age']['science'][v.unit.ingredients[i][1] ] then - table.remove(v.unit.ingredients, i) - end - end - - if v.max_level and v.max_level == 'infinite' and (not (string.find(v.name, 'productivity') or v.name == 'health')) then - table.insert(v.unit.ingredients, {'space-science-pack', 1}) - end - end - - if items['space-age']['technology_2'][v.name] then - data.raw.technology[v.name].hidden = true - data.raw.technology[v.name].hidden_in_factoriopedia = true - end - end - ]] - data.raw.recipe['cliff-explosives'].ingredients = {{type = 'item', name = 'explosives', amount = 10}, {type = 'item', name = 'grenade', amount = 1}, {type = 'item', name = 'barrel', amount = 1}} data.raw.recipe['big-mining-drill'].category = nil data.raw.recipe['big-mining-drill'].ingredients = {{type = 'item', name = 'electric-mining-drill', amount = 1}, {type = 'item', name = 'steel-plate', amount =20}, {type = 'item', name = 'electric-engine-unit', amount =10}, {type = 'item', name = 'advanced-circuit', amount =10}}