Makes Fulgora's scrap recycling probabilities fully configurable via mod settings, instead of the fixed vanilla values.
What it does
Adds one startup setting per scrap recycling output (csr-chance-<item>), each a 0-100% chance. The chance of each output is always exactly its setting.
Since Factorio 2.1 the vanilla recipe rolls once per scrap and gives at most one item (shared_probability ranges). The mod keeps that while all chances add up to 100% or less: each output gets a range as wide as its chance. Above 100% in total every output is rolled independently, so one scrap can yield several items (as in Factorio 2.0).
Defaults match vanilla (about 0.60 items per scrap on average):
- Gear wheel: 20%
- Solid fuel: 7%
- Concrete: 6%
- Ice: 5%
- Steel plate: 4%
- Battery: 4%
- Stone: 4%
- Advanced circuit: 3%
- Copper cable: 3%
- Processing unit: 2%
- Low density structure: 1%
- Holmium ore: 1%
Setting every chance to 0 is safe and simply results in no outputs from recycling.
Tested against the vanilla scrap-recycling recipe of Factorio 2.1.23 (Space Age): with the default settings the recipe stays exactly the vanilla one. Compatible with adjustable_recycler (different recipe category, no conflict).
Notes
- A settings change requires a restart to take effect.
- Requires Factorio 2.1 and Space Age. Version 1.0.0 is the last one for Factorio 2.0.