This commit is contained in:
2026-05-26 22:50:33 +09:00
parent 93d1aeb33c
commit 3cbf537c10
2 changed files with 4 additions and 2 deletions
+3 -2
View File
@@ -1,11 +1,12 @@
local main = {}
function main.recipe_hidden(event)
local status = (event.name == defines.events.on_player_cheat_mode_enabled)
local status = game.players[event.player_index].cheat_mode
local force = game.players[event.player_index].force
for _, v in pairs(prototypes.fluid) do
if v.subgroup == 'fluid' then
prototypes.recipe['super-pump-' .. v.name].enabled = status
force.recipes['super-pump-' .. v.name].enabled = status
end
end
end
+1
View File
@@ -21,6 +21,7 @@ for _, force in pairs(game.forces) do
recipes[vn].reload()
end
end
elseif (not technologies[v.tech]) or technologies[v.tech].researched then
for j=v.min, v.max, 1 do
local vn = (v.ref_name or v.name) .. '-' .. j