Skip to content

Commit

Permalink
Energy shield ingredients and prerequisites
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiHawk committed May 29, 2024
1 parent 33b0d41 commit 0476a4f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion bobequipment/prototypes/recipe/equipment.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
bobmods.lib.recipe.replace_ingredient("energy-shield-equipment", "advanced-circuit", "electronic-circuit")
data.raw.recipe["energy-shield-mk2-equipment"].ingredients = {
{ "energy-shield-equipment", 2 },
{ "advanced-circuit", 5 }
{ "advanced-circuit", 5 },
{ "productivity-module", 1 },
}

data:extend({
Expand Down
3 changes: 1 addition & 2 deletions bobequipment/prototypes/recipe/updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,8 @@ if data.raw.item["silicon-wafer"] then
end

if data.raw.item["advanced-processing-unit"] then
bobmods.lib.recipe.replace_ingredient("energy-shield-mk3-equipment", "processing-unit", "advanced-processing-unit")
bobmods.lib.tech.add_prerequisite("bob-energy-shield-equipment-3", "advanced-electronics-3")
bobmods.lib.recipe.replace_ingredient("energy-shield-mk4-equipment", "processing-unit", "advanced-processing-unit")
bobmods.lib.tech.add_prerequisite("bob-energy-shield-equipment-4", "advanced-electronics-3")
bobmods.lib.recipe.replace_ingredient("energy-shield-mk5-equipment", "processing-unit", "advanced-processing-unit")
bobmods.lib.recipe.replace_ingredient("energy-shield-mk6-equipment", "processing-unit", "advanced-processing-unit")
bobmods.lib.recipe.replace_ingredient("battery-mk4-equipment", "processing-unit", "advanced-processing-unit")
Expand Down
2 changes: 2 additions & 0 deletions bobequipment/prototypes/technology/equipment.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ data.raw["technology"]["energy-shield-mk2-equipment"].icons = bobmods.equipment.
icon_size = 128,
})
bobmods.lib.tech.remove_prerequisite("energy-shield-mk2-equipment", "low-density-structure")
bobmods.lib.tech.add_prerequisite("energy-shield-mk2-equipment", "productivity-module")

data:extend({
{
Expand All @@ -14,6 +15,7 @@ data:extend({
}),
order = "g-e-c",
prerequisites = {
"advanced-electronics-2",
"energy-shield-mk2-equipment",
"productivity-module-2",
"production-science-pack",
Expand Down

0 comments on commit 0476a4f

Please sign in to comment.