adamo-chemical/data-updates.lua

100 lines
2.6 KiB
Lua
Raw Permalink Normal View History

2020-05-21 11:36:04 +00:00
require("factsheet")
apply_sulfur_fuel_stats(data.raw.item.sulfur)
if appmod and type(appmod) == "table" then
appmod.blacklist["assembling-machine-3"] = true
2020-05-21 11:36:04 +00:00
end
if appmod and type(appmod) == "table" then
appmod.blacklist["centrifuge"] = true
2020-05-21 11:36:04 +00:00
end
local still_name = settings.startup["adamo-chemical-still"].value
local reactor_name = settings.startup["adamo-chemical-reactor"].value
local mixer_name = settings.startup["adamo-chemical-mixer"].value
local kiln_name = settings.startup["adamo-chemical-kiln"].value
local screener_name = settings.startup["adamo-chemical-screener"].value
2020-05-21 11:36:04 +00:00
add_string_to_table(
data.raw["assembling-machine"]["oil-refinery"]
.crafting_categories,
"adamo-chemical-vaporworks"
)
data.raw["assembling-machine"]["assembling-machine-3"]
.fluid_boxes = chem_assembling_machine_fluid_boxes()
table.insert(
data.raw["assembling-machine"]["assembling-machine-3"].crafting_categories,
"adamo-chemical-manufacturing"
)
table.insert(
data.raw["assembling-machine"]["assembling-machine-2"].crafting_categories,
2020-05-21 11:36:04 +00:00
"adamo-chemical-manufacturing"
)
adamo.apply.centrifuge()
2020-05-21 11:36:04 +00:00
add_string_to_table(
data.raw["assembling-machine"].centrifuge.crafting_categories,
2020-05-21 11:36:04 +00:00
"adamo-chemical-separation"
)
if data.raw["assembling-machine"][still_name] then
add_string_to_table(
data.raw["assembling-machine"][still_name].crafting_categories,
2020-05-21 11:36:04 +00:00
"adamo-chemical-vaporworks"
)
end
if data.raw["assembling-machine"][reactor_name] then
add_strings_to_table(
data.raw["assembling-machine"][reactor_name]
.crafting_categories,
{
"adamo-chemical-disassociation",
"adamo-chemical-recovery",
"adamo-chemical-displacement",
"adamo-chemical-activation",
"adamo-chemical-deposition"
}
)
end
if data.raw["assembling-machine"][mixer_name] then
add_strings_to_table(
data.raw["assembling-machine"][mixer_name]
.crafting_categories,
{
"adamo-chemical-binding",
"adamo-chemical-disassociation",
"adamo-chemical-recovery",
"adamo-chemical-displacement",
"adamo-chemical-activation"
}
)
adamochemical.mixer = true
else
for _,name in pairs({
"assembling-machine-1",
"assembling-machine-2",
"assembling-machine-3"
}) do
add_string_to_table(
data.raw["assembling-machine"][name]
.crafting_categories,
"adamo-chemical-binding"
)
end
end
if data.raw["assembling-machine"][kiln_name] then
add_string_to_table(
data.raw["assembling-machine"][kiln_name]
.crafting_categories,
"adamo-chemical-firing"
)
end
2023-12-20 23:37:40 +00:00
adamo.recipe.set.tech("advanced-material-processing-2","centrifuge")
adamo.tech.add.prereq("uranium-processing","adamo-chemical-fluorine-processing")