Page 1 of 1

[SA] Imrove module effect rounding when affected by quality

Posted: Mon Apr 28, 2025 7:03 pm
by Hares
TL;DR
Module effect's rounding should happen before applying quality.
What?
The rounding precision should be done for all prototypes before applying quality, and always apply full quality bonus for module effect. The prototypes API & display values may be kept with the old level precision (i.e., rounding when displayed).
Why?
Currently, rounding happens both before and after applying quality. Since each level of quality adds +30% bonus, the later digits are usually lost even if even number of modules would round it to a valid integer percent.

Example: Tier 3 Quality module has +2.5% quality for common quality. With 4 of these, you get +10% Quality. Legendary quality increases this by x2.5, to a nice rounded number of +25% quality per machine. However, due to strict rounding before multiplying by the number of modules, we end up with upggly +24.8%.
04-28-2025, 21-55-40.png
04-28-2025, 21-55-40.png (157.97 KiB) Viewed 474 times

Re: [SA] Imrove module effect rounding when affected by quality

Posted: Sat Sep 05, 2026 2:35 pm
by eugenekay
eugenekay wrote: Sat Sep 05, 2026 2:29 pm 125320, which says:
boskid wrote: Tue Feb 24, 2026 12:59 pm This will be fixed in 2.1.
Version 2.0.77:
Screenshot 2026-09-05 102911.png
Screenshot 2026-09-05 102911.png (112.97 KiB) Viewed 171 times
Version 2.1.17:
Screenshot 2026-09-05 101936.png
Screenshot 2026-09-05 101936.png (103.38 KiB) Viewed 171 times
So the Fix does not appear to be limited to Beacons, but Module Effects in general. :mrgreen:

Good Luck!

Re: [SA] Imrove module effect rounding when affected by quality

Posted: Sat Sep 05, 2026 2:47 pm
by Alfonse215
Also, prod modules now get 1 decimal of precision. So rare prod 2s now give +9.6% prod instead of just +9%.