Skip to content

Commit

Permalink
Merge branch 'dev2.0' of https://github.com/modded-factorio/bobsmods
Browse files Browse the repository at this point in the history
…into dev2.0
  • Loading branch information
KiwiHawk committed Nov 26, 2024
2 parents 65ce56d + 83fe472 commit c23ef81
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 13 deletions.
15 changes: 12 additions & 3 deletions bobelectronics/prototypes/recipe-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,18 @@ if data.raw.item["silicon-wafer"] then
bobmods.lib.recipe.add_ingredient("processing-electronics", { type = "item", name = "silicon-wafer", amount = 6 })
else
if data.raw.item["bob-silicon-plate"] then
bobmods.lib.recipe.add_ingredient("electronic-components", { type = "item", name = "bob-silicon-plate", amount = 1 })
bobmods.lib.recipe.add_ingredient("intergrated-electronics", { type = "item", name = "bob-silicon-plate", amount = 2 })
bobmods.lib.recipe.add_ingredient("processing-electronics", { type = "item", name = "bob-silicon-plate", amount = 3 })
bobmods.lib.recipe.add_ingredient(
"electronic-components",
{ type = "item", name = "bob-silicon-plate", amount = 1 }
)
bobmods.lib.recipe.add_ingredient(
"intergrated-electronics",
{ type = "item", name = "bob-silicon-plate", amount = 2 }
)
bobmods.lib.recipe.add_ingredient(
"processing-electronics",
{ type = "item", name = "bob-silicon-plate", amount = 3 }
)
else
bobmods.lib.recipe.add_ingredient("electronic-components", { type = "item", name = "copper-plate", amount = 1 })
bobmods.lib.recipe.add_ingredient("intergrated-electronics", { type = "item", name = "copper-plate", amount = 2 })
Expand Down
2 changes: 1 addition & 1 deletion bobelectronics/prototypes/resource.lua
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ if not data.raw.item["silicon-wafer"] and data.raw.item["bob-silicon-plate"] the
enabled = false,
energy_required = 5,
ingredients = {
{ type = "item", name = "bob-silicon-plate", amount = 1 }
{ type = "item", name = "bob-silicon-plate", amount = 1 },
},
results = { { type = "item", name = "silicon-wafer", amount = 8 } },
allow_productivity = true,
Expand Down
6 changes: 5 additions & 1 deletion bobequipment/prototypes/recipe/updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,11 @@ else

if data.raw.item["bob-titanium-plate"] then
bobmods.lib.recipe.replace_ingredient("personal-roboport-antenna-equipment-3", "steel-plate", "bob-titanium-plate")
bobmods.lib.recipe.replace_ingredient("personal-roboport-chargepad-equipment-3", "steel-plate", "bob-titanium-plate")
bobmods.lib.recipe.replace_ingredient(
"personal-roboport-chargepad-equipment-3",
"steel-plate",
"bob-titanium-plate"
)
end

if data.raw.item["titanium-bearing"] then
Expand Down
10 changes: 8 additions & 2 deletions bobmodules/prototypes/recipe/module-merged-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,10 @@ if settings.startup["bobmods-modules-enablerawproductivitymodules"].value == tru
end

