Files
Bubberstation/code/modules/reagents
SkyratBot 42f1f6b7e1 [MIRROR] [NO GBP] Final precision rounding for reagent volumes [MDB IGNORE] (#24886)
* [NO GBP] Final precision rounding for reagent volumes (#79571)

## About The Pull Request
- Fixes #79566

This applies mostly to plumbing reaction chambers but to implement that
fix some rounding operations had to be carried over to `holder.dm`(which
will benefit everything in general)

I'm pulling out all the stops here. Rather than checking "are we close
enough" plumbing reaction chambers will now check if we and i quote
"absolutely insanely precisely there". This means volumes like 49.9999
should become 50 period.

Note this is a high probability & not a definite fix. i.e. now
theoretically 100% of the time you should not get this problem but if it
still happens then as of now i have no solution and have to go back to
the drawing board on this one but i am very confident this should be the
end of all plumbing related problems i.e. at least problems with volumes
not getting rounded to whole numbers

## Changelog
🆑
fix: plumbing factories should not rarely/randomly brick at volumes like
0.9999(when in fact it should have been 1)
/🆑

* [NO GBP] Final precision rounding for reagent volumes

---------

Co-authored-by: SyncIt21 <110812394+SyncIt21@users.noreply.github.com>
2023-11-09 12:17:36 -05:00
..