BerbCorp Lane Balancers


Adds BerbCorp single-tile lane balancers for vanilla, turbo and BerbCorp Mark 4-8 belt tiers with engine-native lane-splitter behavior.

Content
a month ago
2.0 - 2.1
393
Logistics

g load balancer cannot be recycled

a month ago
(updated a month ago)

at least make it so it can be trashed ...

add this at the end of the data-fix.lua right after

  set_recipe_results(recipe, tier.name)
  scale_recipe_ingredients(recipe)
  set_recipe_categories(recipe)
  prototypes[#prototypes + 1] = recipe
local recycle_output = nil
  for _, ingredient in pairs(splitter_recipe.ingredients) do
    if ingredient.type == "item" then
      recycle_output = ingredient.name
      break
    end
  end

  if recycle_output then
    local recycle_recipe = {
      type = "recipe",
      name = tier.name .. "-recycling",
      category = "recycling",
      enabled = false,
      hidden = true,
      ingredients = {
        {
          type = "item",
          name = tier.name,
          amount = 1
        }
      },
      results = {
        {
          type = "item",
          name = recycle_output,
          amount = 1
        }
      }
    }

    prototypes[#prototypes + 1] = recycle_recipe
  end

and add this to the for loop at the bottom of the data-fix.lua

add_unlock(tier.technology, tier.name .. "-recycling")

New response