diff --git a/PHI-CL/control.lua b/PHI-CL/control.lua index af4dacf..fef9a3d 100644 --- a/PHI-CL/control.lua +++ b/PHI-CL/control.lua @@ -39,4 +39,22 @@ if settings.startup['PHI-CT'].value then script.on_event(defines.events.on_robot_built_entity, trash_creation, {{filter='name', name='trash-chest', mode='or'}, {filter='name', name='trash-pipe', mode='or'}}) script.on_event(defines.events.script_raised_built, trash_creation) script.on_event(defines.events.script_raised_revive, trash_creation) + + local function hidden_recipe_enable(enable) + for _, v in pairs(prototypes.fluid) do + prototypes.recipe['pump-' .. v.name].hidden = enable + end + + prototypes.recipe['super-radar'].hidden = enable + prototypes.recipe['passive-energy-void'].hidden = enable + prototypes.recipe['linked-chest'].hidden = enable + end + + script.on_event(defines.events.on_player_cheat_mode_enabled, function(_) + hidden_recipe_enable(true) + end) + + script.on_event(defines.events.on_player_cheat_mode_disabled, function(_) + hidden_recipe_enable(false) + end) end diff --git a/PHI-CL/data.lua b/PHI-CL/data.lua index fb05c78..8145a66 100644 --- a/PHI-CL/data.lua +++ b/PHI-CL/data.lua @@ -1387,6 +1387,7 @@ if settings.startup['PHI-CT'].value then item = table.deepcopy(data.raw['item']['linked-chest']) item.subgroup = 'storage' item.order = 'a[items]-d[linked-chest]' + item.hidden = true item.stack_size = 50 data:extend({item}) @@ -1405,6 +1406,7 @@ if settings.startup['PHI-CT'].value then name = item.name, energy_required = 2, enabled = false, + hidden = true, ingredients = {{type = 'item', name = 'steel-chest', amount = 1}}, results = {{type = 'item', name = item.name, amount = 1}}, main_product = item.name