if data.raw.item["bob-emerald-5"] then
bobmods.lib.recipe.add_ingredient("raw-productivity-module-6", { type = "item", name = "bob-emerald-5", amount = 1 })
bobmods.lib.recipe.add_ingredient(
"raw-productivity-module-6",
{ type = "item", name = "bob-emerald-5", amount = 1 }
)
else
if data.raw.item["alien-artifact"] then
bobmods.lib.recipe.add_ingredient(
Expand All @@ -397,7 +400,10 @@ if settings.startup["bobmods-modules-enablerawproductivitymodules"].value == tru
end

if data.raw.item["bob-diamond-5"] then
bobmods.lib.recipe.add_ingredient("raw-productivity-module-8", { type = "item", name = "bob-diamond-5", amount = 1 })
bobmods.lib.recipe.add_ingredient(
"raw-productivity-module-8",
{ type = "item", name = "bob-diamond-5", amount = 1 }
)
else
if data.raw.item["alien-artifact"] then
bobmods.lib.recipe.add_ingredient(
Expand Down
5 changes: 4 additions & 1 deletion bobvehicleequipment/prototypes/recipe-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,10 @@ if data.raw.item["gilded-copper-cable"] then
end

if data.raw.item["bob-ruby-5"] then
bobmods.lib.recipe.add_ingredient("vehicle-laser-defense-equipment-1", { type = "item", name = "bob-ruby-5", amount = 1 })
bobmods.lib.recipe.add_ingredient(
"vehicle-laser-defense-equipment-1",
{ type = "item", name = "bob-ruby-5", amount = 1 }
)
bobmods.lib.tech.add_prerequisite("vehicle-laser-defense-equipment-1", "gem-processing-3")
end

Expand Down
20 changes: 16 additions & 4 deletions bobwarfare/prototypes/recipe/recipe-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,10 @@ if data.raw.item["bob-ruby-5"] then
end

if data.raw.item["bob-sapphire-5"] then
bobmods.lib.recipe.add_ingredient("laser-rifle-battery-sapphire", { type = "item", name = "bob-sapphire-5", amount = 1 })
bobmods.lib.recipe.add_ingredient(
"laser-rifle-battery-sapphire",
{ type = "item", name = "bob-sapphire-5", amount = 1 }
)
bobmods.lib.recipe.replace_ingredient(
"laser-rifle-battery-sapphire",
"laser-rifle-battery-ruby",
Expand All @@ -265,7 +268,10 @@ if data.raw.item["bob-sapphire-5"] then
end

if data.raw.item["bob-emerald-5"] then
bobmods.lib.recipe.add_ingredient("laser-rifle-battery-emerald", { type = "item", name = "bob-emerald-5", amount = 1 })
bobmods.lib.recipe.add_ingredient(
"laser-rifle-battery-emerald",
{ type = "item", name = "bob-emerald-5", amount = 1 }
)
bobmods.lib.recipe.replace_ingredient(
"laser-rifle-battery-emerald",
"laser-rifle-battery-sapphire",
Expand All @@ -275,7 +281,10 @@ if data.raw.item["bob-emerald-5"] then
end

if data.raw.item["bob-amethyst-5"] then
bobmods.lib.recipe.add_ingredient("laser-rifle-battery-amethyst", { type = "item", name = "bob-amethyst-5", amount = 1 })
bobmods.lib.recipe.add_ingredient(
"laser-rifle-battery-amethyst",
{ type = "item", name = "bob-amethyst-5", amount = 1 }
)
bobmods.lib.recipe.replace_ingredient(
"laser-rifle-battery-amethyst",
"laser-rifle-battery-emerald",
Expand All @@ -294,7 +303,10 @@ if data.raw.item["bob-topaz-5"] then
end

if data.raw.item["bob-diamond-5"] then
bobmods.lib.recipe.add_ingredient("laser-rifle-battery-diamond", { type = "item", name = "bob-diamond-5", amount = 1 })
bobmods.lib.recipe.add_ingredient(
"laser-rifle-battery-diamond",
{ type = "item", name = "bob-diamond-5", amount = 1 }
)
bobmods.lib.recipe.replace_ingredient(
"laser-rifle-battery-diamond",
"laser-rifle-battery-topaz",
Expand Down
5 changes: 4 additions & 1 deletion bobwarfare/prototypes/robots-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,10 @@ if settings.startup["bobmods-warfare-robotupdate"].value == true then

if data.raw.recipe["robot-tool-combat-3"] then
if data.raw.item["bob-titanium-plate"] then
bobmods.lib.recipe.add_ingredient("robot-tool-combat-3", { type = "item", name = "bob-titanium-plate", amount = 1 })
bobmods.lib.recipe.add_ingredient(
"robot-tool-combat-3",
{ type = "item", name = "bob-titanium-plate", amount = 1 }
)
else
bobmods.lib.recipe.add_ingredient("robot-tool-combat-3", { type = "item", name = "steel-plate", amount = 1 })
end
Expand Down

0 comments on commit c23ef81

Please sign in to comment.