Quality value formulation.

DemonicLaxatives
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sat Oct 10, 2020 3:07 pm
Contact:

Quality value formulation.

Post by DemonicLaxatives »

EffectValue as well as ModuleEffectValue page states:
Quality values are divided by 10 internally, allowing for one more decimal of precision.

However I find this to be incorrect in the general case, as the divisor 10 actually appears to be the base game value for of next_probability that is 0.1 for all qualities.
07-15-2025, 23-30-53.png
07-15-2025, 23-30-53.png (54.86 KiB) Viewed 151 times
Here is an unmodified T1 quality module with the next_probability values changed, 0.01 for normal and 0.5 for uncommon
Tooltip indicates that each quality module actually has a separate effect value for each quality step.

I also found this thread where the current formulation was formed: viewtopic.php?p=648446&hilit=quality#p648446

I believe the following pages should be updated to reflect the interaction between them:
https://lua-api.factorio.com/latest/typ ... Value.html
https://lua-api.factorio.com/latest/con ... Value.html
https://lua-api.factorio.com/latest/pro ... robability
Bilka
Factorio Staff
Factorio Staff
Posts: 3421
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Quality value formulation.

Post by Bilka »

Thank you very much for pointing this out, fixed the docs for 2.0.61.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Post Reply

Return to “Resolved Requests”