I am trying to make the promethium science pack into a spoilable pack with a freshness based on its ingredients, and to this end I have made promethium asteroid chunks spoilable as well.
Because the recipe calls for 10 biter eggs and 25 promethium chunks, the spoil level of the chunks has a much larger effect on the freshness of the resulting science pack than the spoil level of the biter eggs.
I would like it if, in the recipe prototype, when specifying the ingredients and their amounts, if we could set a "freshness coefficient". By default, it would have a value of 1. For example:
(50% fresh biter eggs x 10 x (Freshness Coefficient = 1)) + (95% fresh promethium chunk x 25 x (Freshness Coefficient = 1)) / ((# of biter eggs * (Freshness Coefficient = 1)) + (# of promethium chunks * (Freshness Coefficient = 1))
or more simply
(500 + 2375) / 35 = 82.1% fresh product
But if I wanted to let the biter eggs have a greater effect on the freshness of the final product without changing the amounts of the respective inputs, I could do:
(50% fresh biter eggs x 10 x (Freshness Coefficient = 2)) + (95% fresh promethium chunk x 25 x (Freshness Coefficient = 1)) / ((# of biter eggs * (Freshness Coefficient = 2)) + (# of promethium chunks * (Freshness Coefficient = 1))
more simply
1000 + 2375 / 45 = 75% fresh product
An example of how it would be used in modding:

Thanks

