LuaRecipePrototype.max_productivity_bonus
Posted: Wed Mar 13, 2019 10:20 am
When other mods are installed I lose control over the max productivity bonus a recipe can benefit from.
I would like to create reversible recipes procedurally (for recycling) but the potential for infinite resource generation is too high. Even if I set the reverse recipe to 50% yield and no productivity is allowed, if the forward recipe is benefiting from more than 100% productivity then they still end up with more than they started with.
Solution:
LuaRecipePrototype.max_productivity_bonus :: double [R] The maximum productivity bonus this recipe can benefit from. 0 means any productivity bonus has no effect, 0.5 means any productivity bonus over +50% will be ignored, nil means there is no limit. Default is 1 (+100% max).
This property would not be part of the recipe tooltip. It could be shown as a tooltip of the productivity bar if the productivity bonus is being limited.
I would like to create reversible recipes procedurally (for recycling) but the potential for infinite resource generation is too high. Even if I set the reverse recipe to 50% yield and no productivity is allowed, if the forward recipe is benefiting from more than 100% productivity then they still end up with more than they started with.
Solution:
LuaRecipePrototype.max_productivity_bonus :: double [R] The maximum productivity bonus this recipe can benefit from. 0 means any productivity bonus has no effect, 0.5 means any productivity bonus over +50% will be ignored, nil means there is no limit. Default is 1 (+100% max).
This property would not be part of the recipe tooltip. It could be shown as a tooltip of the productivity bar if the productivity bonus is being limited.