Skip to content

Commit

Permalink
Add tungsten gears (#293)
Browse files Browse the repository at this point in the history
* Update areadrill-updates.lua

* Update drill-updates.lua

* Update fluid-generator-updates.lua

* Update steam-engines-updates.lua

* Update steam-turbines-updates.lua
  • Loading branch information
Qatavin authored Jan 11, 2025
1 parent b7fe598 commit 50a918f
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 38 deletions.
11 changes: 3 additions & 8 deletions bobmining/prototypes/areadrill-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,9 @@ if settings.startup["bobmods-mining-areadrills"].value == true then
end
end

if data.raw.item["bob-titanium-gear-wheel"] then
bobmods.lib.recipe.replace_ingredient("bob-area-mining-drill-3", "iron-gear-wheel", "bob-titanium-gear-wheel")
bobmods.lib.tech.add_prerequisite("bob-area-drills-4", "bob-titanium-processing")
else
if data.raw.item["bob-tungsten-gear-wheel"] then
bobmods.lib.recipe.replace_ingredient("bob-area-mining-drill-3", "iron-gear-wheel", "bob-tungsten-gear-wheel")
bobmods.lib.tech.add_prerequisite("bob-area-drills-4", "bob-tungsten-processing")
end
if data.raw.item["bob-tungsten-gear-wheel"] then
bobmods.lib.recipe.replace_ingredient("bob-area-mining-drill-3", "iron-gear-wheel", "bob-tungsten-gear-wheel")
bobmods.lib.tech.add_prerequisite("bob-area-drills-4", "bob-tungsten-processing")
end

if data.raw.item["bob-advanced-processing-unit"] then
Expand Down
11 changes: 3 additions & 8 deletions bobmining/prototypes/drill-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,9 @@ if settings.startup["bobmods-mining-miningdrills"].value == true then
end
end

if data.raw.item["bob-titanium-gear-wheel"] then
bobmods.lib.recipe.replace_ingredient("bob-mining-drill-3", "iron-gear-wheel", "bob-titanium-gear-wheel")
bobmods.lib.tech.add_prerequisite("bob-drills-4", "bob-titanium-processing")
else
if data.raw.item["bob-tungsten-gear-wheel"] then
bobmods.lib.recipe.replace_ingredient("bob-mining-drill-3", "iron-gear-wheel", "bob-tungsten-gear-wheel")
bobmods.lib.tech.add_prerequisite("bob-drills-4", "bob-tungsten-processing")
end
if data.raw.item["bob-tungsten-gear-wheel"] then
bobmods.lib.recipe.replace_ingredient("bob-mining-drill-3", "iron-gear-wheel", "bob-tungsten-gear-wheel")
bobmods.lib.tech.add_prerequisite("bob-drills-4", "bob-tungsten-processing")
end

if data.raw.item["bob-advanced-processing-unit"] then
Expand Down
4 changes: 2 additions & 2 deletions bobpower/prototypes/recipe/fluid-generator-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ if settings.startup["bobmods-power-fluidgenerator"].value == true then
bobmods.lib.recipe.add_ingredient("fluid-generator-3", { type = "item", name = "iron-gear-wheel", amount = 10 })
end

if data.raw.item["bob-titanium-gear-wheel"] then
bobmods.lib.recipe.replace_ingredient("fluid-generator-3", "iron-gear-wheel", "bob-titanium-gear-wheel")
if data.raw.item["bob-tungsten-gear-wheel"] then
bobmods.lib.recipe.replace_ingredient("fluid-generator-3", "iron-gear-wheel", "bob-tungsten-gear-wheel")
elseif data.raw.item["bob-steel-gear-wheel"] then
bobmods.lib.recipe.replace_ingredient("fluid-generator-3", "iron-gear-wheel", "bob-steel-gear-wheel")
end
Expand Down
15 changes: 5 additions & 10 deletions bobpower/prototypes/recipe/steam-engines-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,12 @@ if settings.startup["bobmods-power-steam"].value == true then
end
end

if data.raw.item["bob-titanium-gear-wheel"] then
bobmods.lib.recipe.replace_ingredient("steam-engine-4", "iron-gear-wheel", "bob-titanium-gear-wheel")
bobmods.lib.tech.add_prerequisite("bob-steam-engine-4", "bob-titanium-processing")
if data.raw.item["bob-tungsten-gear-wheel"] then
bobmods.lib.recipe.replace_ingredient("steam-engine-4", "iron-gear-wheel", "bob-tungsten-gear-wheel")
bobmods.lib.tech.add_prerequisite("bob-steam-engine-4", "bob-tungsten-processing")
else
if data.raw.item["bob-tungsten-gear-wheel"] then
bobmods.lib.recipe.replace_ingredient("steam-engine-4", "iron-gear-wheel", "bob-tungsten-gear-wheel")
bobmods.lib.tech.add_prerequisite("bob-steam-engine-4", "bob-tungsten-processing")
else
if data.raw.item["bob-steel-gear-wheel"] then
bobmods.lib.recipe.replace_ingredient("steam-engine-4", "iron-gear-wheel", "bob-steel-gear-wheel")
end
if data.raw.item["bob-steel-gear-wheel"] then
bobmods.lib.recipe.replace_ingredient("steam-engine-4", "iron-gear-wheel", "bob-steel-gear-wheel")
end
end

Expand Down
15 changes: 5 additions & 10 deletions bobpower/prototypes/recipe/steam-turbines-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,12 @@ if settings.startup["bobmods-power-steam"].value == true then
end
end

if data.raw.item["bob-titanium-gear-wheel"] then
bobmods.lib.recipe.replace_ingredient("steam-turbine-2", "iron-gear-wheel", "bob-titanium-gear-wheel")
bobmods.lib.tech.add_prerequisite("bob-steam-turbine-2", "bob-titanium-processing")
if data.raw.item["bob-tungsten-gear-wheel"] then
bobmods.lib.recipe.replace_ingredient("steam-turbine-2", "iron-gear-wheel", "bob-tungsten-gear-wheel")
bobmods.lib.tech.add_prerequisite("bob-steam-turbine-2", "bob-tungsten-processing")
else
if data.raw.item["bob-tungsten-gear-wheel"] then
bobmods.lib.recipe.replace_ingredient("steam-turbine-2", "iron-gear-wheel", "bob-tungsten-gear-wheel")
bobmods.lib.tech.add_prerequisite("bob-steam-turbine-2", "bob-tungsten-processing")
else
if data.raw.item["bob-steel-gear-wheel"] then
bobmods.lib.recipe.replace_ingredient("steam-turbine-2", "iron-gear-wheel", "bob-steel-gear-wheel")
end
if data.raw.item["bob-steel-gear-wheel"] then
bobmods.lib.recipe.replace_ingredient("steam-turbine-2", "iron-gear-wheel", "bob-steel-gear-wheel")
end
end

Expand Down

0 comments on commit 50a918f

Please sign in to comment.