forked from cacklingfiend/lignumis
25 lines
No EOL
1.1 KiB
Lua
25 lines
No EOL
1.1 KiB
Lua
require("prototypes/content/final")
|
|
require("prototypes/compatibility/final")
|
|
|
|
if not mods["Burner-Leech-Fork"] and not mods["Burner-Leech"] and not mods["InserterFuelLeech"] then
|
|
data.raw["inserter"]["burner-inserter"].allow_burner_leech = true
|
|
data.raw["inserter"]["burner-long-handed-inserter"].allow_burner_leech = true
|
|
end
|
|
|
|
-- disable gold module from everything where it's not manually added
|
|
local moduled_building_types = { "beacon", "assembling-machine", "rocket-silo", "furnace", "lab", "mining-drill" }
|
|
|
|
for _, moduled_building_type in pairs(moduled_building_types) do
|
|
for _,moduled_building in pairs(data.raw[moduled_building_type]) do
|
|
if moduled_building then
|
|
if not moduled_building.allowed_module_categories then
|
|
moduled_building.allowed_module_categories = {}
|
|
for _, module_cat in pairs(data.raw["module-category"]) do
|
|
if not (module_cat.name == "quality-assembling") then
|
|
table.insert(moduled_building.allowed_module_categories, module_cat.name)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end |