From 8399a93161e6561099f16b59d6c3dad03dd57b80 Mon Sep 17 00:00:00 2001 From: StyLuaFormatter Date: Sun, 15 Dec 2024 23:19:58 +0000 Subject: [PATCH] Format Code --- bobmining/prototypes/axes.lua | 19 +++++++------------ bobmining/prototypes/pumpjacks.lua | 4 ++-- bobmining/prototypes/water-miner.lua | 2 +- 3 files changed, 10 insertions(+), 15 deletions(-) diff --git a/bobmining/prototypes/axes.lua b/bobmining/prototypes/axes.lua index 16bbd331f..8968c5cf1 100644 --- a/bobmining/prototypes/axes.lua +++ b/bobmining/prototypes/axes.lua @@ -3,16 +3,15 @@ if settings.startup["bobmods-mining-miningaxes"].value == true then data.raw.technology["steel-axe"].effects[1].modifier = 0.5 if mods["bobplates"] then - - data.raw.technology["steel-axe"].localised_name = {"technology-name.bronze-axe"} - data.raw.technology["steel-axe"].prerequisites = {"alloy-processing"} + data.raw.technology["steel-axe"].localised_name = { "technology-name.bronze-axe" } + data.raw.technology["steel-axe"].prerequisites = { "alloy-processing" } data.raw.technology["steel-axe"].research_trigger.item = "bronze-alloy" data:extend({ { type = "technology", name = "steel-axe-2", - localised_name = {"technology-name.steel-axe"}, + localised_name = { "technology-name.steel-axe" }, icon_size = 256, icon = "__base__/graphics/technology/steel-axe.png", effects = { @@ -28,7 +27,7 @@ if settings.startup["bobmods-mining-miningaxes"].value == true then { type = "technology", name = "steel-axe-3", - localised_name = {"technology-name.cobalt-steel-axe"}, + localised_name = { "technology-name.cobalt-steel-axe" }, icon_size = 256, icon = "__base__/graphics/technology/steel-axe.png", effects = { @@ -44,7 +43,7 @@ if settings.startup["bobmods-mining-miningaxes"].value == true then { type = "technology", name = "steel-axe-4", - localised_name = {"technology-name.tungsten-axe"}, + localised_name = { "technology-name.tungsten-axe" }, icon_size = 256, icon = "__base__/graphics/technology/steel-axe.png", effects = { @@ -60,7 +59,7 @@ if settings.startup["bobmods-mining-miningaxes"].value == true then { type = "technology", name = "steel-axe-5", - localised_name = {"technology-name.nitinol-axe"}, + localised_name = { "technology-name.nitinol-axe" }, icon_size = 256, icon = "__base__/graphics/technology/steel-axe.png", effects = { @@ -76,7 +75,7 @@ if settings.startup["bobmods-mining-miningaxes"].value == true then { type = "technology", name = "steel-axe-6", - localised_name = {"technology-name.diamond-axe"}, + localised_name = { "technology-name.diamond-axe" }, icon_size = 256, icon = "__base__/graphics/technology/steel-axe.png", effects = { @@ -90,9 +89,7 @@ if settings.startup["bobmods-mining-miningaxes"].value == true then upgrade = true, }, }) - else - data:extend({ { type = "technology", @@ -211,7 +208,5 @@ if settings.startup["bobmods-mining-miningaxes"].value == true then upgrade = true, }, }) - end - end diff --git a/bobmining/prototypes/pumpjacks.lua b/bobmining/prototypes/pumpjacks.lua index 89c5e8c2b..42ca0aca0 100644 --- a/bobmining/prototypes/pumpjacks.lua +++ b/bobmining/prototypes/pumpjacks.lua @@ -411,7 +411,7 @@ if settings.startup["bobmods-mining-pumpjacks"].value == true then inventory_index = defines.inventory.mining_drill_modules, shift = { 0, 0.5 }, multi_row_initial_height_modifier = -0.3, - max_icons_per_row = 3 + max_icons_per_row = 3, }, }, fast_replaceable_group = "pumpjack", @@ -520,7 +520,7 @@ if settings.startup["bobmods-mining-pumpjacks"].value == true then inventory_index = defines.inventory.mining_drill_modules, shift = { 0, 0.5 }, multi_row_initial_height_modifier = -0.3, - max_icons_per_row = 3 + max_icons_per_row = 3, }, }, fast_replaceable_group = "pumpjack", diff --git a/bobmining/prototypes/water-miner.lua b/bobmining/prototypes/water-miner.lua index a7b5db548..6ba24bb90 100644 --- a/bobmining/prototypes/water-miner.lua +++ b/bobmining/prototypes/water-miner.lua @@ -517,7 +517,7 @@ if settings.startup["bobmods-mining-waterminers"].value == true and data.raw["re inventory_index = defines.inventory.mining_drill_modules, shift = { 0, 0.5 }, multi_row_initial_height_modifier = -0.3, - max_icons_per_row = 3 + max_icons_per_row = 3, }, }, fast_replaceable_group = "pumpjack",