forked from cacklingfiend/lignumis
Add golden module
This commit is contained in:
parent
414ccf59a4
commit
8974981d07
3 changed files with 76 additions and 1 deletions
|
|
@ -4,4 +4,22 @@ 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue