fluid mining tech to replace uranium mining

and some cleanup and adjustment of fluid setting handling
This commit is contained in:
Brevven 2024-12-24 02:37:59 -08:00
parent 99b2c9229c
commit 22076c0522
9 changed files with 86 additions and 23 deletions

View file

@ -12,6 +12,19 @@ function decode(data)
return table.concat(str, "")
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
(force.technologies["dummy-processing"] and force.technologies["dummy-processing"].researched) or
false
) then
force.technologies["fluid-mining"].researched = true
end
end
end
function util.get_list()
local p = game.item_prototypes[me.name.."-list"]
if p then