Skip to content

Commit

Permalink
Bob's compatibility #911
Browse files Browse the repository at this point in the history
- Make sure Enhancement Block 5 is available for Radar 5
- Fix packs for Bob's Drone techs (when Logistics mod isn't enabled)
- Hide Bob's oil processing recipe (when MCI and Electronics aren't enabled)
  • Loading branch information
KiwiHawk committed Dec 20, 2023
1 parent 1fbd8de commit 16bfef0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ if angelsmods.industries.components then
},
})

angelsmods.industries.blocks.enhancement5 = true

if angelsmods.industries.tech then
OV.add_prereq("radars-2", "tech-specialised-labs-basic-enhance-2")
OV.add_prereq("radars-3", "tech-specialised-labs-basic-enhance-3")
Expand Down
15 changes: 11 additions & 4 deletions angelsindustries/prototypes/overrides/global-tech-bobs-packs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,17 @@ if angelsmods.industries.tech then
OV.add_prereq("bob-laser-rifle-ammo-3", "military-3")
--Drones/CombatBots
AI.pack_replace("bob-robot-gun-1", "green", "orange")
AI.pack_replace("bob-robot-gun-drones", "green", "orange")
AI.pack_replace("bob-robot-plasma-drones", "green", "orange")
AI.pack_replace("bob-robot-laser-drones", "green", "orange")
AI.pack_replace("bob-robot-flamethrower-drones", "green", "orange")
if mods["boblogistics"] then
AI.pack_replace("bob-robot-gun-drones", "green", "orange")
AI.pack_replace("bob-robot-plasma-drones", "green", "orange")
AI.pack_replace("bob-robot-laser-drones", "green", "orange")
AI.pack_replace("bob-robot-flamethrower-drones", "green", "orange")
else
AI.pack_replace("bob-robot-gun-drones", "blue", "orange")
AI.pack_replace("bob-robot-plasma-drones", "blue", "orange")
AI.pack_replace("bob-robot-laser-drones", "blue", "orange")
AI.pack_replace("bob-robot-flamethrower-drones", "blue", "orange")
end
AI.pack_replace("bob-laser-robot", "blue", "yellow")
--Rockets
AI.pack_replace("rocketry", "green", "orange")
Expand Down
2 changes: 2 additions & 0 deletions angelspetrochem/prototypes/override/boblogistics.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ if mods["boblogistics"] then
angelsmods.functions.move_item("angels-storage-tank-1", "angels-fluid-tanks", "c[large-tank]-c[gas]")
angelsmods.functions.move_item("angels-storage-tank-2", "angels-fluid-tanks", "c[large-tank]-b[oil]")
angelsmods.functions.move_item("angels-storage-tank-3", "angels-fluid-tanks", "c[large-tank]-a[inline]")

OV.hide_recipe("bob-oil-processing")
end

0 comments on commit 16bfef0

Please sign in to comment.