Rigor Module


New type of module: Rigor modules. Rigor modules increase the probability of a recipe returning its most valuable product.

Content
15 hours ago
2.0
25
Manufacturing
Owner:
thremtopod
Source:
https://gitlab.com/jfletcher94/factorio-mods
Homepage:
N/A
License:
GNU LGPLv3
Created:
a day ago
Latest Version:
0.1.1 (15 hours ago)
Factorio version:
2.0
Downloaded by:
25 users

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 probability p and rigor r, 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.lua for details on how to configure and customize compatibility.