From 35534dd37e6c7e97192641088628d8fb50808750 Mon Sep 17 00:00:00 2001 From: StyLuaFormatter Date: Sun, 4 Aug 2024 02:37:46 +0000 Subject: [PATCH] Format Code --- .../prototypes/recipe/electronics-updates.lua | 80 ++++-- .../recipe/module-merged-updates.lua | 229 ++++++++++++++---- .../prototypes/recipe/module-updates.lua | 152 +++++++++--- bobmodules/prototypes/recipe/module.lua | 18 +- 4 files changed, 373 insertions(+), 106 deletions(-) diff --git a/bobmodules/prototypes/recipe/electronics-updates.lua b/bobmodules/prototypes/recipe/electronics-updates.lua index dc25b00b5..6c1446fd4 100644 --- a/bobmodules/prototypes/recipe/electronics-updates.lua +++ b/bobmodules/prototypes/recipe/electronics-updates.lua @@ -21,10 +21,22 @@ if data.raw.item["fibreglass-board"] then end if data.raw.fluid["ferric-chloride-solution"] then - bobmods.lib.recipe.add_ingredient("module-circuit-board", { type = "item", name = "ferric-chloride-solution", amount = 5 }) - bobmods.lib.recipe.add_ingredient("module-processor-board", { type = "item", name = "ferric-chloride-solution", amount = 5 }) - bobmods.lib.recipe.add_ingredient("module-processor-board-2", { type = "item", name = "ferric-chloride-solution", amount = 5 }) - bobmods.lib.recipe.add_ingredient("module-processor-board-3", { type = "item", name = "ferric-chloride-solution", amount = 10 }) + bobmods.lib.recipe.add_ingredient( + "module-circuit-board", + { type = "item", name = "ferric-chloride-solution", amount = 5 } + ) + bobmods.lib.recipe.add_ingredient( + "module-processor-board", + { type = "item", name = "ferric-chloride-solution", amount = 5 } + ) + bobmods.lib.recipe.add_ingredient( + "module-processor-board-2", + { type = "item", name = "ferric-chloride-solution", amount = 5 } + ) + bobmods.lib.recipe.add_ingredient( + "module-processor-board-3", + { type = "item", name = "ferric-chloride-solution", amount = 10 } + ) end if data.raw.item["basic-electronic-components"] then @@ -73,23 +85,59 @@ end if data.raw.item["processing-electronics"] then bobmods.lib.recipe.add_ingredient("speed-processor-3", { type = "item", name = "processing-electronics", amount = 1 }) - bobmods.lib.recipe.add_ingredient("effectivity-processor-3", { type = "item", name = "processing-electronics", amount = 1 }) + bobmods.lib.recipe.add_ingredient( + "effectivity-processor-3", + { type = "item", name = "processing-electronics", amount = 1 } + ) bobmods.lib.recipe.add_ingredient("productivity-processor-3", { type = "item", name = "processing-electronics", 1 }) - bobmods.lib.recipe.add_ingredient("pollution-clean-processor-3", { type = "item", name = "processing-electronics", amount = 1 }) - bobmods.lib.recipe.add_ingredient("pollution-create-processor-3", { type = "item", name = "processing-electronics", amount = 1 }) + bobmods.lib.recipe.add_ingredient( + "pollution-clean-processor-3", + { type = "item", name = "processing-electronics", amount = 1 } + ) + bobmods.lib.recipe.add_ingredient( + "pollution-create-processor-3", + { type = "item", name = "processing-electronics", amount = 1 } + ) else if data.raw.item["advanced-processing-unit"] then - bobmods.lib.recipe.add_ingredient("speed-processor-3", { type = "item", name = "advanced-processing-unit", amount = 1 }) - bobmods.lib.recipe.add_ingredient("effectivity-processor-3", { type = "item", name = "advanced-processing-unit", amount = 1 }) - bobmods.lib.recipe.add_ingredient("productivity-processor-3", { type = "item", name = "advanced-processing-unit", amount = 1 }) - bobmods.lib.recipe.add_ingredient("pollution-clean-processor-3", { type = "item", name = "advanced-processing-unit", amount = 1 }) - bobmods.lib.recipe.add_ingredient("pollution-create-processor-3", { type = "item", name = "advanced-processing-unit", amount = 1 }) + bobmods.lib.recipe.add_ingredient( + "speed-processor-3", + { type = "item", name = "advanced-processing-unit", amount = 1 } + ) + bobmods.lib.recipe.add_ingredient( + "effectivity-processor-3", + { type = "item", name = "advanced-processing-unit", amount = 1 } + ) + bobmods.lib.recipe.add_ingredient( + "productivity-processor-3", + { type = "item", name = "advanced-processing-unit", amount = 1 } + ) + bobmods.lib.recipe.add_ingredient( + "pollution-clean-processor-3", + { type = "item", name = "advanced-processing-unit", amount = 1 } + ) + bobmods.lib.recipe.add_ingredient( + "pollution-create-processor-3", + { type = "item", name = "advanced-processing-unit", amount = 1 } + ) else bobmods.lib.recipe.add_ingredient("speed-processor-3", { type = "item", name = "processing-unit", amount = 1 }) - bobmods.lib.recipe.add_ingredient("effectivity-processor-3", { type = "item", name = "processing-unit", amount = 1 }) - bobmods.lib.recipe.add_ingredient("productivity-processor-3", { type = "item", name = "processing-unit", amount = 1 }) - bobmods.lib.recipe.add_ingredient("pollution-clean-processor-3", { type = "item", name = "processing-unit", amount = 1 }) - bobmods.lib.recipe.add_ingredient("pollution-create-processor-3", { type = "item", name = "processing-unit", amount = 1 }) + bobmods.lib.recipe.add_ingredient( + "effectivity-processor-3", + { type = "item", name = "processing-unit", amount = 1 } + ) + bobmods.lib.recipe.add_ingredient( + "productivity-processor-3", + { type = "item", name = "processing-unit", amount = 1 } + ) + bobmods.lib.recipe.add_ingredient( + "pollution-clean-processor-3", + { type = "item", name = "processing-unit", amount = 1 } + ) + bobmods.lib.recipe.add_ingredient( + "pollution-create-processor-3", + { type = "item", name = "processing-unit", amount = 1 } + ) end end diff --git a/bobmodules/prototypes/recipe/module-merged-updates.lua b/bobmodules/prototypes/recipe/module-merged-updates.lua index 55c6cbb8f..b1118b90a 100644 --- a/bobmodules/prototypes/recipe/module-merged-updates.lua +++ b/bobmodules/prototypes/recipe/module-merged-updates.lua @@ -40,12 +40,24 @@ if settings.startup["bobmods-modules-enablerawspeedmodules"].value == true then end if data.raw.item["processing-electronics"] then - bobmods.lib.recipe.add_ingredient("raw-speed-module-7", { type = "item", name = "processing-electronics", amount = 5 }) - bobmods.lib.recipe.add_ingredient("raw-speed-module-8", { type = "item", name = "processing-electronics", amount = 8 }) + bobmods.lib.recipe.add_ingredient( + "raw-speed-module-7", + { type = "item", name = "processing-electronics", amount = 5 } + ) + bobmods.lib.recipe.add_ingredient( + "raw-speed-module-8", + { type = "item", name = "processing-electronics", amount = 8 } + ) else if data.raw.item["advanced-processing-unit"] then - bobmods.lib.recipe.add_ingredient("raw-speed-module-7", { type = "item", name = "advanced-processing-unit", amount = 5 }) - bobmods.lib.recipe.add_ingredient("raw-speed-module-8", { type = "item", name = "advanced-processing-unit", amount = 8 }) + bobmods.lib.recipe.add_ingredient( + "raw-speed-module-7", + { type = "item", name = "advanced-processing-unit", amount = 5 } + ) + bobmods.lib.recipe.add_ingredient( + "raw-speed-module-8", + { type = "item", name = "advanced-processing-unit", amount = 8 } + ) else bobmods.lib.recipe.add_ingredient("raw-speed-module-7", { type = "item", name = "processing-unit", amount = 5 }) bobmods.lib.recipe.add_ingredient("raw-speed-module-8", { type = "item", name = "processing-unit", amount = 8 }) @@ -131,8 +143,14 @@ if settings.startup["bobmods-modules-enablegreenmodules"].value == true then bobmods.lib.recipe.add_ingredient("green-module-8", { type = "item", name = "processing-electronics", amount = 8 }) else if data.raw.item["advanced-processing-unit"] then - bobmods.lib.recipe.add_ingredient("green-module-7", { type = "item", name = "advanced-processing-unit", amount = 5 }) - bobmods.lib.recipe.add_ingredient("green-module-8", { type = "item", name = "advanced-processing-unit", amount = 8 }) + bobmods.lib.recipe.add_ingredient( + "green-module-7", + { type = "item", name = "advanced-processing-unit", amount = 5 } + ) + bobmods.lib.recipe.add_ingredient( + "green-module-8", + { type = "item", name = "advanced-processing-unit", amount = 8 } + ) else bobmods.lib.recipe.add_ingredient("green-module-7", { type = "item", name = "processing-unit", amount = 5 }) bobmods.lib.recipe.add_ingredient("green-module-8", { type = "item", name = "processing-unit", amount = 8 }) @@ -174,56 +192,131 @@ end if settings.startup["bobmods-modules-enablerawproductivitymodules"].value == true then if data.raw.item["solder"] then - bobmods.lib.recipe.add_ingredient("raw-productivity-module-1-combine", { type = "item", name = "solder", amount = 1 }) + bobmods.lib.recipe.add_ingredient( + "raw-productivity-module-1-combine", + { type = "item", name = "solder", amount = 1 } + ) bobmods.lib.recipe.add_ingredient("raw-productivity-module-2", { type = "item", name = "solder", amount = 2 }) - bobmods.lib.recipe.add_ingredient("raw-productivity-module-2-combine", { type = "item", name = "solder", amount = 2 }) + bobmods.lib.recipe.add_ingredient( + "raw-productivity-module-2-combine", + { type = "item", name = "solder", amount = 2 } + ) bobmods.lib.recipe.add_ingredient("raw-productivity-module-3", { type = "item", name = "solder", amount = 3 }) - bobmods.lib.recipe.add_ingredient("raw-productivity-module-3-combine", { type = "item", name = "solder", amount = 3 }) + bobmods.lib.recipe.add_ingredient( + "raw-productivity-module-3-combine", + { type = "item", name = "solder", amount = 3 } + ) bobmods.lib.recipe.add_ingredient("raw-productivity-module-4", { type = "item", name = "solder", amount = 5 }) - bobmods.lib.recipe.add_ingredient("raw-productivity-module-4-combine", { type = "item", name = "solder", amount = 4 }) + bobmods.lib.recipe.add_ingredient( + "raw-productivity-module-4-combine", + { type = "item", name = "solder", amount = 4 } + ) bobmods.lib.recipe.add_ingredient("raw-productivity-module-5", { type = "item", name = "solder", amount = 6 }) - bobmods.lib.recipe.add_ingredient("raw-productivity-module-5-combine", { type = "item", name = "solder", amount = 6 }) + bobmods.lib.recipe.add_ingredient( + "raw-productivity-module-5-combine", + { type = "item", name = "solder", amount = 6 } + ) bobmods.lib.recipe.add_ingredient("raw-productivity-module-6", { type = "item", name = "solder", amount = 7 }) - bobmods.lib.recipe.add_ingredient("raw-productivity-module-6-combine", { type = "item", name = "solder", amount = 7 }) + bobmods.lib.recipe.add_ingredient( + "raw-productivity-module-6-combine", + { type = "item", name = "solder", amount = 7 } + ) bobmods.lib.recipe.add_ingredient("raw-productivity-module-7", { type = "item", name = "solder", amount = 10 }) - bobmods.lib.recipe.add_ingredient("raw-productivity-module-7-combine", { type = "item", name = "solder", amount = 8 }) + bobmods.lib.recipe.add_ingredient( + "raw-productivity-module-7-combine", + { type = "item", name = "solder", amount = 8 } + ) bobmods.lib.recipe.add_ingredient("raw-productivity-module-8", { type = "item", name = "solder", amount = 12 }) - bobmods.lib.recipe.add_ingredient("raw-productivity-module-8-combine", { type = "item", name = "solder", amount = 10 }) + bobmods.lib.recipe.add_ingredient( + "raw-productivity-module-8-combine", + { type = "item", name = "solder", amount = 10 } + ) else - bobmods.lib.recipe.add_ingredient("raw-productivity-module-3", { type = "item", name = "module-contact", amount = 5 }) + bobmods.lib.recipe.add_ingredient( + "raw-productivity-module-3", + { type = "item", name = "module-contact", amount = 5 } + ) end if settings.startup["bobmods-modules-productivityhasspeed"].value == true then - bobmods.lib.recipe.add_ingredient("raw-productivity-module-1", { type = "item", name = "speed-processor", amount = 1 }) - bobmods.lib.recipe.add_ingredient("raw-productivity-module-1-combine", { type = "item", name = "speed-module", amount = 1 }) - - bobmods.lib.recipe.add_ingredient("raw-productivity-module-2", { type = "item", name = "speed-processor", amount = 2 }) - bobmods.lib.recipe.add_ingredient("raw-productivity-module-2-combine", { type = "item", name = "speed-module-2", amount = 1 }) - - bobmods.lib.recipe.add_ingredient("raw-productivity-module-3", { type = "item", name = "speed-processor-2", amount = 3 }) - bobmods.lib.recipe.add_ingredient("raw-productivity-module-3-combine", { type = "item", name = "speed-module-3", amount = 1 }) - - bobmods.lib.recipe.add_ingredient("raw-productivity-module-4", { type = "item", name = "speed-processor-2", amount = 4 }) - bobmods.lib.recipe.add_ingredient("raw-productivity-module-4-combine", { type = "item", name = "speed-module-4", amount = 1 }) - - bobmods.lib.recipe.add_ingredient("raw-productivity-module-5", { type = "item", name = "speed-processor-2", amount = 5 }) - bobmods.lib.recipe.add_ingredient("raw-productivity-module-5-combine", { type = "item", name = "speed-module-5", amount = 1 }) - - bobmods.lib.recipe.add_ingredient("raw-productivity-module-6", { type = "item", name = "speed-processor-3", amount = 6 }) - bobmods.lib.recipe.add_ingredient("raw-productivity-module-6-combine", { type = "item", name = "speed-module-6", amount = 1 }) - - bobmods.lib.recipe.add_ingredient("raw-productivity-module-7", { type = "item", name = "speed-processor-3", amount = 8 }) - bobmods.lib.recipe.add_ingredient("raw-productivity-module-7-combine", { type = "item", name = "speed-module-7", amount = 1 }) - - bobmods.lib.recipe.add_ingredient("raw-productivity-module-8", { type = "item", name = "speed-processor-3", amount = 10 }) - bobmods.lib.recipe.add_ingredient("raw-productivity-module-8-combine", { type = "item", name = "speed-module-8", amount = 1 }) + bobmods.lib.recipe.add_ingredient( + "raw-productivity-module-1", + { type = "item", name = "speed-processor", amount = 1 } + ) + bobmods.lib.recipe.add_ingredient( + "raw-productivity-module-1-combine", + { type = "item", name = "speed-module", amount = 1 } + ) + + bobmods.lib.recipe.add_ingredient( + "raw-productivity-module-2", + { type = "item", name = "speed-processor", amount = 2 } + ) + bobmods.lib.recipe.add_ingredient( + "raw-productivity-module-2-combine", + { type = "item", name = "speed-module-2", amount = 1 } + ) + + bobmods.lib.recipe.add_ingredient( + "raw-productivity-module-3", + { type = "item", name = "speed-processor-2", amount = 3 } + ) + bobmods.lib.recipe.add_ingredient( + "raw-productivity-module-3-combine", + { type = "item", name = "speed-module-3", amount = 1 } + ) + + bobmods.lib.recipe.add_ingredient( + "raw-productivity-module-4", + { type = "item", name = "speed-processor-2", amount = 4 } + ) + bobmods.lib.recipe.add_ingredient( + "raw-productivity-module-4-combine", + { type = "item", name = "speed-module-4", amount = 1 } + ) + + bobmods.lib.recipe.add_ingredient( + "raw-productivity-module-5", + { type = "item", name = "speed-processor-2", amount = 5 } + ) + bobmods.lib.recipe.add_ingredient( + "raw-productivity-module-5-combine", + { type = "item", name = "speed-module-5", amount = 1 } + ) + + bobmods.lib.recipe.add_ingredient( + "raw-productivity-module-6", + { type = "item", name = "speed-processor-3", amount = 6 } + ) + bobmods.lib.recipe.add_ingredient( + "raw-productivity-module-6-combine", + { type = "item", name = "speed-module-6", amount = 1 } + ) + + bobmods.lib.recipe.add_ingredient( + "raw-productivity-module-7", + { type = "item", name = "speed-processor-3", amount = 8 } + ) + bobmods.lib.recipe.add_ingredient( + "raw-productivity-module-7-combine", + { type = "item", name = "speed-module-7", amount = 1 } + ) + + bobmods.lib.recipe.add_ingredient( + "raw-productivity-module-8", + { type = "item", name = "speed-processor-3", amount = 10 } + ) + bobmods.lib.recipe.add_ingredient( + "raw-productivity-module-8-combine", + { type = "item", name = "speed-module-8", amount = 1 } + ) end if data.raw.item["electronic-components"] then @@ -240,15 +333,33 @@ if settings.startup["bobmods-modules-enablerawproductivitymodules"].value == tru end if data.raw.item["processing-electronics"] then - bobmods.lib.recipe.add_ingredient("raw-productivity-module-7", { type = "item", name = "processing-electronics", amount = 5 }) - bobmods.lib.recipe.add_ingredient("raw-productivity-module-8", { type = "item", name = "processing-electronics", amount = 8 }) + bobmods.lib.recipe.add_ingredient( + "raw-productivity-module-7", + { type = "item", name = "processing-electronics", amount = 5 } + ) + bobmods.lib.recipe.add_ingredient( + "raw-productivity-module-8", + { type = "item", name = "processing-electronics", amount = 8 } + ) else if data.raw.item["advanced-processing-unit"] then - bobmods.lib.recipe.add_ingredient("raw-productivity-module-7", { type = "item", name = "advanced-processing-unit", amount = 5 }) - bobmods.lib.recipe.add_ingredient("raw-productivity-module-8", { type = "item", name = "advanced-processing-unit", amount = 8 }) + bobmods.lib.recipe.add_ingredient( + "raw-productivity-module-7", + { type = "item", name = "advanced-processing-unit", amount = 5 } + ) + bobmods.lib.recipe.add_ingredient( + "raw-productivity-module-8", + { type = "item", name = "advanced-processing-unit", amount = 8 } + ) else - bobmods.lib.recipe.add_ingredient("raw-productivity-module-7", { type = "item", name = "processing-unit", amount = 5 }) - bobmods.lib.recipe.add_ingredient("raw-productivity-module-8", { type = "item", name = "processing-unit", amount = 8 }) + bobmods.lib.recipe.add_ingredient( + "raw-productivity-module-7", + { type = "item", name = "processing-unit", amount = 5 } + ) + bobmods.lib.recipe.add_ingredient( + "raw-productivity-module-8", + { type = "item", name = "processing-unit", amount = 8 } + ) end end @@ -256,7 +367,10 @@ if settings.startup["bobmods-modules-enablerawproductivitymodules"].value == tru bobmods.lib.recipe.add_ingredient("raw-productivity-module-5", { type = "item", name = "ruby-5", amount = 1 }) else if data.raw.item["alien-artifact"] then - bobmods.lib.recipe.add_ingredient("raw-productivity-module-5", { type = "item", name = "alien-artifact", amount = 1 }) + bobmods.lib.recipe.add_ingredient( + "raw-productivity-module-5", + { type = "item", name = "alien-artifact", amount = 1 } + ) end end @@ -264,7 +378,10 @@ if settings.startup["bobmods-modules-enablerawproductivitymodules"].value == tru bobmods.lib.recipe.add_ingredient("raw-productivity-module-6", { type = "item", name = "emerald-5", amount = 1 }) else if data.raw.item["alien-artifact"] then - bobmods.lib.recipe.add_ingredient("raw-productivity-module-6", { type = "item", name = "alien-artifact", amount = 1 }) + bobmods.lib.recipe.add_ingredient( + "raw-productivity-module-6", + { type = "item", name = "alien-artifact", amount = 1 } + ) end end @@ -272,7 +389,10 @@ if settings.startup["bobmods-modules-enablerawproductivitymodules"].value == tru bobmods.lib.recipe.add_ingredient("raw-productivity-module-7", { type = "item", name = "topaz-5", amount = 1 }) else if data.raw.item["alien-artifact"] then - bobmods.lib.recipe.add_ingredient("raw-productivity-module-7", { type = "item", name = "alien-artifact", amount = 1 }) + bobmods.lib.recipe.add_ingredient( + "raw-productivity-module-7", + { type = "item", name = "alien-artifact", amount = 1 } + ) end end @@ -280,7 +400,10 @@ if settings.startup["bobmods-modules-enablerawproductivitymodules"].value == tru bobmods.lib.recipe.add_ingredient("raw-productivity-module-8", { type = "item", name = "diamond-5", amount = 1 }) else if data.raw.item["alien-artifact"] then - bobmods.lib.recipe.add_ingredient("raw-productivity-module-8", { type = "item", name = "alien-artifact", amount = 1 }) + bobmods.lib.recipe.add_ingredient( + "raw-productivity-module-8", + { type = "item", name = "alien-artifact", amount = 1 } + ) end end end @@ -320,8 +443,14 @@ if settings.startup["bobmods-modules-enablegodmodules"].value == true then bobmods.lib.recipe.add_ingredient("god-module-5", { type = "item", name = "processing-electronics", amount = 10 }) else if data.raw.item["advanced-processing-unit"] then - bobmods.lib.recipe.add_ingredient("god-module-4", { type = "item", name = "advanced-processing-unit", amount = 8 }) - bobmods.lib.recipe.add_ingredient("god-module-5", { type = "item", name = "advanced-processing-unit", amount = 10 }) + bobmods.lib.recipe.add_ingredient( + "god-module-4", + { type = "item", name = "advanced-processing-unit", amount = 8 } + ) + bobmods.lib.recipe.add_ingredient( + "god-module-5", + { type = "item", name = "advanced-processing-unit", amount = 10 } + ) else bobmods.lib.recipe.add_ingredient("god-module-4", { type = "item", name = "processing-unit", amount = 8 }) bobmods.lib.recipe.add_ingredient("god-module-5", { type = "item", name = "processing-unit", amount = 10 }) diff --git a/bobmodules/prototypes/recipe/module-updates.lua b/bobmodules/prototypes/recipe/module-updates.lua index f00d80e99..76c97996c 100644 --- a/bobmodules/prototypes/recipe/module-updates.lua +++ b/bobmodules/prototypes/recipe/module-updates.lua @@ -96,41 +96,107 @@ end if data.raw.item["processing-electronics"] then bobmods.lib.recipe.add_ingredient("speed-module-7", { type = "item", name = "processing-electronics", amount = 3 }) - bobmods.lib.recipe.add_ingredient("effectivity-module-7", { type = "item", name = "processing-electronics", amount = 3 }) - bobmods.lib.recipe.add_ingredient("productivity-module-7", { type = "item", name = "processing-electronics", amount = 3 }) - bobmods.lib.recipe.add_ingredient("pollution-clean-module-7", { type = "item", name = "processing-electronics", amount = 3 }) - bobmods.lib.recipe.add_ingredient("pollution-create-module-7", { type = "item", name = "processing-electronics", amount = 3 }) + bobmods.lib.recipe.add_ingredient( + "effectivity-module-7", + { type = "item", name = "processing-electronics", amount = 3 } + ) + bobmods.lib.recipe.add_ingredient( + "productivity-module-7", + { type = "item", name = "processing-electronics", amount = 3 } + ) + bobmods.lib.recipe.add_ingredient( + "pollution-clean-module-7", + { type = "item", name = "processing-electronics", amount = 3 } + ) + bobmods.lib.recipe.add_ingredient( + "pollution-create-module-7", + { type = "item", name = "processing-electronics", amount = 3 } + ) bobmods.lib.recipe.add_ingredient("speed-module-8", { type = "item", name = "processing-electronics", amount = 5 }) - bobmods.lib.recipe.add_ingredient("effectivity-module-8", { type = "item", name = "processing-electronics", amount = 5 }) - bobmods.lib.recipe.add_ingredient("productivity-module-8", { type = "item", name = "processing-electronics", amount = 5 }) - bobmods.lib.recipe.add_ingredient("pollution-clean-module-8", { type = "item", name = "processing-electronics", amount = 5 }) - bobmods.lib.recipe.add_ingredient("pollution-create-module-8", { type = "item", name = "processing-electronics", amount = 5 }) + bobmods.lib.recipe.add_ingredient( + "effectivity-module-8", + { type = "item", name = "processing-electronics", amount = 5 } + ) + bobmods.lib.recipe.add_ingredient( + "productivity-module-8", + { type = "item", name = "processing-electronics", amount = 5 } + ) + bobmods.lib.recipe.add_ingredient( + "pollution-clean-module-8", + { type = "item", name = "processing-electronics", amount = 5 } + ) + bobmods.lib.recipe.add_ingredient( + "pollution-create-module-8", + { type = "item", name = "processing-electronics", amount = 5 } + ) else if data.raw.item["advanced-processing-unit"] then - bobmods.lib.recipe.add_ingredient("speed-module-7", { type = "item", name = "advanced-processing-unit", amount = 3 }) - bobmods.lib.recipe.add_ingredient("effectivity-module-7", { type = "item", name = "advanced-processing-unit", amount = 3 }) - bobmods.lib.recipe.add_ingredient("productivity-module-7", { type = "item", name = "advanced-processing-unit", amount = 3 }) - bobmods.lib.recipe.add_ingredient("pollution-clean-module-7", { type = "item", name = "advanced-processing-unit", amount = 3 }) - bobmods.lib.recipe.add_ingredient("pollution-create-module-7", { type = "item", name = "advanced-processing-unit", amount = 3 }) - - bobmods.lib.recipe.add_ingredient("speed-module-8", { type = "item", name = "advanced-processing-unit", amount = 5 }) - bobmods.lib.recipe.add_ingredient("effectivity-module-8", { type = "item", name = "advanced-processing-unit", amount = 5 }) - bobmods.lib.recipe.add_ingredient("productivity-module-8", { type = "item", name = "advanced-processing-unit", amount = 5 }) - bobmods.lib.recipe.add_ingredient("pollution-clean-module-8", { type = "item", name = "advanced-processing-unit", amount = 5 }) - bobmods.lib.recipe.add_ingredient("pollution-create-module-8", { type = "item", name = "advanced-processing-unit", amount = 5 }) + bobmods.lib.recipe.add_ingredient( + "speed-module-7", + { type = "item", name = "advanced-processing-unit", amount = 3 } + ) + bobmods.lib.recipe.add_ingredient( + "effectivity-module-7", + { type = "item", name = "advanced-processing-unit", amount = 3 } + ) + bobmods.lib.recipe.add_ingredient( + "productivity-module-7", + { type = "item", name = "advanced-processing-unit", amount = 3 } + ) + bobmods.lib.recipe.add_ingredient( + "pollution-clean-module-7", + { type = "item", name = "advanced-processing-unit", amount = 3 } + ) + bobmods.lib.recipe.add_ingredient( + "pollution-create-module-7", + { type = "item", name = "advanced-processing-unit", amount = 3 } + ) + + bobmods.lib.recipe.add_ingredient( + "speed-module-8", + { type = "item", name = "advanced-processing-unit", amount = 5 } + ) + bobmods.lib.recipe.add_ingredient( + "effectivity-module-8", + { type = "item", name = "advanced-processing-unit", amount = 5 } + ) + bobmods.lib.recipe.add_ingredient( + "productivity-module-8", + { type = "item", name = "advanced-processing-unit", amount = 5 } + ) + bobmods.lib.recipe.add_ingredient( + "pollution-clean-module-8", + { type = "item", name = "advanced-processing-unit", amount = 5 } + ) + bobmods.lib.recipe.add_ingredient( + "pollution-create-module-8", + { type = "item", name = "advanced-processing-unit", amount = 5 } + ) else bobmods.lib.recipe.add_ingredient("speed-module-7", { type = "item", name = "processing-unit", amount = 3 }) bobmods.lib.recipe.add_ingredient("effectivity-module-7", { type = "item", name = "processing-unit", amount = 3 }) bobmods.lib.recipe.add_ingredient("productivity-module-7", { type = "item", name = "processing-unit", amount = 3 }) - bobmods.lib.recipe.add_ingredient("pollution-clean-module-7", { type = "item", name = "processing-unit", amount = 3 }) - bobmods.lib.recipe.add_ingredient("pollution-create-module-7", { type = "item", name = "processing-unit", amount = 3 }) + bobmods.lib.recipe.add_ingredient( + "pollution-clean-module-7", + { type = "item", name = "processing-unit", amount = 3 } + ) + bobmods.lib.recipe.add_ingredient( + "pollution-create-module-7", + { type = "item", name = "processing-unit", amount = 3 } + ) bobmods.lib.recipe.add_ingredient("speed-module-8", { type = "item", name = "processing-unit", amount = 5 }) bobmods.lib.recipe.add_ingredient("effectivity-module-8", { type = "item", name = "processing-unit", amount = 5 }) bobmods.lib.recipe.add_ingredient("productivity-module-8", { type = "item", name = "processing-unit", amount = 5 }) - bobmods.lib.recipe.add_ingredient("pollution-clean-module-8", { type = "item", name = "processing-unit", amount = 5 }) - bobmods.lib.recipe.add_ingredient("pollution-create-module-8", { type = "item", name = "processing-unit", amount = 5 }) + bobmods.lib.recipe.add_ingredient( + "pollution-clean-module-8", + { type = "item", name = "processing-unit", amount = 5 } + ) + bobmods.lib.recipe.add_ingredient( + "pollution-create-module-8", + { type = "item", name = "processing-unit", amount = 5 } + ) end end @@ -152,8 +218,14 @@ else bobmods.lib.recipe.add_ingredient("speed-module-5", { type = "item", name = "alien-artifact", amount = 1 }) bobmods.lib.recipe.add_ingredient("effectivity-module-5", { type = "item", name = "alien-artifact", amount = 1 }) bobmods.lib.recipe.add_ingredient("productivity-module-5", { type = "item", name = "alien-artifact", amount = 1 }) - bobmods.lib.recipe.add_ingredient("pollution-clean-module-5", { type = "item", name = "alien-artifact", amount = 1 }) - bobmods.lib.recipe.add_ingredient("pollution-create-module-5", { type = "item", name = "alien-artifact", amount = 1 }) + bobmods.lib.recipe.add_ingredient( + "pollution-clean-module-5", + { type = "item", name = "alien-artifact", amount = 1 } + ) + bobmods.lib.recipe.add_ingredient( + "pollution-create-module-5", + { type = "item", name = "alien-artifact", amount = 1 } + ) end end @@ -168,8 +240,14 @@ else bobmods.lib.recipe.add_ingredient("speed-module-6", { type = "item", name = "alien-artifact", amount = 1 }) bobmods.lib.recipe.add_ingredient("effectivity-module-6", { type = "item", name = "alien-artifact", amount = 1 }) bobmods.lib.recipe.add_ingredient("productivity-module-6", { type = "item", name = "alien-artifact", amount = 1 }) - bobmods.lib.recipe.add_ingredient("pollution-clean-module-6", { type = "item", name = "alien-artifact", amount = 1 }) - bobmods.lib.recipe.add_ingredient("pollution-create-module-6", { type = "item", name = "alien-artifact", amount = 1 }) + bobmods.lib.recipe.add_ingredient( + "pollution-clean-module-6", + { type = "item", name = "alien-artifact", amount = 1 } + ) + bobmods.lib.recipe.add_ingredient( + "pollution-create-module-6", + { type = "item", name = "alien-artifact", amount = 1 } + ) end end @@ -184,8 +262,14 @@ else bobmods.lib.recipe.add_ingredient("speed-module-7", { type = "item", name = "alien-artifact", amount = 1 }) bobmods.lib.recipe.add_ingredient("effectivity-module-7", { type = "item", name = "alien-artifact", amount = 1 }) bobmods.lib.recipe.add_ingredient("productivity-module-7", { type = "item", name = "alien-artifact", amount = 1 }) - bobmods.lib.recipe.add_ingredient("pollution-clean-module-7", { type = "item", name = "alien-artifact", amount = 1 }) - bobmods.lib.recipe.add_ingredient("pollution-create-module-7", { type = "item", name = "alien-artifact", amount = 1 }) + bobmods.lib.recipe.add_ingredient( + "pollution-clean-module-7", + { type = "item", name = "alien-artifact", amount = 1 } + ) + bobmods.lib.recipe.add_ingredient( + "pollution-create-module-7", + { type = "item", name = "alien-artifact", amount = 1 } + ) end end @@ -200,7 +284,13 @@ else bobmods.lib.recipe.add_ingredient("speed-module-8", { type = "item", name = "alien-artifact", amount = 1 }) bobmods.lib.recipe.add_ingredient("effectivity-module-8", { type = "item", name = "alien-artifact", amount = 1 }) bobmods.lib.recipe.add_ingredient("productivity-module-8", { type = "item", name = "alien-artifact", amount = 1 }) - bobmods.lib.recipe.add_ingredient("pollution-clean-module-8", { type = "item", name = "alien-artifact", amount = 1 }) - bobmods.lib.recipe.add_ingredient("pollution-create-module-8", { type = "item", name = "alien-artifact", amount = 1 }) + bobmods.lib.recipe.add_ingredient( + "pollution-clean-module-8", + { type = "item", name = "alien-artifact", amount = 1 } + ) + bobmods.lib.recipe.add_ingredient( + "pollution-create-module-8", + { type = "item", name = "alien-artifact", amount = 1 } + ) end end diff --git a/bobmodules/prototypes/recipe/module.lua b/bobmodules/prototypes/recipe/module.lua index 5165ec8f5..f5e75449f 100644 --- a/bobmodules/prototypes/recipe/module.lua +++ b/bobmodules/prototypes/recipe/module.lua @@ -4,21 +4,21 @@ data.raw["recipe"]["speed-module"].ingredients = { { type = "item", name = "speed-processor", amount = 1 }, { type = "item", name = "module-case", amount = 1 }, { type = "item", name = "module-circuit-board", amount = 1 }, - { type = "item", name = "module-contact", amount = 4 } + { type = "item", name = "module-contact", amount = 4 }, } data.raw["recipe"]["speed-module"].energy_required = 10 data.raw["recipe"]["speed-module-2"].ingredients = { { type = "item", name = "speed-module", amount = 1 }, { type = "item", name = "speed-processor", amount = 2 }, - { type = "item", name = "module-contact", amount = 5 } + { type = "item", name = "module-contact", amount = 5 }, } data.raw["recipe"]["speed-module-2"].energy_required = 20 data.raw["recipe"]["speed-module-3"].ingredients = { { type = "item", name = "speed-module-2", amount = 1 }, { type = "item", name = "speed-processor-2", amount = 3 }, - { type = "item", name = "advanced-circuit", amount = 5 } + { type = "item", name = "advanced-circuit", amount = 5 }, } data.raw["recipe"]["speed-module-3"].energy_required = 30 @@ -101,21 +101,21 @@ data.raw["recipe"]["effectivity-module"].ingredients = { { type = "item", name = "effectivity-processor", amount = 1 }, { type = "item", name = "module-case", amount = 1 }, { type = "item", name = "module-circuit-board", amount = 1 }, - { type = "item", name = "module-contact", amount = 4 } + { type = "item", name = "module-contact", amount = 4 }, } data.raw["recipe"]["effectivity-module"].energy_required = 10 data.raw["recipe"]["effectivity-module-2"].ingredients = { { type = "item", name = "effectivity-module", amount = 1 }, { type = "item", name = "effectivity-processor", amount = 2 }, - { type = "item", name = "module-contact", amount = 5 } + { type = "item", name = "module-contact", amount = 5 }, } data.raw["recipe"]["effectivity-module-2"].energy_required = 20 data.raw["recipe"]["effectivity-module-3"].ingredients = { { type = "item", name = "effectivity-module-2", amount = 1 }, { type = "item", name = "effectivity-processor-2", amount = 3 }, - { type = "item", name = "advanced-circuit", amount = 5 } + { type = "item", name = "advanced-circuit", amount = 5 }, } data.raw["recipe"]["effectivity-module-3"].energy_required = 30 @@ -198,21 +198,21 @@ data.raw["recipe"]["productivity-module"].ingredients = { { type = "item", name = "productivity-processor", amount = 1 }, { type = "item", name = "module-case", amount = 1 }, { type = "item", name = "module-circuit-board", amount = 1 }, - { type = "item", name = "module-contact", amount = 4 } + { type = "item", name = "module-contact", amount = 4 }, } data.raw["recipe"]["productivity-module"].energy_required = 10 data.raw["recipe"]["productivity-module-2"].ingredients = { { type = "item", name = "productivity-module", amount = 1 }, { type = "item", name = "productivity-processor", amount = 2 }, - { type = "item", name = "module-contact", amount = 5 } + { type = "item", name = "module-contact", amount = 5 }, } data.raw["recipe"]["productivity-module-2"].energy_required = 20 data.raw["recipe"]["productivity-module-3"].ingredients = { { type = "item", name = "productivity-module-2", amount = 1 }, { type = "item", name = "productivity-processor-2", amount = 3 }, - { type = "item", name = "advanced-circuit", amount = 5 } + { type = "item", name = "advanced-circuit", amount = 5 }, } data.raw["recipe"]["productivity-module-3"].energy_required = 30