Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local is_advanced_foundry_recipe = function(v)
- -- return v.category == "advanced-foundry" and v.energy_required == 3
- return v.category == "advanced-foundry" and string.find(v.name, "advanced%-foundry%-")
- end
- local is_py_void_fluid_recipe = function(v)
- return v.category == "py-runoff" and string.find(v.name, "%-pyvoid%-fluid")
- end
- local is_py_void_gas_recipe = function(v)
- return v.category == "py-venting" and string.find(v.name, "%-pyvoid%-gas")
- end
- do
- if settings.startup["bobmods-logistics-disableroboports"].value == true then
- -- use robochests because roboports are not craftable with this modpack settings
- bobmods.lib.recipe.replace_ingredient ("drydock-assembly", "roboport", "bob-robochest-4")
- bobmods.lib.recipe.replace_ingredient ("roboport-interface", "roboport", "bob-robochest")
- end
- -- for some reason not all recipes get this replacement (done by py high tech)
- bobmods.lib.recipe.replace_ingredient("heat-shield-tile", "silicon-nitride", "cermet")
- bobmods.lib.recipe.replace_ingredient("ceramic-bearing-ball", "silicon-nitride", "cermet")
- bobmods.lib.recipe.replace_ingredient("ceramic-bearing", "silicon-nitride", "cermet")
- -- remove advanced foundry recipes
- for name, recipe in pairs(table.filter(data.raw.recipe, is_advanced_foundry_recipe)) do
- data.raw.recipe[name].enabled = false
- end
- -- make py voids not shit
- for name, recipe in pairs(table.filter(data.raw.recipe, is_py_void_fluid_recipe)) do
- data.raw.recipe[name].ingredients[1].amount = 100
- end
- for name, recipe in pairs(table.filter(data.raw.recipe, is_py_void_gas_recipe)) do
- data.raw.recipe[name].ingredients[1].amount = 100
- end
- -- make niobium pipe be as titanium one for now
- bobmods.logistics.set_pipe_distance("niobium-pipe-to-ground", 4)
- -- nerf beacons
- data.raw.beacon["beacon-2"].supply_area_distance = 3
- data.raw.beacon["beacon-2"].module_specification.module_slots = 3
- data.raw.beacon["beacon-2"].energy_usage = "720kW"
- data.raw.beacon["beacon-3"].supply_area_distance = 3
- data.raw.beacon["beacon-3"].module_specification.module_slots = 4
- data.raw.beacon["beacon-3"].energy_usage = "960kW"
- -- remove a recipe for fibreboard because it's much easier than the alternative from py
- data.raw.recipe["angels-glass-fiber-board"].hidden = true
- -- make rubber not available the easy way
- data.raw.recipe["bob-rubber"].enabled = false
- if settings.startup["momo-enable-bob-extend"].value and settings.startup["momo-enable-bob-extend-frame"].value then
- -- tune down those last structure components because the orignal recipe is retarded
- data.raw.recipe["anotherworld-structure-components"].ingredients =
- {
- {"advanced-structure-components", 2},
- {"plastic-bar", 80},
- {"tungsten-carbide", 30},
- {"titanium-bearing", 20},
- {"ceramic-bearing", 30},
- {"brass-alloy", 10},
- {"nitinol-gear-wheel", 10},
- {"silver-zinc-battery", 30}
- }
- end
- -- make myoglobin not so painful to get
- data.raw.recipe["myoglobin"].results[1].amount = 10
- bobmods.lib.recipe.remove_ingredient("advanced-structure-components", "advanced-plastics")
- bobmods.lib.recipe.add_ingredient("advanced-structure-components", {"advanced-plastics", 8})
- if settings.startup["smelting-solder"].value == true then
- -- change solder plate to solder for some recipes when solder plates are not enabled
- bobmods.lib.recipe.remove_ingredient("more-science-pack-6", "solder-alloy")
- bobmods.lib.recipe.add_ingredient("more-science-pack-6", {"solder", 8})
- end
- -- revert the breaking change for vial recipe that happened in momo's v. 0.17.11
- bobmods.lib.recipe.remove_ingredient("momo-momo-vial-N2", "glass")
- bobmods.lib.recipe.add_ingredient("momo-momo-vial-N2", {"glass", 4})
- data.raw.recipe["momo-momo-vial-N2"].results[1].amount = 3
- bobmods.lib.recipe.remove_ingredient("momo-cokemomo-vial-N2", "glass")
- bobmods.lib.recipe.add_ingredient("momo-cokemomo-vial-N2", {"glass", 4})
- data.raw.recipe["momo-cokemomo-vial-N2"].results[1].amount = 3
- -- make basic-structure-components unlocked by metalurgy to fix a cyclic dependency
- bobmods.lib.tech.remove_recipe_unlock("automation-2", "basic-structure-components")
- bobmods.lib.tech.add_recipe_unlock("angels-metallurgy-1", "basic-structure-components")
- -- engine blocks rubber production because the technology chain goes up to methanol processing 1
- bobmods.lib.tech.remove_prerequisite("fluid-handling", "engine")
- -- fix duplicated ingredients
- bobmods.lib.recipe.remove_ingredient("assembling-machine-1", "pcb1")
- bobmods.lib.recipe.add_ingredient("assembling-machine-1", {"pcb1", 3})
- -- disable some smelting recipes from py that don't align well with angel
- data.raw.recipe["crushed-iron"].hidden = true
- data.raw.recipe["crushed-copper"].hidden = true
- data.raw.recipe["tungsten-powder"].hidden = true
- data.raw.recipe["crushed-tin"].hidden = true
- data.raw.recipe["crushed-lead"].hidden = true
- data.raw.recipe["crushed-silver"].hidden = true
- data.raw.recipe["crushed-gold"].hidden = true
- data.raw.recipe["crushed-zinc"].hidden = true
- data.raw.recipe["crushed-nickel"].hidden = true
- -- pycoaltbaa added some recipes that make the following ones imbalanced too
- data.raw.recipe["crushing-iron"].hidden = true
- data.raw.recipe["crushing-copper"].hidden = true
- data.raw.recipe["crushing-bauxite"].hidden = true
- data.raw.recipe["crushing-rutile"].hidden = true
- data.raw.recipe["crushing-tin"].hidden = true
- data.raw.recipe["crushing-lead"].hidden = true
- data.raw.recipe["crushing-silver"].hidden = true
- data.raw.recipe["crushing-gold"].hidden = true
- data.raw.recipe["crushing-tungsten"].hidden = true
- data.raw.recipe["crushing-zinc"].hidden = true
- data.raw.recipe["crushing-nickel"].hidden = true
- -- make some tweaks to sniper turrets and military science
- bobmods.lib.recipe.add_ingredient("bob-gun-turret-2", {"gunmetal-alloy", 10})
- bobmods.lib.recipe.add_ingredient("bob-sniper-turret-1", {"bob-gun-turret-2", 1})
- bobmods.lib.recipe.replace_ingredient("military-science-pack", "gun-turret", "bob-gun-turret-2")
- data.raw.recipe["military-science-pack"].result_count = 3
- -- bring back the default railway stuff
- data.raw.recipe["bi_recipe_rail_wood_to_concrete"].hidden = true
- bobmods.lib.tech.remove_recipe_unlock("bob-railway-2", "rail")
- bobmods.lib.tech.add_recipe_unlock ("railway", "rail")
- -- add info about productivity limitations
- local function has_value(tab, val)
- for index, value in ipairs(tab) do
- if value == val then
- return true
- end
- end
- return false
- end
- for _, module in pairs(data.raw.module) do
- if module.limitation and module.effect.productivity then
- for _, recipe in pairs(data.raw.recipe) do
- if has_value(module.limitation, recipe.name) then
- if recipe.localised_description == nil then
- recipe.localised_description = {""}
- end
- table.insert(recipe.localised_description, "\nBenefits from productivity.")
- end
- end
- break
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement