Первый фикс

Пачки некоторых позиций увеличены
This commit is contained in:
2024-03-01 20:53:32 +03:00
commit 7c9c708c92
23653 changed files with 767936 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
-- Reload recipes and technologies
for i, player in ipairs(game.players) do
player.force.reset_recipes()
player.force.reset_technologies()
end
for index, force in pairs(game.forces) do
-- Generate technology and recipe tables
local tech = force.technologies
local recipes = force.recipes
-- Unlock researched recipes
if tech["fluid-handling"] and tech["fluid-handling"].researched then
if recipes["check-valve"] then
recipes["check-valve"].enabled = true
end
if recipes["overflow-valve"] then
recipes["overflow-valve"].enabled = true
end
if recipes["underflow-valve"] then
recipes["underflow-valve"].enabled = true
end
end
end

View File

@@ -0,0 +1,18 @@
for index, force in pairs(game.forces) do
-- Generate technology and recipe tables
local tech = force.technologies
local recipes = force.recipes
-- Unlock researched recipes
if tech["flow_control_valves_tech"] and not tech["flow_control_valves_tech"].researched then
if recipes["check-valve"] and recipes["check-valve"].enabled then
recipes["check-valve"].enabled = false
end
if recipes["overflow-valve"] and recipes["overflow-valve"].enabled then
recipes["overflow-valve"].enabled = false
end
if recipes["underflow-valve"] and recipes["underflow-valve"].enabled then
recipes["underflow-valve"].enabled = false
end
end
end