Skip to content

Commit

Permalink
Fixed some labs would require the base game Lab as ingredient instead…
Browse files Browse the repository at this point in the history
… of angels variant

#153
  • Loading branch information
LovelySanta committed Apr 1, 2020
1 parent 8f8c89a commit d315624
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 23 deletions.
1 change: 1 addition & 0 deletions angelsindustries/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Date: ???
- Fixed Automation 2 did not depend on Construction Components 2
- Science mode:
- Fixed Assembling Machine 1 was locked when playing with bobs Burner Assemblers disabled
- Fixed some labs would require the base game Lab as ingredient instead of angels variant
---------------------------------------------------------------------------------------------------
Version: 0.3.5
Date: 24-03-2020
Expand Down
24 changes: 1 addition & 23 deletions angelsindustries/prototypes/angels-industries-override.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,31 +51,9 @@ if angelsmods.industries.overhaul and angelsmods.industries.tech then
data.raw.technology["space-science-pack"].icon_size = 128
OV.add_unlock("space-science-pack", "angels-science-pack-white")
OV.add_unlock("space-science-pack", "angels-main-lab-7")
OV.global_replace_item("lab", "angels-basic-lab-2")

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 d315624

Please sign in to comment.