Update Module Gui to 2.0 (#13)

* Update module.lua

* Update research.lua

* Update research.lua

* Update research.lua

* Update research.lua

* Update research.lua

* Update research.lua

* Update module.lua

* Update module.lua

* Update module.lua

* Update module.lua

* Update gui.cfg

* Update module.lua

* Fix use of created_entity in events

* Update module.lua

* Improvements using 'module_slots' property

* Add quality support

---------

Co-authored-by: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com>
This commit is contained in:
2024-12-29 02:53:08 +09:00
committed by GitHub
parent 8c19d67450
commit 25289fd606
3 changed files with 278 additions and 219 deletions

View File

@@ -1,98 +1,88 @@
return {
-- type of machine to handle together
default_module_row_count = 9,
module_slot_max = 4,
copy_paste_module = true,
module_slots_per_row = 4,
module_slot_max = 8,
copy_paste_module = false,
copy_paste_rotation = false,
machine = {
["electric-mining-drill"] = {
["module"] = "effectivity-module",
["prod"] = true,
},
["pumpjack"] = {
["module"] = "effectivity-module",
["prod"] = true,
},
["assembling-machine-2"] = {
["module"] = "productivity-module",
["prod"] = true,
},
["assembling-machine-3"] = {
["module"] = "productivity-module-3",
["prod"] = true,
},
["electric-furnace"] = {
["module"] = "productivity-module-3",
["prod"] = true,
},
["beacon"] = {
["module"] = "speed-module-3",
["prod"] = false,
},
["oil-refinery"] = {
["module"] = "productivity-module-3",
["prod"] = true,
},
["chemical-plant"] = {
["module"] = "productivity-module-3",
["prod"] = true,
},
["centrifuge"] = {
["module"] = "productivity-module-3",
["prod"] = true,
},
["lab"] = {
["module"] = "productivity-module-3",
["prod"] = true,
},
["rocket-silo"] = {
["module"] = "productivity-module-3",
["prod"] = true,
},
},
module_allowed = {
["advanced-circuit"] = true,
["automation-science-pack"] = true,
["battery"] = true,
["chemical-science-pack"] = true,
["copper-cable"] = true,
["copper-plate"] = true,
["electric-engine-unit"] = true,
["electronic-circuit"] = true,
["empty-barrel"] = true,
["engine-unit"] = true,
["explosives"] = true,
["flying-robot-frame"] = true,
["iron-gear-wheel"] = true,
["iron-plate"] = true,
["iron-stick"] = true,
["logistic-science-pack"] = true,
["low-density-structure"] = true,
["lubricant"] = true,
["military-science-pack"] = true,
["nuclear-fuel"] = true,
["plastic-bar"] = true,
["processing-unit"] = true,
["production-science-pack"] = true,
["rocket-control-unit"] = true,
["rocket-fuel"] = true,
["rocket-part"] = true,
["steel-plate"] = true,
["stone-brick"] = true,
["sulfur"] = true,
["sulfuric-acid"] = true,
["uranium-fuel-cell"] = true,
["utility-science-pack"] = true,
["basic-oil-processing"] = true,
["advanced-oil-processing"] = true,
["coal-liquefaction"] = true,
["heavy-oil-cracking"] = true,
["light-oil-cracking"] = true,
["solid-fuel-from-light-oil"] = true,
["solid-fuel-from-petroleum-gas"] = true,
["solid-fuel-from-heavy-oil"] = true,
["uranium-processing"] = true,
["nuclear-fuel-reprocessing"] = true,
["kovarex-enrichment-process"] = true,
},
machine_set = {
["base"] = {
["electric-mining-drill"] = {
["module"] = "efficiency-module",
["prod"] = true,
},
["pumpjack"] = {
["module"] = "efficiency-module",
["prod"] = true,
},
["assembling-machine-2"] = {
["module"] = "productivity-module",
["prod"] = true,
},
["assembling-machine-3"] = {
["module"] = "productivity-module-3",
["prod"] = true,
},
["electric-furnace"] = {
["module"] = "productivity-module-3",
["prod"] = true,
},
["beacon"] = {
["module"] = "speed-module-3",
["prod"] = false,
},
["oil-refinery"] = {
["module"] = "productivity-module-3",
["prod"] = true,
},
["chemical-plant"] = {
["module"] = "productivity-module-3",
["prod"] = true,
},
["centrifuge"] = {
["module"] = "productivity-module-3",
["prod"] = true,
},
["lab"] = {
["module"] = "productivity-module-3",
["prod"] = true,
},
["rocket-silo"] = {
["module"] = "productivity-module-3",
["prod"] = true,
}
},
["space-age"] = {
["big-mining-drill"] = {
["module"] = "efficiency-module",
["prod"] = true,
},
["biochamber"] = {
["module"] = "efficiency-module",
["prod"] = true,
},
["electromagnetic-plant"] = {
["module"] = "productivity-module-3",
["prod"] = true,
},
["cryogenic-plant"] = {
["module"] = "productivity-module-3",
["prod"] = true,
},
["biolab"] = {
["module"] = "productivity-module-3",
["prod"] = true,
},
["foundry"] = {
["module"] = "productivity-module-3",
["prod"] = true,
},
["recycler"] = {
["module"] = "quality-module-3",
["prod"] = true,
}
}
}
}