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 end
function util.check_fluid_mining() function util.check_fluid_mining()
for i, force in pairs(game.forces) do if me.fluid_mining then
if ( for i, force in pairs(game.forces) do
(force.technologies["uranium-processing"] and force.technologies["uranium-processing"].researched) or if (
(force.technologies["titanium-processing"] and force.technologies["titanium-processing"].researched) or (force.technologies["uranium-processing"] and force.technologies["uranium-processing"].researched) or
false (force.technologies["titanium-processing"] and force.technologies["titanium-processing"].researched) or
) then false
force.technologies["fluid-mining"].researched = true ) then
force.technologies["fluid-mining"].researched = true
end
end end
end end
end end

1
me.lua
View file

@ -1,6 +1,7 @@
local me = {} local me = {}
me.name = "bztitanium" me.name = "bztitanium"
me.fluid_mining = true
me.titanium_plate = "" me.titanium_plate = ""
me.titanium_processing = "" me.titanium_processing = ""
me.ores_for_workaround = {{name="titanium-ore", amount=100000, tiles=300}} me.ores_for_workaround = {{name="titanium-ore", amount=100000, tiles=300}}