Skip to content

Commit

Permalink
Bulk renames - empty-barrel
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiHawk committed Oct 28, 2024
1 parent 8d94d1b commit 2bb0d50
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions boblibrary/auto-bottle.lua
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ function bobmods.lib.create_gas_bottle(fluid)
fill_recipe.subgroup = "bob-gas-bottle"
fill_recipe.icons = generate_fill_gas_bottle_icons(fluid)

bobmods.lib.recipe.replace_ingredient(fill_recipe.name, "empty-barrel", "gas-canister")
bobmods.lib.recipe.replace_ingredient(fill_recipe.name, "barrel", "gas-canister")
bobmods.lib.tech.remove_recipe_unlock("fluid-handling", fill_recipe.name)
bobmods.lib.tech.remove_recipe_unlock("fluid-barrel-processing", fill_recipe.name)
else
Expand All @@ -260,7 +260,7 @@ function bobmods.lib.create_gas_bottle(fluid)
empty_recipe.subgroup = "bob-empty-gas-bottle"
empty_recipe.icons = generate_empty_gas_bottle_icons(fluid)

bobmods.lib.recipe.remove_result(empty_recipe.name, "empty-barrel")
bobmods.lib.recipe.remove_result(empty_recipe.name, "barrel")
bobmods.lib.recipe.set_result(empty_recipe.name, { type = "item", name = "gas-canister", amount = 1 })
bobmods.lib.tech.remove_recipe_unlock("fluid-handling", empty_recipe.name)
bobmods.lib.tech.remove_recipe_unlock("fluid-barrel-processing", empty_recipe.name)
Expand Down Expand Up @@ -301,7 +301,7 @@ function bobmods.lib.create_fluid_canister(fluid)
fill_recipe.subgroup = "bob-canister"
fill_recipe.icons = generate_fill_fluid_canister_icons(fluid)

bobmods.lib.recipe.replace_ingredient(fill_recipe.name, "empty-barrel", "empty-canister")
bobmods.lib.recipe.replace_ingredient(fill_recipe.name, "barrel", "empty-canister")
bobmods.lib.tech.remove_recipe_unlock("fluid-handling", fill_recipe.name)
bobmods.lib.tech.remove_recipe_unlock("fluid-barrel-processing", fill_recipe.name)
else
Expand All @@ -314,7 +314,7 @@ function bobmods.lib.create_fluid_canister(fluid)
empty_recipe.subgroup = "bob-empty-canister"
empty_recipe.icons = generate_empty_fluid_canister_icons(fluid)

bobmods.lib.recipe.remove_result(empty_recipe.name, "empty-barrel")
bobmods.lib.recipe.remove_result(empty_recipe.name, "barrel")
bobmods.lib.recipe.add_result(empty_recipe.name, { type = "item", name = "empty-canister", amount = 1 })
bobmods.lib.tech.remove_recipe_unlock("fluid-handling", empty_recipe.name)
bobmods.lib.tech.remove_recipe_unlock("fluid-barrel-processing", empty_recipe.name)
Expand Down
2 changes: 1 addition & 1 deletion bobplates/data-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ if settings.startup["bobmods-plates-vanillabarrelling"].value == true then
end

bobmods.lib.tech.add_prerequisite("cliff-explosives", "fluid-barrel-processing")
bobmods.lib.tech.remove_recipe_unlock("fluid-handling", "empty-barrel")
bobmods.lib.tech.remove_recipe_unlock("fluid-handling", "barrel")

if settings.startup["bobmods-plates-purewater"].value == true then
bobmods.lib.resource.remove_result("ground-water", "water")
Expand Down
2 changes: 1 addition & 1 deletion bobplates/prototypes/technology.lua
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ data:extend({
effects = {
{
type = "unlock-recipe",
recipe = "empty-barrel",
recipe = "barrel",
},
},
unit = {
Expand Down

0 comments on commit 2bb0d50

Please sign in to comment.