mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-06-19 10:19:59 +09:00
.
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
local main = {}
|
||||
|
||||
function main.recipe_hidden(event)
|
||||
local status = game.players[event.player_index].cheat_mode
|
||||
local status = (event.name == defines.events.on_player_cheat_mode_enabled)
|
||||
|
||||
for _, v in pairs(prototypes.fluid) do
|
||||
if v.subgroup == 'fluid' then
|
||||
prototypes.recipe['super-pump-' .. v.name].hidden = status
|
||||
prototypes.recipe['super-pump-' .. v.name].enabled = status
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -184,12 +184,12 @@ for _, v in pairs(data.raw.fluid) do
|
||||
name = 'super-pump-' .. v.name,
|
||||
category = 'super-pump-fluid',
|
||||
energy_required = 1,
|
||||
enabled = true,
|
||||
enabled = false,
|
||||
ingredients = {},
|
||||
results = {{type = 'fluid', name = v.name, amount = 12000, temperature = v.default_temperature or 15}},
|
||||
main_product = v.name,
|
||||
hide_from_player_crafting = true,
|
||||
hidden = true,
|
||||
hidden = false,
|
||||
hidden_in_factoriopedia = true,
|
||||
allow_productivity = false,
|
||||
crafting_machine_tint = {primary = v.flow_color or {r = 255,g = 255,b = 255}},
|
||||
@@ -199,7 +199,7 @@ for _, v in pairs(data.raw.fluid) do
|
||||
end
|
||||
|
||||
if data.raw.fluid['water'] and data.raw.recipe['super-pump-water'] then
|
||||
data.raw.recipe['super-pump-water'].hidden = false
|
||||
data.raw.recipe['super-pump-water'].enabled = true
|
||||
end
|
||||
|
||||
-- MIG C 5 BASE ENTITY
|
||||
|
||||
Reference in New Issue
Block a user