data:extend({

  {
    type = "item",
    name = "pm-lead-chunks",
    icon_size = 64,
    icon = "__periodic-madness__/graphics/icons/ores/lead-chunks.png",
    pictures =
    {
      { filename = "__periodic-madness__/graphics/icons/ores/lead-chunks.png",   size = 64, scale = 0.5 },
      { filename = "__periodic-madness__/graphics/icons/ores/lead-chunks-2.png", size = 64, scale = 0.5 }
    },
    subgroup = "pm-lead-ptm",
    order = "a",
    stack_size = 100
  },
  {
    type = "item",
    name = "pm-lead-powder",
    icon_size = 64,
    icon = "__periodic-madness__/graphics/icons/lead-powder.png",
    pictures =
    {
      { filename = "__periodic-madness__/graphics/icons/lead-powder.png", size = 64, scale = 0.5 },
      { filename = "__periodic-madness__/graphics/icons/lead-powder-2.png", size = 64, scale = 0.5 }
    },
    subgroup = "pm-lead-ptm",
    order = "b",
    stack_size = 120
  },
  {
    type = "item",
    name = "pm-impure-lead",
    icon_size = 64,
    icon = "__periodic-madness__/graphics/icons/ores/impure-lead-ore.png",
    pictures =
    {
      { filename = "__periodic-madness__/graphics/icons/ores/impure-lead-ore.png",   size = 64, scale = 0.5 },
      { filename = "__periodic-madness__/graphics/icons/ores/impure-lead-ore-2.png", size = 64, scale = 0.5 },
    },
    subgroup = "pm-lead-ptm",
    order = "c",
    stack_size = 80
  },
  {
    type = "item",
    name = "pm-lead-ore",
    icon_size = 64,
    icon = "__periodic-madness__/graphics/icons/ores/lead-ore-icon.png",
    subgroup = "pm-lead-ptm",
    order = "d",
    stack_size = 200
  },

  {
    type = "recipe",
    name = "pm-lead-leeching",
    icon_size = 64,
    icons =
    {
      {
        icon = "__periodic-madness__/graphics/icons/ores/lead-ore-icon.png",
        icon_size = 64,
      },
      {
        icon = "__periodic-madness__/graphics/icons/fluids/chromic-acid.png",
        icon_size = 64,
        scale = 0.45,
      }
    },
    enabled = false,
    energy_required = 8,
    category = "pm-acids",
    subgroup = "pm-lead-ptm",
    order = "a",
    allow_productivity = true,
    ingredients =
    {
      PM.ingredient("pm-post-transition-metals-ore", 12),
      PM.ingredient("pm-chromic-acid", 10, "fluid")
    },
    results =
    {
      PM.product("pm-lead-chunks", 4)
    }
  },  
  {
    type = "recipe",
    name = "pm-lead-powder",
    enabled = false,
    energy_required = 3,
    category = "pm-crushing",
    subgroup = "pm-lead-ptm",
    order = "b",
    main_product = "pm-lead-powder",
    allow_productivity = true,
    ingredients =
    {
      PM.ingredient("pm-lead-chunks", 4)
    },
    results =
    {
      PM.product_range("pm-lead-powder", 6, 8),
      PM.product_chance("pm-mixed-ore-slag", 2, 0.5)
    }
  },
  {
    type = "recipe",
    name = "pm-lead-froth",
    enabled = false,
    energy_required = 6,
    category = "pm-washing",
    subgroup = "pm-lead-ptm",
    order = "c",
    main_product = "pm-lead-froth",
    allow_productivity = true,
    ingredients =
    {
      PM.ingredient("pm-lead-powder", 4),
      PM.ingredient("water", 100, "fluid"),
    },
    results =
    {
      PM.product("pm-lead-froth", 30, "fluid"),
      PM.product_range("pm-acidic-water", 10, 20, "fluid"),
    }
  },
  {
    type = "recipe",
    name = "pm-impure-lead",
    enabled = false,
    energy_required = 6,
    category = "pm-washing",
    subgroup = "pm-lead-ptm",
    order = "d",
    main_product = "pm-impure-lead",
    allow_productivty = true,
    ingredients =
    {
      PM.ingredient("pm-lead-froth", 10, "fluid"),
    },
    results =
    {
      PM.product_chance("pm-thallium-ore", 2, 0.2),
      PM.product("pm-impure-lead", 2)
    }
  },
  {
    type = "recipe",
    name = "pm-lead-ore",
    enabled = false,
    energy_required = 3,
    category = "pm-moltening",
    subgroup = "pm-lead-ptm",
    order = "e",
    main_product = "pm-lead-ore",
    ingredients =
    {
      PM.ingredient("pm-impure-lead", 2),
      PM.ingredient("pm-carbon", 4),
      PM.ingredient("steam", 10, "fluid")
    },
    results =
    {
      PM.product("pm-lead-ore", 4)
    }
  } --[[@as data.RecipePrototype]],
  {
    type = "recipe",
    name = "pm-molten-arsenic-lead",
    enabled = false,
    energy_required = 6,
    category = "pm-moltening",
    subgroup = "pm-lead-ptm",
    order = "ea",
    main_product = "pm-molten-lead",
    ingredients = 
    {
      PM.ingredient("pm-impure-lead", 5),
      PM.ingredient("pm-arsenic-ore", 2),
      PM.ingredient("pm-borax", 2),
      PM.ingredient("steam", 50, "fluid")
    },
    results = 
    {
      PM.product_range("pm-molten-lead", 4.5, 5, "fluid"),
      PM.product_range_chance("pm-mixed-ore-slag", 0, 3, 0.5)
    }
  },
  {
    type = "recipe",
    name = "pm-lead-plate",
    subgroup = "pm-lead-ptm",
    order = "f",
    category = "smelting",
    energy_required = 6.4,
    enabled = false,
    allow_productivity = true,
    ingredients = { PM.ingredient("pm-lead-ore", 1) },
    results = {
      PM.product("pm-lead-plate", 1)
    }
  },
  {
    type = "recipe",
    name = "pm-molten-lead",
    icon_size = 64,
    icons =
    {
      {
        icon = "__periodic-madness__/graphics/icons/fluids/molten-lead.png",
        icon_size = 64,
        shift = { 0, 1.5 }
      },
      {
        icon = "__periodic-madness__/graphics/icons/plates/lead-plate.png",
        icon_size = 64,
        scale = 0.33,
        shift = {0, -7.5}
      },
    },
    subgroup = "pm-lead-ptm",
    order = "g",
    category = "pm-moltening",
    energy_required = 9,
    enabled = false,
    allow_decomposition = false,
    ingredients =
    {
      PM.ingredient("pm-lead-plate", 10),
      PM.ingredient("steam", 50, "fluid")
    },
    results =
    {
      PM.product("pm-molten-lead", 5, "fluid")
    }
  },
  {
    type = "recipe",
    name = "pm-lead-plate-cooling",
    icon_size = 64,
    icon = "__periodic-madness__/graphics/icons/recipes/lead-cooling.png",
    category = "pm-coldening",
    subgroup = "pm-lead-ptm",
    order = "h",
    energy_required = 9,
    enabled = false,
    allow_decomposition = false,
    ingredients =
    {
      PM.ingredient("pm-molten-lead", 5, "fluid"),
      PM.ingredient("pm-crucible", 1),
    },
    results =
    {
      PM.product("pm-lead-plate", 10),
      PM.product_chance("pm-crucible", 1, 0.8)
    }
  },
})
