mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-06-19 10:19:59 +09:00
.
This commit is contained in:
@@ -2,11 +2,13 @@ local main = {}
|
|||||||
|
|
||||||
function main.recipe_hidden(event)
|
function main.recipe_hidden(event)
|
||||||
local status = game.players[event.player_index].cheat_mode
|
local status = game.players[event.player_index].cheat_mode
|
||||||
local force = game.players[event.player_index].force
|
local recipe = game.players[event.player_index].force.recipes
|
||||||
|
|
||||||
for _, v in pairs(prototypes.fluid) do
|
for _, v in pairs(prototypes.fluid) do
|
||||||
if v.subgroup == 'fluid' then
|
local fn = 'super-pump-' .. v.name
|
||||||
force.recipes['super-pump-' .. v.name].enabled = status
|
|
||||||
|
if recipe[fn] then
|
||||||
|
recipe[fn].enabled = status
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -192,7 +192,6 @@ for _, v in pairs(data.raw.fluid) do
|
|||||||
hidden = false,
|
hidden = false,
|
||||||
hidden_in_factoriopedia = true,
|
hidden_in_factoriopedia = true,
|
||||||
allow_productivity = false,
|
allow_productivity = false,
|
||||||
crafting_machine_tint = {primary = v.flow_color or {r = 255,g = 255,b = 255}},
|
|
||||||
localised_name = {'fluid-name.' .. v.name}
|
localised_name = {'fluid-name.' .. v.name}
|
||||||
}})
|
}})
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user