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,6 +13,7 @@ function decode(data)
end end
function util.check_fluid_mining() function util.check_fluid_mining()
if me.fluid_mining then
for i, force in pairs(game.forces) do for i, force in pairs(game.forces) do
if ( if (
(force.technologies["uranium-processing"] and force.technologies["uranium-processing"].researched) or (force.technologies["uranium-processing"] and force.technologies["uranium-processing"].researched) or
@ -23,6 +24,7 @@ function util.check_fluid_mining()
end end
end end
end end
end
function util.get_list() function util.get_list()
local p = game.item_prototypes[me.name.."-list"] local p = game.item_prototypes[me.name.."-list"]

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}}