Currently, I have the following:
Code: Select all
{
name = "rich-iron-ore",
amount_min = 2,
amount_max = 3,
probability = 1,
},
{
name = "iron-gravel",
amount_min = 3,
amount_max = 5,
probability = 0.3,
},
{
name = "raw-silica",
amount_min = 1,
amount_max = 3,
probability = 0.2,
},
Code: Select all
{
name = "rich-iron-ore",
amount_min = 2,
amount_max = 3,
probability = .5,
},
{
name = "iron-gravel",
amount_min = 3,
amount_max = 5,
probability = 0.3,
},
{
name = "raw-silica",
amount_min = 1,
amount_max = 3,
probability = 0.2,
},
The second code snippet has a chance to give nothing - a redundancy I couldn't change even with 3 90% chances (which would still randomly give 'nothing'.)
For what it's worth, I've tried cutting apart mods and the only mod I found that does something like this is older Dytech. Unfortunately that guy's code is psychopathic and I can't read it, it's just defined/generated in a way I can't comprehend. Wonder where he is.