mirror of
https://asciireactor.com/factorio/adamo-chemical.git
synced 2024-11-21 22:45:07 +00:00
103 lines
2.4 KiB
Lua
103 lines
2.4 KiB
Lua
|
require("factsheet")
|
||
|
|
||
|
apply_sulfur_fuel_stats(data.raw.item.sulfur)
|
||
|
|
||
|
if appmod and type(appmod) == "table" then
|
||
|
appmod
|
||
|
.blacklist["assembling-machine-3"] = true
|
||
|
end
|
||
|
|
||
|
if appmod and type(appmod) == "table" then
|
||
|
appmod
|
||
|
.blacklist["centrifuge"] = true
|
||
|
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
|
||
|
|
||
|
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"
|
||
|
)
|
||
|
|
||
|
data.raw["assembling-machine"].centrifuge.fluid_boxes =
|
||
|
centrifuge_fluid_boxes()
|
||
|
add_string_to_table(
|
||
|
data.raw["assembling-machine"].centrifuge
|
||
|
.crafting_categories,
|
||
|
"adamo-chemical-separation"
|
||
|
)
|
||
|
|
||
|
if data.raw["assembling-machine"][still_name] then
|
||
|
add_string_to_table(
|
||
|
data.raw["assembling-machine"][still_name]
|
||
|
.crafting_categories,
|
||
|
"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
|