Not what I meant. I mean, when it generates the new recipes, which is clearly automated, have it use a conditional
Here is my crappy psudocode explaining it. I havne't done any factorio modding for a while, but this should be right.
percent is the chance of a result.
if 50x percent < 100%, then
..percent x= 50
else If 50x percent >= 100%
..If 50x percent is integer (eg multiple of 100%, so 200%, 300%, 400%, etc)
....Remove percent mechanic, return percent/100% normal items. (2% -> 100% -> 1x item, 4% -> 200% -> 2x item, 50% -> 2500% -> 25x item, etc)
..else
....Several options here.
....Try 2x, 5x, 10x, 25x. If any of these match the is integer, or is less than 100%, apply those, and add a multiplier to resource output. So 3%, increased by 50x, would give 150%. cutting it to 25x with x2 output gives a 75% chance of x2 item.
....
....Alternatively, add two outputs.
....3% at 50% bonus gives 150%, so give one output of 1 item, and a 50% of another item in a different output slot.
..Endif
Endif