fluid mining tweak
This commit is contained in:
parent
af8089b1ed
commit
6a6a846d5f
2 changed files with 10 additions and 7 deletions
|
|
@ -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
|
||||||
|
|
@ -22,6 +23,7 @@ function util.check_fluid_mining()
|
||||||
force.technologies["fluid-mining"].researched = true
|
force.technologies["fluid-mining"].researched = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function util.get_list()
|
function util.get_list()
|
||||||
|
|
|
||||||
1
me.lua
1
me.lua
|
|
@ -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}}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue