Skip to content

Commit

Permalink
Jetpack Compatibility #309
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiHawk committed Nov 20, 2023
1 parent 84a150e commit f140e19
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
1 change: 1 addition & 0 deletions SeaBlock/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Date: ???
- Added support for Early Construction mod #254
- Added missing prerequisites #295
- Added support for Grappling Gun mod #308
- Added support for Jetpack mod #309
Bugfixes:
- Fixed Radar being unlocked by both Military and Radars 1 #296
- Fixed Exoplanetary Studies Lab recipe not including previous lab tier #303
Expand Down
36 changes: 36 additions & 0 deletions SeaBlock/data-updates/other-mods.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,39 @@ end
if mods["grappling-gun"] then
bobmods.lib.recipe.replace_ingredient("grappling-gun-ammo", "coal", "wood-charcoal")
end

if mods["jetpack"] then
bobmods.lib.tech.remove_science_pack("jetpack-1", "chemical-science-pack")
bobmods.lib.tech.add_science_pack("jetpack-1", "military-science-pack", 1)
bobmods.lib.tech.remove_prerequisite("jetpack-1", "rocket-fuel")
bobmods.lib.tech.remove_prerequisite("jetpack-1", "solar-panel-equipment")
bobmods.lib.tech.add_prerequisite("jetpack-1", "modular-armor")
bobmods.lib.tech.add_prerequisite("jetpack-1", "rocket-booster-1")
bobmods.lib.tech.add_prerequisite("jetpack-1", "military-science-pack")
bobmods.lib.tech.add_prerequisite("jetpack-1", "zinc-processing")
bobmods.lib.recipe.replace_ingredient("jetpack-1", "electronic-circuit", "advanced-circuit")
bobmods.lib.recipe.replace_ingredient("jetpack-1", "pipe", "brass-pipe")
bobmods.lib.recipe.replace_ingredient("jetpack-1", "steel-plate", "invar-alloy")

bobmods.lib.tech.add_science_pack("jetpack-2", "military-science-pack", 1)
bobmods.lib.tech.add_prerequisite("jetpack-2", "advanced-electronics-2")
bobmods.lib.recipe.replace_ingredient("jetpack-2", "advanced-circuit", "processing-unit")

bobmods.lib.tech.add_science_pack("jetpack-3", "military-science-pack", 1)
bobmods.lib.tech.add_science_pack("jetpack-3", "production-science-pack", 1)
bobmods.lib.recipe.replace_ingredient("jetpack-3", "processing-unit", "advanced-processing-unit")

bobmods.lib.tech.add_science_pack("jetpack-4", "military-science-pack", 1)
bobmods.lib.tech.add_science_pack("jetpack-4", "production-science-pack", 1)
if mods["bobmodules"] then
if mods["CircuitProcessing"] then
bobmods.lib.recipe.remove_ingredient("jetpack-4", "speed-module-4")
bobmods.lib.recipe.remove_ingredient("jetpack-4", "effectivity-module-4")
bobmods.lib.recipe.add_new_ingredient("jetpack-4", { type = "item", name = "speed-module-8", amount = 2 })
bobmods.lib.recipe.add_new_ingredient("jetpack-4", { type = "item", name = "effectivity-module-8", amount = 2 })
else
bobmods.lib.recipe.replace_ingredient("jetpack-4", "speed-module-3", "speed-module-8")
bobmods.lib.recipe.replace_ingredient("jetpack-4", "effectivity-module-3", "effectivity-module-8")
end
end
end
5 changes: 5 additions & 0 deletions SeaBlock/remote.lua
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,16 @@ local function milestones_presets()
}
end

local function get_jetpack_fuels()
return { ["enriched-fuel"] = 0.7 }
end

remote.add_interface("SeaBlock", {
get_unlocks = get_unlocks,
set_unlock = set_unlock,
get_starting_items = get_starting_items,
set_starting_item = set_starting_item,
set_starting_items = set_starting_items,
milestones_presets = milestones_presets,
jetpack_fuels = get_jetpack_fuels,
})

0 comments on commit f140e19

Please sign in to comment.