I wish that you could specify a product of a recipe with a probability, and if that probability check fails, then another item will be returned instead. Like so:
An example recipe where you try to fill a water barrel, but spill some.
Code: Select all
ingredients = {
{ type = "item", name = "barrel", amount = 1 },
{ type = "fluid", name = "water", amount = 100 }
},
results = {
{
type = "chance",
probability = 0.8,
success = { type = "item", name = "water-barrel", amount = 1 },
failure = { type = "item", name = "barrel", amount = 1 }
},
{ type = "fluid", name = "water", amount = 20 } -- normal fluid output
}
Code: Select all
ingredients = {
{ type = "item", name = "barrel", amount = 1 },
{ type = "fluid", name = "water", amount = 100 }
},
results = {
{
type = "chance",
probability = 0.8,
success = { type = "item", name = "water-barrel", amount = 1 },
failure = {
{ type = "item", name = "barrel", amount = 1 },
{ type = "fluid", name = "water", amount = 100 }
}
}
}
This might be useful in certain recipes in SA and mods, where some percent of products should be x, and the rest y, but the total number of products is the same across different trials. In general gameplay, as a common recipe, it wouldn't be noticeable and could be easily replicated with the current probability system (although the number of barrels might fluctuate in some cases). It's the edge case of specialized recipes, stuff like satellite launches, that I'm interested in.