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

View File

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