mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user