Skip to content

Commit

Permalink
Format Code
Browse files Browse the repository at this point in the history
  • Loading branch information
LovelySanta committed Oct 10, 2024
1 parent c5dd1be commit 91be31f
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 15 deletions.
12 changes: 10 additions & 2 deletions angelsindustries/data.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ elseif component_result_multiplier == "easy" then
angelsmods.industries.component_result_multiplier = 2
angelsmods.industries.component_crafting_time_multiplier = 1
elseif component_result_multiplier ~= "hard" then
console.log("Error: Angels startup setting 'angels-components-component-difficulty' has an invalid value '"..block_result_multiplier.."' configured! Falling back to default...")
console.log(
"Error: Angels startup setting 'angels-components-component-difficulty' has an invalid value '"
.. block_result_multiplier
.. "' configured! Falling back to default..."
)
end

angelsmods.industries.block_result_multiplier = 1
Expand All @@ -64,7 +68,11 @@ elseif block_result_multiplier == "easy" then
angelsmods.industries.block_result_multiplier = 2
angelsmods.industries.block_crafting_time_multiplier = 1
elseif block_result_multiplier ~= "hard" then
console.log("Error: Angels startup setting 'angels-components-block-difficulty' has an invalid value '"..block_result_multiplier.." configured! Falling back to default...")
console.log(
"Error: Angels startup setting 'angels-components-block-difficulty' has an invalid value '"
.. block_result_multiplier
.. " configured! Falling back to default..."
)
end

-- set triggers for other angel mods
Expand Down
30 changes: 25 additions & 5 deletions angelsindustries/prototypes/recipes/components-cabling-recipes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,11 @@ if angelsmods.industries.components then
{ type = "item", name = "angels-cabling", amount = 1 },
},
results = {
{ type = "item", name = "angels-servo-motor-1", amount = 1 * angelsmods.industries.component_result_multiplier },
{
type = "item",
name = "angels-servo-motor-1",
amount = 1 * angelsmods.industries.component_result_multiplier,
},
},
allow_decomposition = true,
icon_size = 32,
Expand All @@ -304,7 +308,11 @@ if angelsmods.industries.components then
{ type = "item", name = "angels-cabling", amount = 1 },
},
results = {
{ type = "item", name = "angels-servo-motor-2", amount = 1 * angelsmods.industries.component_result_multiplier },
{
type = "item",
name = "angels-servo-motor-2",
amount = 1 * angelsmods.industries.component_result_multiplier,
},
},
icon_size = 32,
},
Expand All @@ -320,7 +328,11 @@ if angelsmods.industries.components then
{ type = "item", name = "cable-shielding-3", amount = 1 },
},
results = {
{ type = "item", name = "angels-servo-motor-3", amount = 1 * angelsmods.industries.component_result_multiplier },
{
type = "item",
name = "angels-servo-motor-3",
amount = 1 * angelsmods.industries.component_result_multiplier,
},
},
icon_size = 32,
},
Expand All @@ -336,7 +348,11 @@ if angelsmods.industries.components then
{ type = "item", name = "cable-shielding-4", amount = 1 },
},
results = {
{ type = "item", name = "angels-servo-motor-4", amount = 1 * angelsmods.industries.component_result_multiplier },
{
type = "item",
name = "angels-servo-motor-4",
amount = 1 * angelsmods.industries.component_result_multiplier,
},
},
icon_size = 32,
},
Expand All @@ -352,7 +368,11 @@ if angelsmods.industries.components then
{ type = "item", name = "cable-shielding-5", amount = 1 },
},
results = {
{ type = "item", name = "angels-servo-motor-5", amount = 1 * angelsmods.industries.component_result_multiplier },
{
type = "item",
name = "angels-servo-motor-5",
amount = 1 * angelsmods.industries.component_result_multiplier,
},
},
icon_size = 32,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ if angelsmods.industries.components then
{ type = "item", name = "angels-girder", amount = 1 },
},
results = {
{ type = "item", name = "construction-frame-1", amount = 2 * angelsmods.industries.component_result_multiplier },
{
type = "item",
name = "construction-frame-1",
amount = 2 * angelsmods.industries.component_result_multiplier,
},
},
allow_decomposition = true,
icon_size = 32,
Expand All @@ -105,7 +109,11 @@ if angelsmods.industries.components then
{ type = "item", name = "angels-rivet", amount = 1 },
},
results = {
{ type = "item", name = "construction-frame-2", amount = 2 * angelsmods.industries.component_result_multiplier },
{
type = "item",
name = "construction-frame-2",
amount = 2 * angelsmods.industries.component_result_multiplier,
},
},
icon_size = 32,
},
Expand All @@ -122,7 +130,11 @@ if angelsmods.industries.components then
{ type = "item", name = "angels-bracket", amount = 1 },
},
results = {
{ type = "item", name = "construction-frame-3", amount = 2 * angelsmods.industries.component_result_multiplier },
{
type = "item",
name = "construction-frame-3",
amount = 2 * angelsmods.industries.component_result_multiplier,
},
},
icon_size = 32,
},
Expand All @@ -140,7 +152,11 @@ if angelsmods.industries.components then
{ type = "item", name = "angels-plating", amount = 1 },
},
results = {
{ type = "item", name = "construction-frame-4", amount = 2 * angelsmods.industries.component_result_multiplier },
{
type = "item",
name = "construction-frame-4",
amount = 2 * angelsmods.industries.component_result_multiplier,
},
},
icon_size = 32,
},
Expand All @@ -159,7 +175,11 @@ if angelsmods.industries.components then
{ type = "item", name = "angels-strut", amount = 1 },
},
results = {
{ type = "item", name = "construction-frame-5", amount = 2 * angelsmods.industries.component_result_multiplier },
{
type = "item",
name = "construction-frame-5",
amount = 2 * angelsmods.industries.component_result_multiplier,
},
},
icon_size = 32,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,11 @@ if angelsmods.industries.components then
{ type = "item", name = "angels-solder", amount = 2 },
},
results = {
{ type = "item", name = "circuit-green-loaded", amount = 1 * angelsmods.industries.component_result_multiplier },
{
type = "item",
name = "circuit-green-loaded",
amount = 1 * angelsmods.industries.component_result_multiplier,
},
},
icon_size = 32,
},
Expand All @@ -471,7 +475,11 @@ if angelsmods.industries.components then
{ type = "item", name = "angels-solder", amount = 3 },
},
results = {
{ type = "item", name = "circuit-orange-loaded", amount = 1 * angelsmods.industries.component_result_multiplier },
{
type = "item",
name = "circuit-orange-loaded",
amount = 1 * angelsmods.industries.component_result_multiplier,
},
},
icon_size = 32,
},
Expand Down Expand Up @@ -510,7 +518,11 @@ if angelsmods.industries.components then
{ type = "item", name = "angels-solder", amount = 5 },
},
results = {
{ type = "item", name = "circuit-yellow-loaded", amount = 1 * angelsmods.industries.component_result_multiplier },
{
type = "item",
name = "circuit-yellow-loaded",
amount = 1 * angelsmods.industries.component_result_multiplier,
},
},
icon_size = 32,
},
Expand Down

0 comments on commit 91be31f

Please sign in to comment.