Rigor Module
Rigor is a new module effect, provided by rigor modules. Rigor increases the odds a recipe will produce its most valuable output. Rigor can only affect a product with a probabilistic output; for example, rigor increases the odds of getting uranium-235 from uranium processing, and holmium ore from scrap recycling.
Notes
- Rigor only affects a single output per recipe.
- Rigor cannot be used on asteroid processing or recycling recipes (except for scrap-recycling).
- Rigor increases the odds of a recipe producing the given output. To convert to probability: for probability
p, odds =p/(1-p); for probabilitypand rigorr, probability is scaled using the formula:rp/(rp - p + 1).
Known Issues
- Multiplayer is not yet well-tested.
- Removing rigor modules from a crafting machine can cause the other modules to shift position.
- Rigor modules can cause crafting machines to interact incorrectly with fast-replacing and the upgrade planner.
- The mod can behave inconsistently in editor mode.
For Other Modders
- I've done my best to this mod as robust and easily compatible as possible.
- This mod should be able to handle everything automatically; there's also an API for customization.
- For recipes with multiple probabilistic products, you can specify which product should be affected by rigor.
- You can exclude recipes and recipe categories from using rigor modules.
- See
prototypes/mod-data.luafor details on how to configure and customize compatibility.