Quality Control

by raley

Assemblers and furnaces earn quality upgrades for the entire factory.

Content
a day ago
2.0 - 2.1
2.02K
Factorio: Space Age Icon Space Age Mod
Logistic network Manufacturing Cheats

b [Fixed] Always jump to legendary quality

a month ago

I started using the mod in my new 2.1 playthrough since it sounds interesting but i noticed that i always get a legendary upgrade when the upgrade happens.

A bit of digging through the script and the patch notes later, i noticed that the mod uses "next_probability" to determine the chance of skipping a quality level.

This property was changed in 2.1: https://forums.factorio.com/viewtopic.php?p=695014#p695014

Quality effect values in prototype definitions were divided by 10. Also, quality effect percentages shown in GUIs are no longer multiplied by next_probability. > This results in GUI and Lua API values now matching.
Multiplied quality next_probability values by 10 (to a value of 1). This means a 100% quality effect guarantees a quality increase.
[...]
Added QualityPrototype::chain_probability. next_probability now only affects first step of quality roll.

If i understand correctly, chain_probability should be used in 2.1. I changed it locally and it seems to work fine now, finally getting uncommon upgrades.

a month ago

Oh wow, thank you! I didn’t realize the API calls changed. I hadn’t tested in 2.1 yet. Thank you for doing the research and reporting! I’ll update the mod soon.

New response