Skip to content

Commit

Permalink
Updating ingredients format
Browse files Browse the repository at this point in the history
For boblogistics, bobwarfare
  • Loading branch information
KiwiHawk committed Aug 7, 2024
1 parent f07bb87 commit 8e0374c
Show file tree
Hide file tree
Showing 20 changed files with 627 additions and 627 deletions.
20 changes: 10 additions & 10 deletions boblogistics/prototypes/recipe/roboport-recipe-updates.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
bobmods.lib.recipe.set_ingredients("roboport", {
{ "steel-plate", 15 },
{ "roboport-antenna-1", 5 },
{ "roboport-chargepad-1", 4 },
{ "roboport-door-1", 1 },
{ type = "item", name = "steel-plate", amount = 15 },
{ type = "item", name = "roboport-antenna-1", amount = 5 },
{ type = "item", name = "roboport-chargepad-1", amount = 4 },
{ type = "item", name = "roboport-door-1", amount = 1 },
})

if data.raw.item["aluminium-plate"] then
Expand All @@ -28,9 +28,9 @@ if data.raw.item["tinned-copper-cable"] then
end

if data.raw.item["steel-bearing"] then
bobmods.lib.recipe.add_ingredient("roboport-door-2", { "steel-bearing", 20 })
bobmods.lib.recipe.add_ingredient("roboport-door-2", { type = "item", name = "steel-bearing", amount = 20 })
else
bobmods.lib.recipe.add_ingredient("roboport-door-2", { "iron-gear-wheel", 20 })
bobmods.lib.recipe.add_ingredient("roboport-door-2", { type = "item", name = "iron-gear-wheel", amount = 20 })
end

if data.raw.item["brass-gear-wheel"] then
Expand Down Expand Up @@ -68,9 +68,9 @@ if data.raw.item["titanium-plate"] then
end

if data.raw.item["titanium-bearing"] then
bobmods.lib.recipe.add_ingredient("roboport-door-3", { "titanium-bearing", 20 })
bobmods.lib.recipe.add_ingredient("roboport-door-3", { type = "item", name = "titanium-bearing", amount = 20 })
else
bobmods.lib.recipe.add_ingredient("roboport-door-3", { "iron-gear-wheel", 20 })
bobmods.lib.recipe.add_ingredient("roboport-door-3", { type = "item", name = "iron-gear-wheel", amount = 20 })
bobmods.lib.recipe.add_ingredient("roboport-door-3", { type = "fluid", name = "lubricant", amount = 10 })
data.raw.recipe["roboport-door-3"].category = "crafting-with-fluid"
end
Expand Down Expand Up @@ -121,9 +121,9 @@ if data.raw.item["nitinol-alloy"] then
end

if data.raw.item["nitinol-bearing"] then
bobmods.lib.recipe.add_ingredient("roboport-door-4", { "nitinol-bearing", 20 })
bobmods.lib.recipe.add_ingredient("roboport-door-4", { type = "item", name = "nitinol-bearing", amount = 20 })
else
bobmods.lib.recipe.add_ingredient("roboport-door-4", { "iron-gear-wheel", 30 })
bobmods.lib.recipe.add_ingredient("roboport-door-4", { type = "item", name = "iron-gear-wheel", amount = 30 })
bobmods.lib.recipe.add_ingredient("roboport-door-4", { type = "fluid", name = "lubricant", amount = 15 })
data.raw.recipe["roboport-door-4"].category = "crafting-with-fluid"
end
Expand Down
Loading

0 comments on commit 8e0374c

Please sign in to comment.