[0.12.6] [kovarex] amount_max issue
Posted: Mon Sep 07, 2015 7:54 pm
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.
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)
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]",
},
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)