ignored_by_productivity results property is ignored for resources

Néomorphos
Inserter
Inserter
Posts: 46
Joined: Sun Oct 28, 2018 3:23 pm
Contact:

ignored_by_productivity results property is ignored for resources

Post by Néomorphos »

Hi !
I encountered this bug and couldn't find a similar issue on the forum so here's a report.
What
The results field of a resource does not apply the property ignored_by_productivity
Repro
I created a resource with the following properties (code below). My understanding is that it should not be outputting anything when the purple productivity bar, reaches 100%.
However, when the purple bar reaches 100%, a normal production output is created. The same happens if I try to give ignored_by_productivity a value different from the value of amount.

Code: Select all

local radioactive_geyser = {
  -- metadata
  type = "resource",
  name = "radioactive-geyser",
  icon = "__space-age__/graphics/icons/lithium-brine.png",
  flags = {"placeable-neutral"},
  category = "hard-fluid",
  subgroup = "mineable-fluids",

  -- gameplay properties
  minimum = 60000,
  normal = 300000,
  infinite = true,
  infinite_depletion_amount = 0,
  minable =
  {
    mining_time = 900,  
    results = {
      {
        type = "item",
        name = "low-radioactivity-rubble",
        amount = 3000,
        ignored_by_productivity = 3000,
      },
      {
        type = "fluid",
        name = "radioactive-sludge",
        amount = 4000,
        ignored_by_productivity = 4000,
      }
    }
  },

  -- player interaction
  collision_box = {{-1.4, -1.4}, {1.4, 1.4}},
  selection_box = {{-0.5, -0.5}, {0.5, 0.5}},
  highlight = true,

  -- visuals
  stage_counts = {0},
    stages =
    {
      layers =
      {
        util.sprite_load("__space-age__/graphics/entity/lithium-brine/lithium-brine",
        {
          priority = "extra-high",
          frame_count = 4,
          scale = 0.5
        })
      }
    },
  map_color = {0.7, 1.0, 0.6},
  map_grid = false,
}
Expected behavior
The ignored_by_productivity field should work as in recipes.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4745
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: ignored_by_productivity results property is ignored for resources

Post by boskid »

This is not really a bug because it was never working like that and the docs for ignored_by_productivity hints that it is only relevant for crafting, but i can consider this as a modding request which is now implemented for 2.1.13.
Post Reply

Return to “Implemented mod requests”