Skip to content

Commit

Permalink
Format Code
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiHawk committed Dec 15, 2024
1 parent 2eb5f0f commit 8399a93
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
19 changes: 7 additions & 12 deletions bobmining/prototypes/axes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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 = {
Expand All @@ -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 = {
Expand All @@ -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 = {
Expand All @@ -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 = {
Expand All @@ -90,9 +89,7 @@ if settings.startup["bobmods-mining-miningaxes"].value == true then
upgrade = true,
},
})

else

data:extend({
{
type = "technology",
Expand Down Expand Up @@ -211,7 +208,5 @@ if settings.startup["bobmods-mining-miningaxes"].value == true then
upgrade = true,
},
})

end

end
4 changes: 2 additions & 2 deletions bobmining/prototypes/pumpjacks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion bobmining/prototypes/water-miner.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 8399a93

Please sign in to comment.