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,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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user