From ce50513631854635f19d12ff4a3890ba069421ee Mon Sep 17 00:00:00 2001 From: StyLuaFormatter Date: Wed, 4 Dec 2024 10:08:49 +0000 Subject: [PATCH] Format Code --- bobplates/data-updates.lua | 27 ++++++++++++++++--- .../prototypes/recipe/nuclear-recipe.lua | 21 ++++++++++++--- bobrevamp/prototypes/rocket-fuel-updates.lua | 5 +++- 3 files changed, 45 insertions(+), 8 deletions(-) diff --git a/bobplates/data-updates.lua b/bobplates/data-updates.lua index 458a8e5dd..698cb30f3 100644 --- a/bobplates/data-updates.lua +++ b/bobplates/data-updates.lua @@ -117,7 +117,10 @@ bobmods.lib.recipe.set_subgroup("kovarex-enrichment-process", "bob-nuclear") if settings.startup["bobmods-plates-nuclearupdate"].value == true then bobmods.lib.recipe.disallow_productivity("uranium-fuel-cell") bobmods.lib.recipe.remove_ingredient("uranium-fuel-cell", "iron-plate") - bobmods.lib.recipe.add_ingredient("uranium-fuel-cell", { type = "item", name = "empty-nuclear-fuel-cell", amount = 10, ignored_by_stats = 10}) + bobmods.lib.recipe.add_ingredient( + "uranium-fuel-cell", + { type = "item", name = "empty-nuclear-fuel-cell", amount = 10, ignored_by_stats = 10 } + ) data.raw.technology["nuclear-fuel-reprocessing"].icon = "__bobplates__/graphics/icons/technology/uranium-nuclear-fuel-reprocessing-new.png" @@ -129,12 +132,22 @@ if settings.startup["bobmods-plates-nuclearupdate"].value == true then data.raw.recipe["nuclear-fuel-reprocessing"].crafting_machine_tint.secondary = { r = 1, g = 0.7, b = 0 } --Right hand module glows plutonium orange-yellow. data.raw.recipe["nuclear-fuel-reprocessing"].energy_required = 120 --up from 60 -log(serpent.block(data.raw.recipe["nuclear-fuel-reprocessing"], {comment = true, refcomment = true, tablecomment = false})) + log( + serpent.block( + data.raw.recipe["nuclear-fuel-reprocessing"], + { comment = true, refcomment = true, tablecomment = false } + ) + ) bobmods.lib.recipe.add_ingredient( "nuclear-fuel-reprocessing", { type = "item", name = "used-up-uranium-fuel-cell", amount = 5 } ) -- +5 from base -log(serpent.block(data.raw.recipe["nuclear-fuel-reprocessing"], {comment = true, refcomment = true, tablecomment = false})) + log( + serpent.block( + data.raw.recipe["nuclear-fuel-reprocessing"], + { comment = true, refcomment = true, tablecomment = false } + ) + ) bobmods.lib.recipe.set_result( "nuclear-fuel-reprocessing", { type = "item", name = "uranium-238", amount = 6, ignored_by_productivity = 5 } @@ -142,7 +155,13 @@ log(serpent.block(data.raw.recipe["nuclear-fuel-reprocessing"], {comment = true, bobmods.lib.recipe.add_result( "nuclear-fuel-reprocessing", - { type = "item", name = "empty-nuclear-fuel-cell", amount = 10, ignored_by_productivity = 10, ignored_by_stats = 10 } + { + type = "item", + name = "empty-nuclear-fuel-cell", + amount = 10, + ignored_by_productivity = 10, + ignored_by_stats = 10, + } ) bobmods.lib.recipe.add_result( "nuclear-fuel-reprocessing", diff --git a/bobplates/prototypes/recipe/nuclear-recipe.lua b/bobplates/prototypes/recipe/nuclear-recipe.lua index 7413622e0..40d4ddd1b 100644 --- a/bobplates/prototypes/recipe/nuclear-recipe.lua +++ b/bobplates/prototypes/recipe/nuclear-recipe.lua @@ -87,7 +87,10 @@ if data.raw.item["thorium-ore"] then if settings.startup["bobmods-plates-nuclearupdate"].value == true then bobmods.lib.recipe.remove_ingredient("thorium-fuel-cell", "bob-lead-plate") - bobmods.lib.recipe.add_ingredient("thorium-fuel-cell", { type = "item", name = "empty-nuclear-fuel-cell", amount = 10, ignored_by_stats = 10 }) + bobmods.lib.recipe.add_ingredient( + "thorium-fuel-cell", + { type = "item", name = "empty-nuclear-fuel-cell", amount = 10, ignored_by_stats = 10 } + ) data:extend({ { type = "recipe", @@ -117,7 +120,13 @@ if data.raw.item["thorium-ore"] then results = { { type = "item", name = "thorium-232", amount = 4, ignored_by_productivity = 3 }, { type = "item", name = "uranium-235", amount = 3, ignored_by_productivity = 2 }, - { type = "item", name = "empty-nuclear-fuel-cell", amount = 10, ignored_by_productivity = 10, ignored_by_stats = 10 }, + { + type = "item", + name = "empty-nuclear-fuel-cell", + amount = 10, + ignored_by_productivity = 10, + ignored_by_stats = 10, + }, { type = "item", name = "fusion-catalyst", amount = 1 }, }, crafting_machine_tint = { @@ -270,7 +279,13 @@ if settings.startup["bobmods-plates-nuclearupdate"].value == true then { type = "item", name = "used-up-deuterium-fuel-cell", amount = 10 }, }, results = { - { type = "item", name = "empty-nuclear-fuel-cell", amount = 10, ignored_by_productivity = 10, ignored_by_stats = 10 }, + { + type = "item", + name = "empty-nuclear-fuel-cell", + amount = 10, + ignored_by_productivity = 10, + ignored_by_stats = 10, + }, { type = "item", name = "lithium", amount = 1, probability = 0.1 }, { type = "item", name = "fusion-catalyst", amount = 1 }, }, diff --git a/bobrevamp/prototypes/rocket-fuel-updates.lua b/bobrevamp/prototypes/rocket-fuel-updates.lua index b7d241c4f..a07f6d173 100644 --- a/bobrevamp/prototypes/rocket-fuel-updates.lua +++ b/bobrevamp/prototypes/rocket-fuel-updates.lua @@ -1,7 +1,10 @@ if data.raw.fluid.ammonia and data.raw.fluid.hydrazine and data.raw.fluid["dinitrogen-tetroxide"] then if data.raw.fluid["pure-water"] then bobmods.lib.recipe.remove_result("hydrazine", "water") - bobmods.lib.recipe.add_result("hydrazine", { type = "fluid", name = "pure-water", amount = 4, ignored_by_productivity = 4 }) + bobmods.lib.recipe.add_result( + "hydrazine", + { type = "fluid", name = "pure-water", amount = 4, ignored_by_productivity = 4 } + ) end data.raw.recipe["rocket-fuel"].ingredients = {