From 59e38d0b20eee1e00ecb02861db8b9ed045c5ef4 Mon Sep 17 00:00:00 2001 From: StyLuaFormatter Date: Sun, 2 Jun 2024 03:17:20 +0000 Subject: [PATCH] Format Code --- .../unit-tests/unit-test-006.lua | 28 ++++++++++++++----- .../components-bobs-recipe-update.lua | 2 +- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/angelsdev-unit-test/unit-tests/unit-test-006.lua b/angelsdev-unit-test/unit-tests/unit-test-006.lua index 92ca8444b..bc3f96106 100644 --- a/angelsdev-unit-test/unit-tests/unit-test-006.lua +++ b/angelsdev-unit-test/unit-tests/unit-test-006.lua @@ -116,13 +116,27 @@ local function calculate_science_pack_level() if game.active_mods["bobmodules"] and settings.startup["bobmods-modules-enable-modules-lab"].value then for pack_name, pack_level in pairs({ -- bobs module science packs - ["speed-processor"] = (science_pack_level["angels-science-pack-orange"] or science_pack_level["logistic-science-pack"]), - ["effectivity-processor"] = (science_pack_level["angels-science-pack-orange"] or science_pack_level["logistic-science-pack"]), - ["productivity-processor"] = (science_pack_level["angels-science-pack-orange"] or science_pack_level["logistic-science-pack"]), - ["pollution-clean-processor"] = (science_pack_level["angels-science-pack-orange"] or science_pack_level["logistic-science-pack"]), - ["pollution-create-processor"] = (science_pack_level["angels-science-pack-orange"] or science_pack_level["logistic-science-pack"]), - ["module-circuit-board"] = (science_pack_level["angels-science-pack-blue"] or science_pack_level["chemical-science-pack"]), - ["module-case"] = (science_pack_level["angels-science-pack-yellow"] or science_pack_level["production-science-pack"]), + ["speed-processor"] = ( + science_pack_level["angels-science-pack-orange"] or science_pack_level["logistic-science-pack"] + ), + ["effectivity-processor"] = ( + science_pack_level["angels-science-pack-orange"] or science_pack_level["logistic-science-pack"] + ), + ["productivity-processor"] = ( + science_pack_level["angels-science-pack-orange"] or science_pack_level["logistic-science-pack"] + ), + ["pollution-clean-processor"] = ( + science_pack_level["angels-science-pack-orange"] or science_pack_level["logistic-science-pack"] + ), + ["pollution-create-processor"] = ( + science_pack_level["angels-science-pack-orange"] or science_pack_level["logistic-science-pack"] + ), + ["module-circuit-board"] = ( + science_pack_level["angels-science-pack-blue"] or science_pack_level["chemical-science-pack"] + ), + ["module-case"] = ( + science_pack_level["angels-science-pack-yellow"] or science_pack_level["production-science-pack"] + ), }) do science_pack_level[pack_name] = pack_level end diff --git a/angelsindustries/prototypes/overrides/components-bobs-recipe-update.lua b/angelsindustries/prototypes/overrides/components-bobs-recipe-update.lua index 19a9cb26b..4a0e49502 100644 --- a/angelsindustries/prototypes/overrides/components-bobs-recipe-update.lua +++ b/angelsindustries/prototypes/overrides/components-bobs-recipe-update.lua @@ -225,7 +225,7 @@ if angelsmods.industries.components then if mods["bobwarfare"] then OV.patch_recipes({ { - name = "power-armor", + name = "power-armor", ingredients = { { type = "item", name = "circuit-green-loaded", amount = "circuit-orange-loaded" }, },