Skip to content

Commit

Permalink
#153 adjustment
Browse files Browse the repository at this point in the history
Replace global ingredient of lab with angels-basic-lab-2
  • Loading branch information
Pezzawinkle committed Apr 1, 2020
1 parent 4989e08 commit 31ae4ce
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions angelsindustries/prototypes/angels-industries-override.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,29 @@ if angelsmods.industries.overhaul and angelsmods.industries.tech then
OV.add_unlock("space-science-pack", "angels-main-lab-7")

require("prototypes.overrides.tech-productivity-update")
--replace ingredient lab with basic-lab-2
for _,recipe in pairs(data.raw.recipe) do
--check all recipes
if recipe.ingredients then
for i,ing in pairs(recipe.ingredients) do
--search each ingredient
if ing.name=="lab" then
--replace vanilla lab with basic-lab-2
ing.name="angels-basic-lab-2"
end
end
elseif recipe.normal.ingredients then
for _,set in pairs({"normal","expensive"}) do
if recipe[set].ingredients then
for i,ing in pairs(recipe[set].ingredients) do
if ing.name=="lab" then
ing.name="angels-basic-lab-2"
end
end
end
end
end
end
end

-- ordening
Expand Down

0 comments on commit 31ae4ce

Please sign in to comment.