This commit is contained in:
2025-03-23 00:37:25 +09:00
parent 78b4728e6c
commit f318f90c82
2 changed files with 20 additions and 0 deletions

View File

@@ -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