fluid mining tweak

This commit is contained in:
Brevven 2024-12-27 03:02:08 -08:00
parent af8089b1ed
commit 6a6a846d5f
2 changed files with 10 additions and 7 deletions

View file

@ -13,13 +13,15 @@ function decode(data)
end
function util.check_fluid_mining()
for i, force in pairs(game.forces) do
if (
(force.technologies["uranium-processing"] and force.technologies["uranium-processing"].researched) or
(force.technologies["titanium-processing"] and force.technologies["titanium-processing"].researched) or
false
) then
force.technologies["fluid-mining"].researched = true
if me.fluid_mining then
for i, force in pairs(game.forces) do
if (
(force.technologies["uranium-processing"] and force.technologies["uranium-processing"].researched) or
(force.technologies["titanium-processing"] and force.technologies["titanium-processing"].researched) or
false
) then
force.technologies["fluid-mining"].researched = true
end
end
end
end