Skip to content

Commit

Permalink
Update for Factorio 2.0 #189
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiHawk committed Aug 12, 2024
1 parent 91b24b5 commit 588109a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions bobclasses/prototypes/recipe-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@ if data.raw.item["steel-gear-wheel"] then
end

if data.raw.item["steel-bearing"] then
bobmods.lib.recipe.add_ingredient("player-gloves", { "steel-bearing", 8 })
bobmods.lib.recipe.add_ingredient("player-gloves", { type = "item", name = "steel-bearing", amount = 8 })
end

if data.raw.item["rtg"] then
bobmods.lib.recipe.add_ingredient("player-power-core", { "rtg", 1 })
bobmods.lib.recipe.add_ingredient("player-power-core", { type = "item", name = "rtg", amount = 1 })
bobmods.lib.tech.add_prerequisite("bodies", "rtg")
elseif data.raw.item["alien-artifact"] then
bobmods.lib.recipe.add_ingredient("player-power-core", { "alien-artifact", 50 })
bobmods.lib.recipe.add_ingredient("player-power-core", { type = "item", name = "alien-artifact", amount = 50 })
end

if data.raw.tool["module-case"] or data.raw.item["module-case"] then
bobmods.lib.recipe.remove_ingredient("player-brain", "iron-plate")
bobmods.lib.recipe.add_ingredient("player-brain", { "module-case", 1 })
bobmods.lib.recipe.add_ingredient("player-brain", { type = "item", name = "module-case", amount = 1 })
bobmods.lib.recipe.remove_ingredient("player-brain-2", "steel-plate")
bobmods.lib.recipe.add_ingredient("player-brain-2", { "module-case", 1 })
bobmods.lib.recipe.add_ingredient("player-brain-2", { type = "item", name = "module-case", amount = 1 })
bobmods.lib.tech.add_prerequisite("bodies", "modules")
elseif data.raw.item["aluminium-plate"] then
bobmods.lib.recipe.replace_ingredient("player-brain", "iron-plate", "aluminium-plate")
Expand All @@ -37,8 +37,8 @@ if data.raw["recipe-category"]["electronics"] then
end

if data.raw.item["solder"] then
bobmods.lib.recipe.add_ingredient("player-brain", { "solder", 5 })
bobmods.lib.recipe.add_ingredient("player-brain-2", { "solder", 10 })
bobmods.lib.recipe.add_ingredient("player-brain", { type = "item", name = "solder", amount = 5 })
bobmods.lib.recipe.add_ingredient("player-brain-2", { type = "item", name = "solder", amount = 10 })
end

if data.raw.item["titanium-plate"] then
Expand All @@ -56,9 +56,9 @@ elseif data.raw.item["steel-gear-wheel"] then
end

if data.raw.item["titanium-bearing"] then
bobmods.lib.recipe.add_ingredient("player-gloves-2", { "titanium-bearing", 8 })
bobmods.lib.recipe.add_ingredient("player-gloves-2", { type = "item", name = "titanium-bearing", amount = 8 })
elseif data.raw.item["steel-bearing"] then
bobmods.lib.recipe.add_ingredient("player-gloves-2", { "steel-bearing", 8 })
bobmods.lib.recipe.add_ingredient("player-gloves-2", { type = "item", name = "steel-bearing", amount = 8 })
end

if data.raw.item["titanium-chest"] then
Expand Down
6 changes: 3 additions & 3 deletions bobwarfare/prototypes/recipe/recipe-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -465,17 +465,17 @@ end
if data.raw.fluid["alien-fire"] then
bobmods.lib.recipe.remove_ingredient("flame-bullet-projectile", "light-oil")
bobmods.lib.recipe.remove_ingredient("flame-bullet-projectile", "heavy-oil")
bobmods.lib.recipe.add_new_ingredient("flame-bullet-projectile", { type = "item", name = "alien-fire", amount = 10 })
bobmods.lib.recipe.add_new_ingredient("flame-bullet-projectile", { type = "fluid", name = "alien-fire", amount = 10 })
data.raw.recipe["flame-bullet-projectile"].category = "crafting-with-fluid"

bobmods.lib.recipe.remove_ingredient("shotgun-flame-shell", "light-oil")
bobmods.lib.recipe.remove_ingredient("shotgun-flame-shell", "heavy-oil")
bobmods.lib.recipe.add_new_ingredient("shotgun-flame-shell", { type = "item", name = "alien-fire", amount = 10 })
bobmods.lib.recipe.add_new_ingredient("shotgun-flame-shell", { type = "fluid", name = "alien-fire", amount = 10 })
data.raw.recipe["shotgun-flame-shell"].category = "crafting-with-fluid"

bobmods.lib.recipe.remove_ingredient("flame-rocket-warhead", "light-oil")
bobmods.lib.recipe.remove_ingredient("flame-rocket-warhead", "heavy-oil")
bobmods.lib.recipe.add_new_ingredient("flame-rocket-warhead", { type = "item", name = "alien-fire", amount = 20 })
bobmods.lib.recipe.add_new_ingredient("flame-rocket-warhead", { type = "fluid", name = "alien-fire", amount = 20 })
data.raw.recipe["flame-rocket-warhead"].category = "crafting-with-fluid"

bobmods.lib.recipe.replace_ingredient("fire-artillery-shell", "light-oil", "alien-fire")
Expand Down

0 comments on commit 588109a

Please sign in to comment.