fluid mining tech to replace uranium mining
and some cleanup and adjustment of fluid setting handling
This commit is contained in:
parent
99b2c9229c
commit
22076c0522
9 changed files with 86 additions and 23 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue