[0.12.6] [kovarex] amount_max issue

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

[0.12.6] [kovarex] amount_max issue

Post by bobingabout »

At the request of some fans, I decided to add a new recipe to give a byproduct while smelting.
The issue is with amount_max

Given the following code, you would expect to get 7 to 10 lead plates from a run, and 1 to 3 silver ore.

Code: Select all

  {
    type = "recipe",
    name = "silver-from-lead",
    category = "chemical-furnace",
    subgroup = "bob-material-chemical",
    energy_required = 25,
    enabled = "false",
    ingredients =
    {
      {type = "item", name = "lead-oxide", amount = 7},
      {type = "item", name = "carbon", amount = 3},
      {type = "item", name = "nickel-plate", amount = 1},
    },
    results=
    {
      {type = "item", name = "lead-plate", amount_min = 7, amount_max = 10},
      {type = "item", name = "silver-ore", amount_min = 1, amount_max = 3},
    },
    icon = "__bobplates__/graphics/icons/lead-silver.png",
    order = "c-b[silver-from-lead]",
  },
After tallying 50 runs, I receaved 7 to 9, lead plates, and 1 to 2 silver ore. NEVER the amount specified in amount_max.
Given that there should be a 1 in 4 chance of getting each quantity of lead, and a 1 in 3 chance of each quantity of silver, 50 runs was a generous test.

This is basically the mining/crafting version of the loot drop count_min/count_max bug I posted a while ago. (Which I still haven't actually tried since you fixed it)
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [0.12.6] [kovarex] amount_max issue

Post by kovarex »

Thanks, fixed for 0.12.7

Post Reply

Return to “Resolved Problems and Bugs”