Code: Select all
results =
{
{type="item", name="main-product", probability=0.8, amount=1}, --this is the main product with 80% probability to succeed
{type="item", name="by-product1", probability=0.2, amount=1}
}
Now here's an more complex example. The principle is still 80% for main-product and 20% for by-products.
Code: Select all
results =
{
{type="item", name="main-product", probability=1.6, amount=1}, --this is the main product with 80% probability to succeed
{type="item", name="by-product1", probability=0.2, amount=1},
{type="item", name="by-product3", probability=0.2, amount=1},
{type="fluid", name="by-product4", probability=0.2, amount=1}
}
What i don't get is that the main product needs a probability of 1.6 (160%) in order to get the 80%/20%/20%/20%?
Is the probability set per recipe or item category?