Page 1 of 1

allow_decomposition

Posted: Fri May 05, 2017 7:04 pm
by Ranakastrasz
Anyone have any idea what that variable does?

Code: Select all

   {
    type = "recipe",
    name = "nuclear-fuel-reprocessing",
    energy_required = 50,
    enabled = false,
    category = "centrifuging",
    ingredients = {{"used-up-uranium-fuel-cell", 5}},
    icon = "__base__/graphics/icons/nuclear-fuel-reprocessing.png",
    subgroup = "intermediate-product",
    order = "r[uranium-processing]-b[nuclear-fuel-reprocessing]",
    main_product = "",
    results =
    {
      {
        name = "uranium-238",
        amount = 3
      }
    },
    allow_decomposition = false
  },

Re: allow_decomposition

Posted: Fri May 05, 2017 7:22 pm
by Rseding91
It tells the "total raw" system to ignore the recipe when figuring out what something is made of.

Re: allow_decomposition

Posted: Fri May 05, 2017 7:32 pm
by Ranakastrasz
GASP

That will be very useful for mods with circular recipes or weird/alternate sources.

Also barreling. I didn't check, but I assume it to be true there as well.


Always hated seeing something using tiny bits of like 30 different item types when it is just made of wood and iron... Or something.

Re: allow_decomposition

Posted: Tue Aug 22, 2017 6:49 pm
by DRY411S
Rseding91 wrote:It tells the "total raw" system to ignore the recipe when figuring out what something is made of.
This attribute does not feature in the lua-api documentation. Is it at the 'root' of the recipe object, or does it appear in the 'normal' and 'expensive' sections separately?